Package org.hobbit.core.components
Interface PlatformConnector
-
- All Known Implementing Classes:
AbstractBenchmarkController,AbstractDataGenerator,AbstractEvaluationModule,AbstractEvaluationStorage,AbstractPlatformConnectorComponent,AbstractSequencingTaskGenerator,AbstractSystemAdapter,AbstractTaskGenerator,InMemoryEvaluationStore
public interface PlatformConnectorThis interface should be implemented by components if they want to offer functionality of the platform to other classes.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateContainer(String imageName, String[] envVariables, ContainerStateObserver observer)This method sends aCommands.DOCKER_CONTAINER_STARTcommand to create and start an instance of the given image using the given environment variables.RabbitQueueFactorygetFactoryForIncomingCmdQueues()RabbitQueueFactorygetFactoryForIncomingDataQueues()RabbitQueueFactorygetFactoryForOutgoingCmdQueues()RabbitQueueFactorygetFactoryForOutgoingDataQueues()voidstopContainer(String containerName)This method sends aCommands.DOCKER_CONTAINER_STOPcommand to stop the container with the given id.
-
-
-
Method Detail
-
createContainer
String createContainer(String imageName, String[] envVariables, ContainerStateObserver observer)
This method sends aCommands.DOCKER_CONTAINER_STARTcommand to create and start an instance of the given image using the given environment variables.- Parameters:
imageName- the name of the image of the docker containerenvVariables- environment variables that should be added to the created containerobserver- the container state observer that is called if the container terminates- Returns:
- the name of the container instance or null if an error occurred
-
stopContainer
void stopContainer(String containerName)
This method sends aCommands.DOCKER_CONTAINER_STOPcommand to stop the container with the given id.- Parameters:
containerName- the name of the container instance that should be stopped
-
getFactoryForOutgoingDataQueues
RabbitQueueFactory getFactoryForOutgoingDataQueues()
-
getFactoryForIncomingDataQueues
RabbitQueueFactory getFactoryForIncomingDataQueues()
-
getFactoryForOutgoingCmdQueues
RabbitQueueFactory getFactoryForOutgoingCmdQueues()
-
getFactoryForIncomingCmdQueues
RabbitQueueFactory getFactoryForIncomingCmdQueues()
-
-