Class SmartExecutorManager

java.lang.Object
org.gcube.vremanagement.executor.SmartExecutorManager
All Implemented Interfaces:
org.gcube.smartgears.ApplicationManager

public class SmartExecutorManager extends Object implements org.gcube.smartgears.ApplicationManager
Author:
Luca Frosini (ISTI - CNR)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
    static final long
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Finds the plugins on the classpath and connects to the database.
    void
    This function is invoked before the service will stop and unpublish the resource from the IS to maintain the infrastructure integrity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gcube.smartgears.ApplicationManager

    onPublished
  • Field Details

    • JOIN_TIMEOUT

      public static final long JOIN_TIMEOUT
      See Also:
    • NAME

      public static final String NAME
    • initialised

      public static boolean initialised
  • Constructor Details

    • SmartExecutorManager

      public SmartExecutorManager()
  • Method Details

    • onInit

      public void onInit()
      Finds the plugins on the classpath and connects to the database. SmartGears publishes each plugin in the Resource Registry as a RunningPlugin of the EService of the Smart Executor.
      Specified by:
      onInit in interface org.gcube.smartgears.ApplicationManager
    • onShutdown

      public void onShutdown()
      This function is invoked before the service will stop and unpublish the resource from the IS to maintain the infrastructure integrity. Furthermore close the connection to DB.
      Specified by:
      onShutdown in interface org.gcube.smartgears.ApplicationManager