public class ServiceContext
extends org.gcube.common.core.contexts.GCUBEServiceContext
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceContext.DeployerResourceConsumer
Consumer to listen when new
GCUBEScope are joined to the instance. |
protected class |
ServiceContext.HDeployerCompleteGHNStateHandler
Updates the scopes of the previously deployed packages
|
protected class |
ServiceContext.HDeployerState
Tries to create the resource in all the instance scopes
|
protected class |
ServiceContext.HDeployerStateScheduler
Creates/updates the Deployer stateful resource
|
org.gcube.common.core.contexts.GCUBEServiceContext.IllegalStateTransitionException, org.gcube.common.core.contexts.GCUBEServiceContext.RILifetimeEvent, org.gcube.common.core.contexts.GCUBEServiceContext.RILifetimeTopic, org.gcube.common.core.contexts.GCUBEServiceContext.ServiceSecurityStatus, org.gcube.common.core.contexts.GCUBEServiceContext.Stager, org.gcube.common.core.contexts.GCUBEServiceContext.StateTransitionException, org.gcube.common.core.contexts.GCUBEServiceContext.Statusorg.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeConsumer, org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeEvent, org.gcube.common.core.security.GCUBEServiceSecurityManager.LifetimeTopic| Modifier and Type | Field and Description |
|---|---|
static String |
JNDI_NAME |
AUTHENTICATION_MANAGER_JNDI_NAME, AUTHORISATION_MANAGER_JNDI_NAME, CONFIG_DIR_JNDI_NAME, LISTENER_UPDATE_INTERVAL, LTEventProducer, PERSISTENCE_MANAGER_JNDI_NAME, PLUGIN_MANAGER_JNDI_NAME, PROFILE_FILE_NAME, PROPAGATE_CALLER_CREDENTIALS_JNDI_NAME, PUBLISHED_HOST_JNDI_NAME, PUBLISHED_PORT_JNDI_NAME, RIPROFILE_FILENAME, SECURITY_MANAGER_JNDI_NAME, START_SCOPES_JNDI_NAME| Modifier and Type | Method and Description |
|---|---|
String |
getConfigurationFileAbsolutePath(String relativepath)
Given a relative path in the /etc folder of the service, returns its absolute path
|
static ServiceContext |
getContext()
Gets the current service context
|
protected String |
getJNDIName() |
protected void |
onReady()
It sequentially starts two
GCUBEScheduledHandler: the first one creates the Deployer Resource, then, the second one adds to all the packages
deployed before the last restart to their instructed scopes |
addScope, getAuthenticationManager, getAuthorizationManager, getCallerCredentials, getCredentials, getDefaultException, getDefaultException, getFile, getID, getInstance, getLogger, getManagementBean, getName, getPersistenceRoot, getPersistentFile, getPluginManager, getPolicy, getProperty, getScope, getScopeManager, getSecurityManager, getService, getServiceClass, getServiceCredentials, getServiceSecurityStatus, getStartScopes, getStatus, initialise, isSecurityEnabled, needServiceCredentials, notifyStateChange, onFailure, onInitialisation, onShutdown, onStateChange, onUpdate, prepareCall, propagateCallerCredentials, removeScope, setAuthMethod, setScope, setScope, setScope, setSecurity, setStatus, subscribe, subscribeLifetTime, unsubscribe, unsubscribeLifetTime, useCallerCredentials, useCredentials, useCredentials, useCredentials, useServiceCredentialspublic static final String JNDI_NAME
public static ServiceContext getContext()
protected String getJNDIName()
getJNDIName in class org.gcube.common.core.contexts.GCUBEServiceContextprotected void onReady()
throws Exception
GCUBEScheduledHandler: the first one creates the Deployer Resource, then, the second one adds to all the packages
deployed before the last restart to their instructed scopesonReady in class org.gcube.common.core.contexts.GCUBEServiceContextExceptionCopyright © 2015. All Rights Reserved.