Package org.gcube.vremanagement.executor
Class SmartExecutorManager
java.lang.Object
org.gcube.vremanagement.executor.SmartExecutorManager
- All Implemented Interfaces:
org.gcube.smartgears.ApplicationManager
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonInit()Finds the plugins on the classpath and connects to the database.voidThis 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, waitMethods inherited from interface org.gcube.smartgears.ApplicationManager
onPublished
-
Field Details
-
JOIN_TIMEOUT
public static final long JOIN_TIMEOUT- See Also:
-
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:
onInitin interfaceorg.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:
onShutdownin interfaceorg.gcube.smartgears.ApplicationManager
-