Package org.gcube.smartgears.managers
Class ContainerManager
java.lang.Object
org.gcube.smartgears.managers.ContainerManager
Coordinates management of the container as a gCube resource.
- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ContainerManagerSingleton instance of the container manager. -
Method Summary
Modifier and TypeMethodDescriptionvoidmanage(ApplicationContext app) Manages an application context by subscribing to its events.start(ContainerContext context) Starts container management.voidstop()Stops container management on remote request.voidstop(boolean shutdown) Stops container management on remote request or container shutdown.
-
Field Details
-
instance
Singleton instance of the container manager.
-
-
Method Details
-
start
Starts container management.- Parameters:
context- the container context- Returns:
- the container context
-
manage
Manages an application context by subscribing to its events.- Parameters:
app- the application context to manage
-
stop
public void stop()Stops container management on remote request. -
stop
public void stop(boolean shutdown) Stops container management on remote request or container shutdown.- Parameters:
shutdown- true if this is a shutdown request, false for a regular stop
-