Class ContainerManager

java.lang.Object
org.gcube.smartgears.managers.ContainerManager

public class ContainerManager extends Object
Coordinates management of the container as a gCube resource.
Author:
Fabio Simeoni, Luca Frosini (ISTI-CNR)
  • Field Details

    • instance

      public static ContainerManager instance
      Singleton instance of the container manager.
  • Method Details

    • start

      public ContainerContext start(ContainerContext context)
      Starts container management.
      Parameters:
      context - the container context
      Returns:
      the container context
    • manage

      public void manage(ApplicationContext app)
      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