public class ESMImpl extends org.jini.rio.jsb.ServiceBeanAdapter implements ESM, com.gigaspaces.security.service.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() |
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() |
com.gigaspaces.lrmi.LRMIMonitoringDetails |
fetchLRMIMonitoringDetails() |
com.gigaspaces.internal.dump.InternalDumpResult |
generateDump(String cause,
Map<String,Object> context) |
com.gigaspaces.internal.dump.InternalDumpResult |
generateDump(String cause,
Map<String,Object> context,
String... contributors) |
int |
getAgentId() |
long |
getCurrentTimestamp() |
String |
getGSAServiceID() |
com.gigaspaces.internal.jvm.JVMDetails |
getJVMDetails() |
com.gigaspaces.internal.jvm.JVMStatistics |
getJVMStatistics() |
String[] |
getManagedProcessingUnits() |
com.gigaspaces.lrmi.nio.info.NIODetails |
getNIODetails() |
com.gigaspaces.lrmi.nio.info.NIOStatistics |
getNIOStatistics() |
com.gigaspaces.internal.os.OSDetails |
getOSDetails() |
com.gigaspaces.internal.os.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() |
LogEntries |
logEntriesDirect(LogEntryMatcher matcher) |
SecurityContext |
login(CredentialsProvider credentialsProvider) |
SecurityContext |
login(SecurityContext 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, waitgetAdminprotected 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 com.gigaspaces.grid.gsa.AgentIdAwareRemoteExceptionpublic String getGSAServiceID() throws RemoteException
getGSAServiceID in interface com.gigaspaces.grid.gsa.AgentIdAwareRemoteExceptionpublic com.gigaspaces.lrmi.nio.info.NIODetails getNIODetails()
throws RemoteException
getNIODetails in interface com.gigaspaces.lrmi.nio.info.NIOInfoProviderRemoteExceptionpublic com.gigaspaces.lrmi.nio.info.NIOStatistics getNIOStatistics()
throws RemoteException
getNIOStatistics in interface com.gigaspaces.lrmi.nio.info.NIOInfoProviderRemoteExceptionpublic void enableLRMIMonitoring()
throws RemoteException
enableLRMIMonitoring in interface com.gigaspaces.lrmi.nio.info.NIOInfoProviderRemoteExceptionpublic void disableLRMIMonitoring()
throws RemoteException
disableLRMIMonitoring in interface com.gigaspaces.lrmi.nio.info.NIOInfoProviderRemoteExceptionpublic com.gigaspaces.lrmi.LRMIMonitoringDetails fetchLRMIMonitoringDetails()
throws RemoteException
fetchLRMIMonitoringDetails in interface com.gigaspaces.lrmi.nio.info.NIOInfoProviderRemoteExceptionpublic long getCurrentTimestamp()
throws RemoteException
getCurrentTimestamp in interface com.gigaspaces.internal.os.OSInfoProviderRemoteExceptionpublic com.gigaspaces.internal.os.OSDetails getOSDetails()
throws RemoteException
getOSDetails in interface com.gigaspaces.internal.os.OSInfoProviderRemoteExceptionpublic com.gigaspaces.internal.os.OSStatistics getOSStatistics()
throws RemoteException
getOSStatistics in interface com.gigaspaces.internal.os.OSInfoProviderRemoteExceptionpublic com.gigaspaces.internal.jvm.JVMDetails getJVMDetails()
throws RemoteException
getJVMDetails in interface com.gigaspaces.internal.jvm.JVMInfoProviderRemoteExceptionpublic com.gigaspaces.internal.jvm.JVMStatistics getJVMStatistics()
throws RemoteException
getJVMStatistics in interface com.gigaspaces.internal.jvm.JVMInfoProviderRemoteExceptionpublic void runGc()
throws RemoteException
runGc in interface com.gigaspaces.internal.jvm.JVMInfoProviderRemoteExceptionpublic String[] getZones() throws RemoteException
getZones in interface com.gigaspaces.grid.zone.GridZoneProviderRemoteExceptionpublic LogEntries logEntriesDirect(LogEntryMatcher matcher) throws RemoteException, IOException
logEntriesDirect in interface com.gigaspaces.internal.log.InternalLogProviderRemoteExceptionIOExceptionpublic void reloadMetricConfiguration()
throws RemoteException
reloadMetricConfiguration in interface com.gigaspaces.internal.dump.InternalDumpProviderRemoteExceptionpublic byte[] dumpBytes(String file, long from, int length) throws RemoteException, IOException
dumpBytes in interface com.gigaspaces.internal.dump.InternalDumpProviderRemoteExceptionIOExceptionpublic com.gigaspaces.internal.dump.InternalDumpResult generateDump(String cause, Map<String,Object> context) throws RemoteException, com.gigaspaces.internal.dump.InternalDumpException
generateDump in interface com.gigaspaces.internal.dump.InternalDumpProviderRemoteExceptioncom.gigaspaces.internal.dump.InternalDumpExceptionpublic com.gigaspaces.internal.dump.InternalDumpResult generateDump(String cause, Map<String,Object> context, String... contributors) throws RemoteException, com.gigaspaces.internal.dump.InternalDumpException
generateDump in interface com.gigaspaces.internal.dump.InternalDumpProviderRemoteExceptioncom.gigaspaces.internal.dump.InternalDumpExceptionpublic String[] getManagedProcessingUnits()
getManagedProcessingUnits in interface com.gigaspaces.grid.esm.ESMpublic boolean isServiceSecured()
throws RemoteException
isServiceSecured in interface com.gigaspaces.security.service.SecuredServiceRemoteExceptionpublic SecurityContext login(CredentialsProvider credentialsProvider) throws SecurityException, RemoteException
login in interface com.gigaspaces.security.service.SecuredServiceSecurityExceptionRemoteExceptionpublic SecurityContext login(SecurityContext securityContext) throws RemoteException
login in interface com.gigaspaces.security.service.RemoteSecuredServiceRemoteExceptionpublic 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.