public class DescriptionRepository extends AbstractRepository
| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptionRepository.DescriptionRepositoryData
This class groups the data required for a
DescriptionRepository. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_DESCRIPTION_FILE_NAME
Name of the configuration property that contains the file name of the description file.
|
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext| Constructor and Description |
|---|
DescriptionRepository(Configuration configuration,
DescriptionRepository.DescriptionRepositoryData descriptionData,
IProjectContext projectContext)
Creates a new description repository using the given data.
|
DescriptionRepository(Configuration configuration,
IProjectContext projectContext)
Creates a new description repository using the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static DescriptionRepository |
createFromFile(java.lang.String fileName,
IProjectContext projectContext)
Initializes a new description repository from the given file.
|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
java.util.Map<java.lang.String,java.lang.String> |
getDescriptionMap()
Returns the description map (node id -> description) contained in this repository.
|
getDefaultConfiguration, getRepositoryDescription, getRepositoryNamegetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static final java.lang.String CONFIG_PROPERTY_NAME_DESCRIPTION_FILE_NAME
public DescriptionRepository(Configuration configuration, IProjectContext projectContext) throws java.io.IOException
configuration - The configuration to useprojectContext - The project context for this plugin.java.io.IOException - If an I/O error occurs during initializationpublic DescriptionRepository(Configuration configuration, DescriptionRepository.DescriptionRepositoryData descriptionData, IProjectContext projectContext)
configuration - The configuration to usedescriptionData - The description data to useprojectContext - The project context to use.public Configuration getCurrentConfiguration()
Configuration object containing the current configuration of this instance. In other words: The constructor should be
able to use the given object to initialize a new instance of this class with the same intern properties.getCurrentConfiguration in interface IAnalysisComponentgetCurrentConfiguration in class AbstractAnalysisComponentpublic java.util.Map<java.lang.String,java.lang.String> getDescriptionMap()
public static DescriptionRepository createFromFile(java.lang.String fileName, IProjectContext projectContext) throws java.io.IOException
fileName - The name of the file to use.projectContext - The project context to use.java.io.IOException - If an I/O error occursCopyright 2020 Kieker Project, http://kieker-monitoring.net