public class DefaultElasticServiceManager extends AbstractAgentGridComponent implements InternalElasticServiceManager
admin| Constructor and Description |
|---|
DefaultElasticServiceManager(ServiceID serviceID,
ESM esm,
InternalAdmin admin,
int agentId,
String agentUid,
JVMDetails jvmDetails) |
getAgentId, getAgentUid, getGridServiceAgent, kill, restart, setGridServiceAgentaddZone, assertStateChangesPermitted, getAdmin, getJVMDetails, getMachine, getOperatingSystem, getTransport, getVirtualMachine, getZones, isDiscovered, setDiscovered, setMachine, setOperatingSystem, setTransport, setVirtualMachineclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAgentUid, setGridServiceAgentgetAgentId, getGridServiceAgent, kill, restartgetAdminsetDiscoveredisDiscoveredsetMachinegetMachinesetTransportgetTransportsetOperatingSystemgetOperatingSystemgetJVMDetailssetVirtualMachinegetVirtualMachineaddZonepublic DefaultElasticServiceManager(ServiceID serviceID, ESM esm, InternalAdmin admin, int agentId, String agentUid, JVMDetails jvmDetails) throws RemoteException
RemoteExceptionpublic String getUid()
GridComponentgetUid in interface GridComponentgetUid in interface InternalVirtualMachineInfoProviderpublic ServiceID getServiceID()
getServiceID in interface InternalElasticServiceManagerpublic ESM getESM()
getESM in interface InternalElasticServiceManagerpublic LogEntries logEntries(LogEntryMatcher matcher) throws AdminException
LogProviderGridComponentGridServiceAgent, will get the log through it
instead of creating a load on the actual grid component.logEntries in interface LogProviderGridComponentAdminExceptionpublic LogEntries logEntriesDirect(LogEntryMatcher matcher) throws AdminException
LogProviderGridComponentLogProviderGridComponent.logEntries(com.gigaspaces.log.LogEntryMatcher), but does not try and get the
logs from the agent.logEntriesDirect in interface LogProviderGridComponentAdminExceptionpublic void reloadMetricConfiguration()
throws AdminException
reloadMetricConfiguration in interface MetricProviderAdminExceptionpublic DumpResult generateDump(String cause, Map<String,Object> context) throws AdminException
DumpProvidergenerateDump in interface DumpProvidercause - The cause that this dump was generatedcontext - Allows to provide specific parameters to specific processorsAdminExceptionpublic DumpResult generateDump(String cause, Map<String,Object> context, String... processors) throws AdminException
DumpProvidergenerateDump in interface DumpProvidercause - The cause this dump was generated.context - Allows to provide specific parameters to specific processors.processors - The list of processors to be used.AdminExceptionpublic NIODetails getNIODetails() throws RemoteException
getNIODetails in interface InternalTransportInfoProviderRemoteExceptionpublic NIOStatistics getNIOStatistics() throws RemoteException
getNIOStatistics in interface InternalTransportInfoProviderRemoteExceptionpublic void enableLRMIMonitoring()
throws RemoteException
enableLRMIMonitoring in interface InternalTransportInfoProviderRemoteExceptionpublic void disableLRMIMonitoring()
throws RemoteException
disableLRMIMonitoring in interface InternalTransportInfoProviderRemoteExceptionpublic LRMIMonitoringDetails fetchLRMIMonitoringDetails() throws RemoteException
fetchLRMIMonitoringDetails in interface InternalTransportInfoProviderRemoteExceptionpublic long getCurrentTimeInMillis()
throws RemoteException
getCurrentTimeInMillis in interface InternalOperatingSystemInfoProviderRemoteExceptionpublic OSDetails getOSDetails() throws RemoteException
getOSDetails in interface InternalOperatingSystemInfoProviderRemoteExceptionpublic OSStatistics getOSStatistics() throws RemoteException
getOSStatistics in interface InternalOperatingSystemInfoProviderRemoteExceptionpublic JVMStatistics getJVMStatistics() throws RemoteException
getJVMStatistics in interface InternalVirtualMachineInfoProviderRemoteExceptionpublic void runGc()
throws RemoteException
runGc in interface InternalVirtualMachineInfoProviderRemoteExceptionpublic void setProcessingUnitElasticProperties(ProcessingUnit pu, Map<String,String> properties)
setProcessingUnitElasticProperties in interface InternalElasticServiceManagerpublic void setProcessingUnitScaleStrategyConfig(ProcessingUnit pu, ScaleStrategyConfig scaleStrategyConfig)
setProcessingUnitScaleStrategyConfig in interface InternalElasticServiceManagerpublic ScaleStrategyConfig getProcessingUnitScaleStrategyConfig(ProcessingUnit pu)
getProcessingUnitScaleStrategyConfig in interface InternalElasticServiceManagerpublic boolean isManagingProcessingUnit(ProcessingUnit pu)
isManagingProcessingUnit in interface InternalElasticServiceManagerpublic boolean isManagingProcessingUnitAndScaleNotInProgress(ProcessingUnit pu)
isManagingProcessingUnitAndScaleNotInProgress in interface InternalElasticServiceManager@Deprecated public boolean isManagingProcessingUnitAndScaleNotInProgressNoCache(ProcessingUnit pu)
isManagingProcessingUnitAndScaleNotInProgressNoCache in interface InternalElasticServiceManagerpublic boolean isManagingProcessingUnitAndScaleInProgress(ProcessingUnit pu)
isManagingProcessingUnitAndScaleInProgress in interface InternalElasticServiceManagerpublic org.jini.rio.monitor.event.Events getScaleStrategyEvents(long cursor,
int maxNumberOfEvents)
getScaleStrategyEvents in interface InternalElasticServiceManagerpublic void processElasticScaleStrategyEvent(ElasticProcessingUnitEvent event)
InternalElasticServiceManagerprocessElasticScaleStrategyEvent in interface InternalElasticServiceManagerpublic Remote getRemoteApi(String processingUnitName, String apiName)
InternalElasticServiceManagergetRemoteApi in interface InternalElasticServiceManagerprocessingUnitName - - the processing unit name the cloud driver belongs to.apiName - - the name of the remote API to access.public void disableAgentFailureDetection(String processingUnitName, long timeout, TimeUnit timeunit)
InternalElasticServiceManager#enableAgentFailover(String) to re-enable agent failure detection functionality
after the machine has completed reboot. Agent failover is enabled automatically once the
timeout expires.disableAgentFailureDetection in interface InternalElasticServiceManagerprocessingUnitName - - The name of the calling PUpublic void enableAgentFailureDetection(String processingUnitName)
InternalElasticServiceManagerenableAgentFailureDetection in interface InternalElasticServiceManagerprocessingUnitName - - The name of the calling PU#disableAgentFailover(String)Copyright © GigaSpaces.