Package kieker.model.repository
Class AssemblyRepository
java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.AssemblyRepository
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssemblyComponentThis constant represents the root assembly component.Fields inherited from class kieker.model.repository.AbstractRepository
ROOT_ELEMENT_ID -
Constructor Summary
ConstructorsConstructorDescriptionAssemblyRepository(SystemModelRepository systemFactory) Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionfinal AssemblyComponentcreateAndRegisterAssemblyComponentInstance(String namedIdentifier, ComponentType componentType) Creates a new assembly component instance and registers it as well.final Collection<AssemblyComponent>Delivers all available assembly component instances.final AssemblyComponentlookupAssemblyComponentById(int containerId) Returns the instance for the passed ID; null if no instance with this ID exists.final AssemblyComponentlookupAssemblyComponentInstanceByNamedIdentifier(String namedIdentifier) Returns the instance for the passed factoryIdentifier; null if no instance with this factoryIdentifier.Methods inherited from class kieker.model.repository.AbstractRepository
getAndIncrementNextId, getSystemFactory
-
Field Details
-
ROOT_ASSEMBLY_COMPONENT
This constant represents the root assembly component.
-
-
Constructor Details
-
AssemblyRepository
Creates a new instance of this class using the given parameters.- Parameters:
systemFactory- The system factory.
-
-
Method Details
-
lookupAssemblyComponentById
Returns the instance for the passed ID; null if no instance with this ID exists.- Parameters:
containerId- The ID to search for.- Returns:
- The component for the given ID if it exists; null otherwise.
-
lookupAssemblyComponentInstanceByNamedIdentifier
public final AssemblyComponent lookupAssemblyComponentInstanceByNamedIdentifier(String namedIdentifier) Returns the instance for the passed factoryIdentifier; null if no instance with this factoryIdentifier.- Parameters:
namedIdentifier- The identifier to search for.- Returns:
- The component for the given identifier if it exists; null otherwise.
-
createAndRegisterAssemblyComponentInstance
public final AssemblyComponent createAndRegisterAssemblyComponentInstance(String namedIdentifier, ComponentType componentType) Creates a new assembly component instance and registers it as well.- Parameters:
namedIdentifier- The identifier of the new component.componentType- The new component type.- Returns:
- The newly created assembly component.
-
getAssemblyComponentInstances
Delivers all available assembly component instances.- Returns:
- A collection containing all components.
-