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, undeployEvent
fetch, fetch, getConfiguration, getEventTable, getWatchRegistry, register, setConfiguration, setWatchRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdmin
monitor, ping, startHeartbeat
register
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 AgentIdAware
RemoteException
public String getGSAServiceID() throws RemoteException
getGSAServiceID
in interface AgentIdAware
RemoteException
public NIODetails getNIODetails() throws RemoteException
NIOInfoProvider
getNIODetails
in interface NIOInfoProvider
RemoteException
public NIOStatistics getNIOStatistics() throws RemoteException
NIOInfoProvider
getNIOStatistics
in interface NIOInfoProvider
RemoteException
public void enableLRMIMonitoring() throws RemoteException
NIOInfoProvider
NIOInfoProvider.fetchLRMIMonitoringDetails()
enableLRMIMonitoring
in interface NIOInfoProvider
RemoteException
public void disableLRMIMonitoring() throws RemoteException
NIOInfoProvider
NIOInfoProvider.enableLRMIMonitoring()
disableLRMIMonitoring
in interface NIOInfoProvider
RemoteException
public LRMIMonitoringDetails fetchLRMIMonitoringDetails() throws RemoteException
NIOInfoProvider
NIOInfoProvider.enableLRMIMonitoring()
fetchLRMIMonitoringDetails
in interface NIOInfoProvider
RemoteException
public long getCurrentTimestamp() throws RemoteException
getCurrentTimestamp
in interface OSInfoProvider
RemoteException
public OSDetails getOSDetails() throws RemoteException
getOSDetails
in interface OSInfoProvider
RemoteException
public OSStatistics getOSStatistics() throws RemoteException
getOSStatistics
in interface OSInfoProvider
RemoteException
public JVMDetails getJVMDetails() throws RemoteException
getJVMDetails
in interface JVMInfoProvider
RemoteException
public JVMStatistics getJVMStatistics() throws RemoteException
getJVMStatistics
in interface JVMInfoProvider
RemoteException
public void runGc() throws RemoteException
runGc
in interface JVMInfoProvider
RemoteException
public String[] getZones() throws RemoteException
getZones
in interface GridZoneProvider
RemoteException
public LogEntries logEntriesDirect(LogEntryMatcher matcher) throws RemoteException, IOException
logEntriesDirect
in interface InternalLogProvider
RemoteException
IOException
public void reloadMetricConfiguration() throws RemoteException
reloadMetricConfiguration
in interface InternalDumpProvider
RemoteException
public byte[] dumpBytes(String file, long from, int length) throws RemoteException, IOException
dumpBytes
in interface InternalDumpProvider
RemoteException
IOException
public InternalDumpResult generateDump(String cause, Map<String,Object> context) throws RemoteException, InternalDumpException
generateDump
in interface InternalDumpProvider
RemoteException
InternalDumpException
public InternalDumpResult generateDump(String cause, Map<String,Object> context, String... contributors) throws RemoteException, InternalDumpException
generateDump
in interface InternalDumpProvider
RemoteException
InternalDumpException
public String[] getManagedProcessingUnits()
getManagedProcessingUnits
in interface com.gigaspaces.grid.esm.ESM
public boolean isServiceSecured() throws RemoteException
SecuredService
true
.isServiceSecured
in interface SecuredService
true
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
SecuredService
credentialsProvider
.login
in interface SecuredService
credentialsProvider
- 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
RemoteSecuredService
SecurityContext
login
in interface RemoteSecuredService
securityContext
- 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
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.