public class ESMImpl extends org.jini.rio.jsb.ServiceBeanAdapter implements ESM, RemoteSecuredService, ProcessingUnitRemovedEventListener, ProcessingUnitAddedEventListener, MachineLifecycleEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
ESMImpl.PendingElasticPropertiesUpdate |
| Modifier and Type | Field and Description |
|---|---|
protected GigaSpace |
managementSpace |
activationID, computeResource, computeResourceObserver, context, contextClassLoader, contextMgr, joiner, jsbState, logDirName, mbeanNoticationInfoList, mbeanServer, objectName, proxy, serviceBeanComponent, serviceClassLoader, serviceID, slaThresholdEventAdapter, snapshotter, state, store, uuid| Constructor and Description |
|---|
ESMImpl()
Create an ESM
|
ESMImpl(String[] configArgs,
LifeCycle lifeCycle)
Create an ESM launched from the ServiceStarter framework
|
| Modifier and Type | Method and Description |
|---|---|
void |
advertise() |
protected void |
bootstrap(String[] configArgs) |
protected Object |
createProxy() |
void |
destroy(boolean force) |
void |
disableAgentFailureDetection(String processingUnitName,
long timeout,
TimeUnit timeunit)
Disables failure detection for the agent on the machine that called this method.
|
void |
disableLRMIMonitoring()
Disabled lrmi monitoring (gigaspaces internal remoting layer).
|
byte[] |
dumpBytes(String file,
long from,
int length) |
void |
enableAgentFailureDetection(String processingUnitName)
Enables failure detection for the agent on the machine that called this method.
|
void |
enableLRMIMonitoring()
Enables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to
start track lrmi invocations which can later be viewed by calling.
|
LRMIMonitoringDetails |
fetchLRMIMonitoringDetails()
Return lrmi (gigaspaces internal remoting layer) services monitoring details.
|
InternalDumpResult |
generateDump(String cause,
Map<String,Object> context) |
InternalDumpResult |
generateDump(String cause,
Map<String,Object> context,
String... contributors) |
int |
getAgentId() |
long |
getCurrentTimestamp() |
String |
getGSAServiceID() |
JVMDetails |
getJVMDetails() |
JVMStatistics |
getJVMStatistics() |
String[] |
getManagedProcessingUnits() |
NIODetails |
getNIODetails()
Returns the transport configuration.
|
NIOStatistics |
getNIOStatistics()
Returns the transport statistics.
|
OSDetails |
getOSDetails() |
OSStatistics |
getOSStatistics() |
ScaleStrategyConfig |
getProcessingUnitScaleStrategyConfig(String processingUnitName) |
Remote |
getRemoteApi(String processingUnitName,
String apiName) |
org.jini.rio.monitor.event.Events |
getScaleStrategyEvents(long cursor,
int maxNumberOfEvents) |
String[] |
getZones() |
void |
initialize(org.jini.rio.core.jsb.ServiceBeanContext context) |
boolean |
isManagingProcessingUnit(String processingUnitName) |
boolean |
isManagingProcessingUnitAndScaleNotInProgress(String processingUnitName) |
boolean |
isServiceSecured()
If a security model is defined will return
true. |
LogEntries |
logEntriesDirect(LogEntryMatcher matcher) |
SecurityContext |
login(CredentialsProvider credentialsProvider)
Login to a secured service using the provided
credentialsProvider. |
SecurityContext |
login(SecurityContext securityContext)
Login to a secured service using the provided
SecurityContext |
void |
machineAdded(Machine machine)
Called when a machine is added.
|
void |
machineRemoved(Machine machine)
Called when a machine is removed.
|
void |
processingUnitAdded(ProcessingUnit pu)
A callback indicating that a Processing Unit was added (deployed/discovered).
|
void |
processingUnitRemoved(ProcessingUnit pu)
A callback indicating that a Processing Unit was removed (undeployed).
|
void |
reloadMetricConfiguration() |
void |
runGc() |
void |
setProcessingUnitElasticProperties(String puName,
Map<String,String> properties) |
void |
setProcessingUnitScaleStrategy(String puName,
ScaleStrategyConfig scaleStrategyConfig) |
addAttribute, addAttributes, addNotificationListener, cleanClassLoaders, createObjectName, destroy, destroyJMX, doAdvertise, doInitialize, doStart, exportDo, getAdmin, getAdminExporter, getAssociationManagement, getAssociations, getDiscoveryManager, getExportedProxy, getExporter, getExporter, getJoinManager, getLookupGroups, getNotificationBroadcasterSupport, getNotificationInfo, getProxy, getProxyVerifier, getServiceBeanContext, getServiceID, getServiceProxy, getSLAEventHandler, getStarted, getStartTime, getState, getUuid, initialize, initializeJMX, monitor, ping, postDeregister, postRegister, preDeregister, preRegister, removeNotificationListener, removeNotificationListener, setLookupGroups, start, startHeartbeat, stop, unadvertise, undeployEventfetch, fetch, getConfiguration, getEventTable, getWatchRegistry, register, setConfiguration, setWatchRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdminmonitor, ping, startHeartbeatregisterprotected GigaSpace managementSpace
public void initialize(org.jini.rio.core.jsb.ServiceBeanContext context)
throws Exception
initialize in interface org.jini.rio.core.jsb.ServiceBeaninitialize in class org.jini.rio.jsb.ServiceBeanAdapterExceptionpublic void advertise()
throws IOException
advertise in interface org.jini.rio.core.jsb.ServiceBeanadvertise in interface org.jini.rio.jsb.ServiceBeanAdapterMBeanadvertise in class org.jini.rio.jsb.ServiceBeanAdapterIOExceptionpublic void destroy(boolean force)
destroy in interface org.jini.rio.core.jsb.ServiceBeandestroy in interface org.jini.rio.jsb.ServiceBeanAdapterMBeandestroy in class org.jini.rio.jsb.ServiceBeanAdapterprotected Object createProxy()
createProxy in class org.jini.rio.jsb.ServiceBeanAdapterpublic int getAgentId()
throws RemoteException
getAgentId in interface AgentIdAwareRemoteExceptionpublic String getGSAServiceID() throws RemoteException
getGSAServiceID in interface AgentIdAwareRemoteExceptionpublic NIODetails getNIODetails() throws RemoteException
NIOInfoProvidergetNIODetails in interface NIOInfoProviderRemoteExceptionpublic NIOStatistics getNIOStatistics() throws RemoteException
NIOInfoProvidergetNIOStatistics in interface NIOInfoProviderRemoteExceptionpublic void enableLRMIMonitoring()
throws RemoteException
NIOInfoProviderNIOInfoProvider.fetchLRMIMonitoringDetails()enableLRMIMonitoring in interface NIOInfoProviderRemoteExceptionpublic void disableLRMIMonitoring()
throws RemoteException
NIOInfoProviderNIOInfoProvider.enableLRMIMonitoring()disableLRMIMonitoring in interface NIOInfoProviderRemoteExceptionpublic LRMIMonitoringDetails fetchLRMIMonitoringDetails() throws RemoteException
NIOInfoProviderNIOInfoProvider.enableLRMIMonitoring()fetchLRMIMonitoringDetails in interface NIOInfoProviderRemoteExceptionpublic long getCurrentTimestamp()
throws RemoteException
getCurrentTimestamp in interface OSInfoProviderRemoteExceptionpublic OSDetails getOSDetails() throws RemoteException
getOSDetails in interface OSInfoProviderRemoteExceptionpublic OSStatistics getOSStatistics() throws RemoteException
getOSStatistics in interface OSInfoProviderRemoteExceptionpublic JVMDetails getJVMDetails() throws RemoteException
getJVMDetails in interface JVMInfoProviderRemoteExceptionpublic JVMStatistics getJVMStatistics() throws RemoteException
getJVMStatistics in interface JVMInfoProviderRemoteExceptionpublic void runGc()
throws RemoteException
runGc in interface JVMInfoProviderRemoteExceptionpublic String[] getZones() throws RemoteException
getZones in interface GridZoneProviderRemoteExceptionpublic LogEntries logEntriesDirect(LogEntryMatcher matcher) throws RemoteException, IOException
logEntriesDirect in interface InternalLogProviderRemoteExceptionIOExceptionpublic void reloadMetricConfiguration()
throws RemoteException
reloadMetricConfiguration in interface InternalDumpProviderRemoteExceptionpublic byte[] dumpBytes(String file, long from, int length) throws RemoteException, IOException
dumpBytes in interface InternalDumpProviderRemoteExceptionIOExceptionpublic InternalDumpResult generateDump(String cause, Map<String,Object> context) throws RemoteException, InternalDumpException
generateDump in interface InternalDumpProviderRemoteExceptionInternalDumpExceptionpublic InternalDumpResult generateDump(String cause, Map<String,Object> context, String... contributors) throws RemoteException, InternalDumpException
generateDump in interface InternalDumpProviderRemoteExceptionInternalDumpExceptionpublic String[] getManagedProcessingUnits()
getManagedProcessingUnits in interface com.gigaspaces.grid.esm.ESMpublic boolean isServiceSecured()
throws RemoteException
SecuredServicetrue.isServiceSecured in interface SecuredServicetrue if secured; false otherwise.RemoteException - communication-related exceptions that may occur during the execution
of a remote method call.public SecurityContext login(CredentialsProvider credentialsProvider) throws SecurityException, RemoteException
SecuredServicecredentialsProvider.login in interface SecuredServicecredentialsProvider - provides credentials to be used for authentication.SecurityException - if authentication failed for any reason.RemoteException - communication-related exceptions that may occur during the
execution of a remote method call.public SecurityContext login(SecurityContext securityContext) throws RemoteException
RemoteSecuredServiceSecurityContextlogin in interface RemoteSecuredServicesecurityContext - security context to be used for authentication.RemoteException - communication-related exceptions that may occur during the execution
of a remote method call.public void setProcessingUnitScaleStrategy(String puName, ScaleStrategyConfig scaleStrategyConfig)
public org.jini.rio.monitor.event.Events getScaleStrategyEvents(long cursor,
int maxNumberOfEvents)
public void setProcessingUnitElasticProperties(String puName, Map<String,String> properties) throws RemoteException
RemoteExceptionpublic void processingUnitRemoved(ProcessingUnit pu)
ProcessingUnitRemovedEventListenerprocessingUnitRemoved in interface ProcessingUnitRemovedEventListenerpublic void processingUnitAdded(ProcessingUnit pu)
ProcessingUnitAddedEventListenerprocessingUnitAdded in interface ProcessingUnitAddedEventListenerpublic void machineAdded(Machine machine)
MachineAddedEventListenermachineAdded in interface MachineAddedEventListenerpublic void machineRemoved(Machine machine)
MachineRemovedEventListenermachineRemoved in interface MachineRemovedEventListenerpublic ScaleStrategyConfig getProcessingUnitScaleStrategyConfig(String processingUnitName) throws RemoteException
RemoteExceptionpublic boolean isManagingProcessingUnit(String processingUnitName) throws RemoteException
isManagingProcessingUnit in interface com.gigaspaces.grid.esm.ESMRemoteExceptionpublic boolean isManagingProcessingUnitAndScaleNotInProgress(String processingUnitName) throws RemoteException
isManagingProcessingUnitAndScaleNotInProgress in interface com.gigaspaces.grid.esm.ESMRemoteExceptionpublic Remote getRemoteApi(String processingUnitName, String apiName) throws RemoteException
RemoteExceptionpublic void disableAgentFailureDetection(String processingUnitName, long timeout, TimeUnit timeunit) throws RemoteException
ESMRemoteExceptionMachinesSlaEnforcementEndpoint#disableAgentFailureDetection(GridServiceAgent)public void enableAgentFailureDetection(String processingUnitName) throws RemoteException
ESMRemoteExceptionMachinesSlaEnforcementEndpoint#enableAgentFailureDetection(GridServiceAgent)Copyright © GigaSpaces.