public class DefaultGridServiceAgent extends AbstractGridComponent implements InternalGridServiceAgent
admin| Constructor and Description |
|---|
DefaultGridServiceAgent(ServiceID serviceID,
com.gigaspaces.grid.gsa.GSA gsa,
InternalAdmin admin,
com.gigaspaces.grid.gsa.AgentProcessesDetails processesDetails,
JVMDetails jvmDetails) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgentGridComponent(InternalAgentGridComponent agentGridComponent)
Invoked to mark a child grid component as added to lookup service
|
CompoundLogEntries |
allLogEntries(LogProcessType type,
LogEntryMatcher matcher)
Extracts all the log entries for the provided process type including both "live" runtime
components and ones that are no longer running.
|
void |
deleteTieredStorageSpaceData(String spaceName)
Deletes persistent data of a given tiered storage space
|
void |
disableLRMIMonitoring() |
void |
enableLRMIMonitoring() |
LRMIMonitoringDetails |
fetchLRMIMonitoringDetails() |
DumpResult |
generateDump(String cause,
Map<String,Object> context)
Generates dump for all the provided dump processors.
|
DumpResult |
generateDump(String cause,
Map<String,Object> context,
String... processor)
Generates dump for the provided processors.
|
long |
getCurrentTimeInMillis() |
ExactZonesConfig |
getExactZones() |
GridServiceContainers |
getGridServiceContainers() |
GridServiceManagers |
getGridServiceManagers() |
com.gigaspaces.grid.gsa.GSA |
getGSA() |
JVMStatistics |
getJVMStatistics() |
LookupServices |
getLookupServices() |
NIODetails |
getNIODetails() |
NIOStatistics |
getNIOStatistics() |
OSDetails |
getOSDetails() |
OSStatistics |
getOSStatistics() |
com.gigaspaces.grid.gsa.AgentProcessesDetails |
getProcessesDetails()
Returns all the processes details this agent is currently running.
|
GSAReservationId |
getReservationId() |
ServiceID |
getServiceID() |
String |
getUid()
Returns the unique id of the grid component.
|
InternalAgentGridComponent[] |
getUnconfirmedRemovedAgentGridComponents() |
int |
internalStartGridService(GridServiceContainerOptions options) |
int |
internalStartGridService(LookupServiceOptions options) |
void |
kill(InternalAgentGridComponent agentGridComponent) |
void |
killByAgentId(int agentId)
Kills a process based on the agent id provided to it.
|
CompoundLogEntries |
liveLogEntries(LogEntryMatcher matcher)
Extracts all the log entries of all the "live" runtime components that this agent is running
matching the given matcher.
|
LogEntries |
logEntries(LogEntryMatcher matcher)
Returns the log entries matching the given matcher for the specific grid component.
|
LogEntries |
logEntries(LogProcessType type,
long pid,
LogEntryMatcher matcher)
Extract the log entries matching the provided matcher for the process type and process id.
|
LogEntries |
logEntriesDirect(LogEntryMatcher matcher)
Same as
LogProviderGridComponent.logEntries(com.gigaspaces.log.LogEntryMatcher), but does not try and get the
logs from the agent. |
void |
reloadMetricConfiguration() |
void |
removeAgentGridComponent(InternalAgentGridComponent agentGridComponent)
Invoked to mark a child grid component as removed from lookup service
|
void |
restart(InternalAgentGridComponent agentGridComponent) |
void |
runGc() |
void |
setProcessesDetails(com.gigaspaces.grid.gsa.AgentProcessesDetails processesDetails) |
void |
shutdown()
Shuts down the GSA.
|
void |
startGridService(GridServiceContainerOptions options)
Starts a
GridServiceContainer based on the provided
options. |
void |
startGridService(GridServiceManagerOptions options)
Starts a
GridServiceManager based on the provided options. |
int |
startGridService(GridServiceOptions options)
Starts a generic process of a given type.
|
void |
startGridService(LookupServiceOptions options)
Starts a
LookupService based on the provided options. |
GridServiceContainer |
startGridServiceAndWait(GridServiceContainerOptions options)
Starts a
GridServiceContainer based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned. |
GridServiceContainer |
startGridServiceAndWait(GridServiceContainerOptions options,
long timeout,
TimeUnit timeUnit)
Starts a
GridServiceContainer based on the provided options
and waits for the given timeout (in time unit) until it is discovered by the admin, which is
then returned. |
GridServiceManager |
startGridServiceAndWait(GridServiceManagerOptions options)
Starts a
GridServiceManager based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned. |
GridServiceManager |
startGridServiceAndWait(GridServiceManagerOptions options,
long timeout,
TimeUnit timeUnit)
Starts a
GridServiceManager based on the provided options
and waits for the given timeout (in time unit) until it is discovered by the admin, which is
then returned. |
LookupService |
startGridServiceAndWait(LookupServiceOptions options)
Starts a
LookupService based on the provided options and
waits indefinitely until it is discovered by the admin, which is then returned. |
LookupService |
startGridServiceAndWait(LookupServiceOptions options,
long timeout,
TimeUnit timeUnit)
Starts a
LookupService based on the provided options and
waits for the given timeout (in time unit) until it is discovered by the admin, which is then
returned. |
addZone, assertStateChangesPermitted, getAdmin, getJVMDetails, getMachine, getOperatingSystem, getTransport, getVirtualMachine, getZones, isDiscovered, setDiscovered, setMachine, setOperatingSystem, setTransport, setVirtualMachineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDiscoveredgetAdmingetMachinesetDiscoveredsetMachinesetTransportsetOperatingSystemgetJVMDetailssetVirtualMachineaddZonepublic DefaultGridServiceAgent(ServiceID serviceID, com.gigaspaces.grid.gsa.GSA gsa, InternalAdmin admin, com.gigaspaces.grid.gsa.AgentProcessesDetails processesDetails, JVMDetails jvmDetails)
public String getUid()
GridComponentgetUid in interface GridComponentgetUid in interface InternalVirtualMachineInfoProviderpublic com.gigaspaces.grid.gsa.AgentProcessesDetails getProcessesDetails()
GridServiceAgentgetProcessesDetails in interface GridServiceAgentpublic void setProcessesDetails(com.gigaspaces.grid.gsa.AgentProcessesDetails processesDetails)
setProcessesDetails in interface InternalGridServiceAgentpublic ServiceID getServiceID()
getServiceID in interface InternalGridServiceAgentpublic com.gigaspaces.grid.gsa.GSA getGSA()
getGSA in interface InternalGridServiceAgentpublic int startGridService(GridServiceOptions options)
GridServiceAgentstartGridService in interface GridServiceAgentpublic void killByAgentId(int agentId)
GridServiceAgentkillByAgentId in interface GridServiceAgentpublic void startGridService(GridServiceManagerOptions options)
GridServiceAgentGridServiceManager based on the provided options.startGridService in interface GridServiceAgentpublic LogEntries logEntries(LogProcessType type, long pid, LogEntryMatcher matcher)
GridServiceAgentlogEntries in interface GridServiceAgentpublic 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... processor) throws AdminException
DumpProvidergenerateDump in interface DumpProvidercause - The cause this dump was generated.context - Allows to provide specific parameters to specific processors.processor - The list of processors to be used.AdminExceptionpublic CompoundLogEntries liveLogEntries(LogEntryMatcher matcher)
GridServiceAgentliveLogEntries in interface GridServiceAgentpublic CompoundLogEntries allLogEntries(LogProcessType type, LogEntryMatcher matcher)
GridServiceAgentallLogEntries in interface GridServiceAgentpublic GridServiceManager startGridServiceAndWait(GridServiceManagerOptions options)
GridServiceAgentGridServiceManager based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait in interface GridServiceAgentpublic GridServiceManager startGridServiceAndWait(GridServiceManagerOptions options, long timeout, TimeUnit timeUnit)
GridServiceAgentGridServiceManager based on the provided options
and waits for the given timeout (in time unit) until it is discovered by the admin, which is
then returned.startGridServiceAndWait in interface GridServiceAgentpublic void startGridService(GridServiceContainerOptions options)
GridServiceAgentGridServiceContainer based on the provided
options.startGridService in interface GridServiceAgentpublic int internalStartGridService(GridServiceContainerOptions options)
public GridServiceContainer startGridServiceAndWait(GridServiceContainerOptions options)
GridServiceAgentGridServiceContainer based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait in interface GridServiceAgentpublic GridServiceContainer startGridServiceAndWait(GridServiceContainerOptions options, long timeout, TimeUnit timeUnit)
GridServiceAgentGridServiceContainer based on the provided options
and waits for the given timeout (in time unit) until it is discovered by the admin, which is
then returned.startGridServiceAndWait in interface GridServiceAgentpublic void startGridService(LookupServiceOptions options)
GridServiceAgentLookupService based on the provided options.startGridService in interface GridServiceAgentpublic int internalStartGridService(LookupServiceOptions options)
public LookupService startGridServiceAndWait(LookupServiceOptions options)
GridServiceAgentLookupService based on the provided options and
waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait in interface GridServiceAgentpublic LookupService startGridServiceAndWait(LookupServiceOptions options, long timeout, TimeUnit timeUnit)
GridServiceAgentLookupService based on the provided options and
waits for the given timeout (in time unit) until it is discovered by the admin, which is then
returned.startGridServiceAndWait in interface GridServiceAgentpublic void kill(InternalAgentGridComponent agentGridComponent)
kill in interface InternalGridServiceAgentpublic void restart(InternalAgentGridComponent agentGridComponent)
restart in interface InternalGridServiceAgentpublic void shutdown()
GridServiceAgentshutdown in interface GridServiceAgentpublic 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 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 removeAgentGridComponent(InternalAgentGridComponent agentGridComponent)
InternalGridServiceAgentremoveAgentGridComponent in interface InternalGridServiceAgentpublic void addAgentGridComponent(InternalAgentGridComponent agentGridComponent)
InternalGridServiceAgentaddAgentGridComponent in interface InternalGridServiceAgentpublic InternalAgentGridComponent[] getUnconfirmedRemovedAgentGridComponents()
getUnconfirmedRemovedAgentGridComponents in interface InternalGridServiceAgentpublic ExactZonesConfig getExactZones()
getExactZones in interface GridServiceAgentProcessingUnit#getRequiredContainerZones()}public GridServiceContainers getGridServiceContainers()
getGridServiceContainers in interface GridServiceAgentGridServiceContainers started by this GridServiceAgentpublic GridServiceManagers getGridServiceManagers()
getGridServiceManagers in interface GridServiceAgentGridServiceManagers started by this GridServiceAgentpublic LookupServices getLookupServices()
getLookupServices in interface GridServiceAgentLookupServices started by this GridServiceAgentpublic void deleteTieredStorageSpaceData(String spaceName)
InternalGridServiceAgentdeleteTieredStorageSpaceData in interface InternalGridServiceAgentpublic GSAReservationId getReservationId()
getReservationId in interface InternalGridServiceAgentCopyright © GigaSpaces.