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,
com.sun.jini.start.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, undeployEvent
fetch, fetch, getConfiguration, getEventTable, getWatchRegistry, register, setConfiguration, setWatchRegistry
protected GigaSpace managementSpace
public void initialize(org.jini.rio.core.jsb.ServiceBeanContext context) throws Exception
initialize
in interface org.jini.rio.core.jsb.ServiceBean
initialize
in class org.jini.rio.jsb.ServiceBeanAdapter
Exception
public void advertise() throws IOException
advertise
in interface org.jini.rio.core.jsb.ServiceBean
advertise
in interface org.jini.rio.jsb.ServiceBeanAdapterMBean
advertise
in class org.jini.rio.jsb.ServiceBeanAdapter
IOException
public void destroy(boolean force)
destroy
in interface org.jini.rio.core.jsb.ServiceBean
destroy
in interface org.jini.rio.jsb.ServiceBeanAdapterMBean
destroy
in class org.jini.rio.jsb.ServiceBeanAdapter
protected Object createProxy()
createProxy
in class org.jini.rio.jsb.ServiceBeanAdapter
public int getAgentId() throws RemoteException
getAgentId
in interface com.gigaspaces.grid.gsa.AgentIdAware
RemoteException
public String getGSAServiceID() throws RemoteException
getGSAServiceID
in interface com.gigaspaces.grid.gsa.AgentIdAware
RemoteException
public com.gigaspaces.lrmi.nio.info.NIODetails getNIODetails() throws RemoteException
getNIODetails
in interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
RemoteException
public com.gigaspaces.lrmi.nio.info.NIOStatistics getNIOStatistics() throws RemoteException
getNIOStatistics
in interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
RemoteException
public void enableLRMIMonitoring() throws RemoteException
enableLRMIMonitoring
in interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
RemoteException
public void disableLRMIMonitoring() throws RemoteException
disableLRMIMonitoring
in interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
RemoteException
public com.gigaspaces.lrmi.LRMIMonitoringDetails fetchLRMIMonitoringDetails() throws RemoteException
fetchLRMIMonitoringDetails
in interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
RemoteException
public long getCurrentTimestamp() throws RemoteException
getCurrentTimestamp
in interface com.gigaspaces.internal.os.OSInfoProvider
RemoteException
public com.gigaspaces.internal.os.OSDetails getOSDetails() throws RemoteException
getOSDetails
in interface com.gigaspaces.internal.os.OSInfoProvider
RemoteException
public com.gigaspaces.internal.os.OSStatistics getOSStatistics() throws RemoteException
getOSStatistics
in interface com.gigaspaces.internal.os.OSInfoProvider
RemoteException
public com.gigaspaces.internal.jvm.JVMDetails getJVMDetails() throws RemoteException
getJVMDetails
in interface com.gigaspaces.internal.jvm.JVMInfoProvider
RemoteException
public com.gigaspaces.internal.jvm.JVMStatistics getJVMStatistics() throws RemoteException
getJVMStatistics
in interface com.gigaspaces.internal.jvm.JVMInfoProvider
RemoteException
public void runGc() throws RemoteException
runGc
in interface com.gigaspaces.internal.jvm.JVMInfoProvider
RemoteException
public String[] getZones() throws RemoteException
getZones
in interface com.gigaspaces.grid.zone.GridZoneProvider
RemoteException
public LogEntries logEntriesDirect(LogEntryMatcher matcher) throws RemoteException, IOException
logEntriesDirect
in interface com.gigaspaces.internal.log.InternalLogProvider
RemoteException
IOException
public void reloadMetricConfiguration() throws RemoteException
reloadMetricConfiguration
in interface com.gigaspaces.internal.dump.InternalDumpProvider
RemoteException
public byte[] dumpBytes(String file, long from, int length) throws RemoteException, IOException
dumpBytes
in interface com.gigaspaces.internal.dump.InternalDumpProvider
RemoteException
IOException
public 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.InternalDumpProvider
RemoteException
com.gigaspaces.internal.dump.InternalDumpException
public 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.InternalDumpProvider
RemoteException
com.gigaspaces.internal.dump.InternalDumpException
public String[] getManagedProcessingUnits()
getManagedProcessingUnits
in interface com.gigaspaces.grid.esm.ESM
public boolean isServiceSecured() throws RemoteException
isServiceSecured
in interface com.gigaspaces.security.service.SecuredService
RemoteException
public SecurityContext login(CredentialsProvider credentialsProvider) throws SecurityException, RemoteException
login
in interface com.gigaspaces.security.service.SecuredService
SecurityException
RemoteException
public SecurityContext login(SecurityContext securityContext) throws RemoteException
login
in interface com.gigaspaces.security.service.RemoteSecuredService
RemoteException
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
RemoteException
public void processingUnitRemoved(ProcessingUnit pu)
ProcessingUnitRemovedEventListener
processingUnitRemoved
in interface ProcessingUnitRemovedEventListener
public void processingUnitAdded(ProcessingUnit pu)
ProcessingUnitAddedEventListener
processingUnitAdded
in interface ProcessingUnitAddedEventListener
public void machineAdded(Machine machine)
MachineAddedEventListener
machineAdded
in interface MachineAddedEventListener
public void machineRemoved(Machine machine)
MachineRemovedEventListener
machineRemoved
in interface MachineRemovedEventListener
public ScaleStrategyConfig getProcessingUnitScaleStrategyConfig(String processingUnitName) throws RemoteException
RemoteException
public boolean isManagingProcessingUnit(String processingUnitName) throws RemoteException
isManagingProcessingUnit
in interface com.gigaspaces.grid.esm.ESM
RemoteException
public boolean isManagingProcessingUnitAndScaleNotInProgress(String processingUnitName) throws RemoteException
isManagingProcessingUnitAndScaleNotInProgress
in interface com.gigaspaces.grid.esm.ESM
RemoteException
public Remote getRemoteApi(String processingUnitName, String apiName) throws RemoteException
RemoteException
public void disableAgentFailureDetection(String processingUnitName, long timeout, TimeUnit timeunit) throws RemoteException
ESM
RemoteException
MachinesSlaEnforcementEndpoint#disableAgentFailureDetection(GridServiceAgent)
public void enableAgentFailureDetection(String processingUnitName) throws RemoteException
ESM
RemoteException
MachinesSlaEnforcementEndpoint#enableAgentFailureDetection(GridServiceAgent)
Copyright © GigaSpaces.