public class SmartExecutorInitializator
extends org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
| Modifier and Type | Field and Description |
|---|---|
static long |
JOIN_TIMEOUT |
| Constructor and Description |
|---|
SmartExecutorInitializator() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.gcube.common.resources.gcore.ServiceEndpoint |
createServiceEndpoint()
Create the Service Endpoint using information related to discovered
available plugins and their own discovered capabilities
|
static List<String> |
getScopes(org.gcube.smartgears.context.application.ApplicationContext applicationContext) |
void |
onStart(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start applicationLifecycleEventStart)
The method discover the plugins available on classpath and their own
supported capabilities and publish a ServiceEndpoint with the
discovered information.
|
void |
onStop(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Stop applicationLifecycleEventStop)
This function is invoked before the service will stop and unpublish the
resource from the IS to maintain the infrastructure integrity.
|
public static final long JOIN_TIMEOUT
protected static org.gcube.common.resources.gcore.ServiceEndpoint createServiceEndpoint()
ServiceEndpointpublic static List<String> getScopes(org.gcube.smartgears.context.application.ApplicationContext applicationContext)
public void onStart(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start applicationLifecycleEventStart)
onStart in class org.gcube.smartgears.handlers.application.ApplicationLifecycleHandlerpublic void onStop(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Stop applicationLifecycleEventStop)
onStop in class org.gcube.smartgears.handlers.application.ApplicationLifecycleHandlerCopyright © 2016. All Rights Reserved.