public class SmartExecutorInitializator extends Object implements org.gcube.smartgears.ApplicationManager
| 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(Map<String,org.gcube.vremanagement.executor.plugin.PluginDeclaration> availablePlugins)
Create the Service Endpoint using information related to discovered
available plugins and their own discovered capabilities
|
static org.gcube.common.authorization.library.provider.ClientInfo |
getClientInfo() |
static String |
getCurrentScope() |
static String |
getCurrentScope(String token) |
void |
onInit()
The method discover the plugins available on classpath and their own
supported capabilities and publish a ServiceEndpoint with the
discovered information.
|
void |
onShutdown()
This function is invoked before the service will stop and unpublish the
resource from the IS to maintain the infrastructure integrity.
|
static void |
setContext(String token) |
public static final long JOIN_TIMEOUT
public static String getCurrentScope()
public static String getCurrentScope(String token) throws org.gcube.common.authorization.client.exceptions.ObjectNotFound, Exception
org.gcube.common.authorization.client.exceptions.ObjectNotFoundExceptionpublic static void setContext(String token) throws org.gcube.common.authorization.client.exceptions.ObjectNotFound, Exception
org.gcube.common.authorization.client.exceptions.ObjectNotFoundExceptionpublic static org.gcube.common.authorization.library.provider.ClientInfo getClientInfo()
protected static org.gcube.common.resources.gcore.ServiceEndpoint createServiceEndpoint(Map<String,org.gcube.vremanagement.executor.plugin.PluginDeclaration> availablePlugins)
ServiceEndpointpublic void onInit()
onInit in interface org.gcube.smartgears.ApplicationManagerpublic void onShutdown()
onShutdown in interface org.gcube.smartgears.ApplicationManagerCopyright © 2017. All Rights Reserved.