public class AssemblyRepository extends AbstractSystemSubRepository
| Modifier and Type | Field and Description |
|---|---|
static AssemblyComponent |
ROOT_ASSEMBLY_COMPONENT
This constant represents the root assembly component.
|
ROOT_ELEMENT_ID| Constructor and Description |
|---|
AssemblyRepository(SystemModelRepository systemFactory)
Creates a new instance of this class using the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
AssemblyComponent |
createAndRegisterAssemblyComponentInstance(java.lang.String namedIdentifier,
ComponentType componentType)
Creates a new assembly component instance and registers it as well.
|
java.util.Collection<AssemblyComponent> |
getAssemblyComponentInstances()
Delivers all available assembly component instances.
|
AssemblyComponent |
lookupAssemblyComponentById(int containerId)
Returns the instance for the passed ID; null if no instance with this ID exists.
|
AssemblyComponent |
lookupAssemblyComponentInstanceByNamedIdentifier(java.lang.String namedIdentifier)
Returns the instance for the passed factoryIdentifier; null if no instance
with this factoryIdentifier.
|
getAndIncrementNextId, getSystemFactorypublic static final AssemblyComponent ROOT_ASSEMBLY_COMPONENT
public AssemblyRepository(SystemModelRepository systemFactory)
systemFactory - The system factory.public final AssemblyComponent lookupAssemblyComponentById(int containerId)
containerId - The ID to search for.public final AssemblyComponent lookupAssemblyComponentInstanceByNamedIdentifier(java.lang.String namedIdentifier)
namedIdentifier - The identifier to search for.public final AssemblyComponent createAndRegisterAssemblyComponentInstance(java.lang.String namedIdentifier, ComponentType componentType)
namedIdentifier - The identifier of the new component.componentType - The new component type.public final java.util.Collection<AssemblyComponent> getAssemblyComponentInstances()
Copyright 2020 Kieker Project, http://kieker-monitoring.net