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, setGridServiceAgent
addZone, assertStateChangesPermitted, getAdmin, getJVMDetails, getMachine, getOperatingSystem, getTransport, getVirtualMachine, getZones, isDiscovered, setDiscovered, setMachine, setOperatingSystem, setTransport, setVirtualMachine
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAgentUid, setGridServiceAgent
getAgentId, getGridServiceAgent, kill, restart
getAdmin
setDiscovered
isDiscovered
setMachine
getMachine
setTransport
getTransport
setOperatingSystem
getOperatingSystem
getJVMDetails
setVirtualMachine
getVirtualMachine
addZone
public DefaultElasticServiceManager(ServiceID serviceID, ESM esm, InternalAdmin admin, int agentId, String agentUid, JVMDetails jvmDetails) throws RemoteException
RemoteException
public String getUid()
GridComponent
getUid
in interface GridComponent
getUid
in interface InternalVirtualMachineInfoProvider
public ServiceID getServiceID()
getServiceID
in interface InternalElasticServiceManager
public ESM getESM()
getESM
in interface InternalElasticServiceManager
public LogEntries logEntries(LogEntryMatcher matcher) throws AdminException
LogProviderGridComponent
GridServiceAgent
, will get the log through it
instead of creating a load on the actual grid component.logEntries
in interface LogProviderGridComponent
AdminException
public LogEntries logEntriesDirect(LogEntryMatcher matcher) throws AdminException
LogProviderGridComponent
LogProviderGridComponent.logEntries(com.gigaspaces.log.LogEntryMatcher)
, but does not try and get the
logs from the agent.logEntriesDirect
in interface LogProviderGridComponent
AdminException
public void reloadMetricConfiguration() throws AdminException
reloadMetricConfiguration
in interface MetricProvider
AdminException
public DumpResult generateDump(String cause, Map<String,Object> context) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause that this dump was generatedcontext
- Allows to provide specific parameters to specific processorsAdminException
public DumpResult generateDump(String cause, Map<String,Object> context, String... processors) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause this dump was generated.context
- Allows to provide specific parameters to specific processors.processors
- The list of processors to be used.AdminException
public NIODetails getNIODetails() throws RemoteException
getNIODetails
in interface InternalTransportInfoProvider
RemoteException
public NIOStatistics getNIOStatistics() throws RemoteException
getNIOStatistics
in interface InternalTransportInfoProvider
RemoteException
public void enableLRMIMonitoring() throws RemoteException
enableLRMIMonitoring
in interface InternalTransportInfoProvider
RemoteException
public void disableLRMIMonitoring() throws RemoteException
disableLRMIMonitoring
in interface InternalTransportInfoProvider
RemoteException
public LRMIMonitoringDetails fetchLRMIMonitoringDetails() throws RemoteException
fetchLRMIMonitoringDetails
in interface InternalTransportInfoProvider
RemoteException
public long getCurrentTimeInMillis() throws RemoteException
getCurrentTimeInMillis
in interface InternalOperatingSystemInfoProvider
RemoteException
public OSDetails getOSDetails() throws RemoteException
getOSDetails
in interface InternalOperatingSystemInfoProvider
RemoteException
public OSStatistics getOSStatistics() throws RemoteException
getOSStatistics
in interface InternalOperatingSystemInfoProvider
RemoteException
public JVMStatistics getJVMStatistics() throws RemoteException
getJVMStatistics
in interface InternalVirtualMachineInfoProvider
RemoteException
public void runGc() throws RemoteException
runGc
in interface InternalVirtualMachineInfoProvider
RemoteException
public void setProcessingUnitElasticProperties(ProcessingUnit pu, Map<String,String> properties)
setProcessingUnitElasticProperties
in interface InternalElasticServiceManager
public void setProcessingUnitScaleStrategyConfig(ProcessingUnit pu, ScaleStrategyConfig scaleStrategyConfig)
setProcessingUnitScaleStrategyConfig
in interface InternalElasticServiceManager
public ScaleStrategyConfig getProcessingUnitScaleStrategyConfig(ProcessingUnit pu)
getProcessingUnitScaleStrategyConfig
in interface InternalElasticServiceManager
public boolean isManagingProcessingUnit(ProcessingUnit pu)
isManagingProcessingUnit
in interface InternalElasticServiceManager
public boolean isManagingProcessingUnitAndScaleNotInProgress(ProcessingUnit pu)
isManagingProcessingUnitAndScaleNotInProgress
in interface InternalElasticServiceManager
@Deprecated public boolean isManagingProcessingUnitAndScaleNotInProgressNoCache(ProcessingUnit pu)
isManagingProcessingUnitAndScaleNotInProgressNoCache
in interface InternalElasticServiceManager
public boolean isManagingProcessingUnitAndScaleInProgress(ProcessingUnit pu)
isManagingProcessingUnitAndScaleInProgress
in interface InternalElasticServiceManager
public org.jini.rio.monitor.event.Events getScaleStrategyEvents(long cursor, int maxNumberOfEvents)
getScaleStrategyEvents
in interface InternalElasticServiceManager
public void processElasticScaleStrategyEvent(ElasticProcessingUnitEvent event)
InternalElasticServiceManager
processElasticScaleStrategyEvent
in interface InternalElasticServiceManager
public Remote getRemoteApi(String processingUnitName, String apiName)
InternalElasticServiceManager
getRemoteApi
in interface InternalElasticServiceManager
processingUnitName
- - 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 InternalElasticServiceManager
processingUnitName
- - The name of the calling PUpublic void enableAgentFailureDetection(String processingUnitName)
InternalElasticServiceManager
enableAgentFailureDetection
in interface InternalElasticServiceManager
processingUnitName
- - The name of the calling PU#disableAgentFailover(String)
Copyright © GigaSpaces.