Class ResourceManager

java.lang.Object
org.gcube.resourcemanagement.ResourceManager
All Implemented Interfaces:
org.gcube.smartgears.ApplicationManager

public class ResourceManager extends Object implements org.gcube.smartgears.ApplicationManager
This class is used to Manage the application initialization and shutdown per context; The init and shutdown methods are called one per context in which the app is running respectively at init and a shutdown time. It is connected to the app declaring it via the @ManagedBy annotation (@see RMInitializer).
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • initialised

      public static boolean initialised
      Flag indicating whether the ResourceManager has been initialized
  • Constructor Details

    • ResourceManager

      public ResourceManager()
  • Method Details

    • onInit

      public void onInit()
      Specified by:
      onInit in interface org.gcube.smartgears.ApplicationManager
    • onShutdown

      public void onShutdown()
      Specified by:
      onShutdown in interface org.gcube.smartgears.ApplicationManager