Package kieker.model.repository
Class ExecutionEnvironmentRepository
java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.ExecutionEnvironmentRepository
public class ExecutionEnvironmentRepository extends AbstractRepository
- Since:
 - 1.1
 - Author:
 - Andre van Hoorn
 
- 
Field Summary
Fields Modifier and Type Field Description static ExecutionContainerROOT_EXECUTION_CONTAINERThe root execution container. - 
Constructor Summary
Constructors Constructor Description ExecutionEnvironmentRepository(SystemModelRepository systemFactory)Creates a new instance of this class using the given parameters. - 
Method Summary
Modifier and Type Method Description ExecutionContainercreateAndRegisterExecutionContainer(java.lang.String namedIdentifier, java.lang.String name)This method creates a new execution container and registers it as well.java.util.Collection<ExecutionContainer>getExecutionContainers()Delivers all available execution containers.ExecutionContainerlookupExecutionContainerByContainerId(int containerId)Returns the instance for the passed container ID; null if no instance with this ID.ExecutionContainerlookupExecutionContainerByNamedIdentifier(java.lang.String namedIdentifier)Methods inherited from class kieker.model.repository.AbstractRepository
getAndIncrementNextId, getSystemFactory 
- 
Field Details
- 
ROOT_EXECUTION_CONTAINER
The root execution container. 
 - 
 - 
Constructor Details
- 
ExecutionEnvironmentRepository
Creates a new instance of this class using the given parameters.- Parameters:
 systemFactory- The system factory.
 
 - 
 - 
Method Details
- 
lookupExecutionContainerByNamedIdentifier
public final ExecutionContainer lookupExecutionContainerByNamedIdentifier(java.lang.String namedIdentifier)- Parameters:
 namedIdentifier- The identifier to search for.- Returns:
 - The instance for the passed namedIdentifier; null if no instance with this namedIdentifier.
 
 - 
lookupExecutionContainerByContainerId
Returns the instance for the passed container ID; null if no instance with this ID.- Parameters:
 containerId- The ID to search for.- Returns:
 - The container for the given ID if it exists; null otherwise.
 
 - 
createAndRegisterExecutionContainer
public final ExecutionContainer createAndRegisterExecutionContainer(java.lang.String namedIdentifier, java.lang.String name)This method creates a new execution container and registers it as well.- Parameters:
 namedIdentifier- The identifier of the new container.name- The name of the new container.- Returns:
 - The newly created execution container.
 
 - 
getExecutionContainers
Delivers all available execution containers.- Returns:
 - A collection containing the available containers.
 
 
 -