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, setVirtualMachine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDiscovered
getAdmin
getMachine
setDiscovered
setMachine
setTransport
setOperatingSystem
getJVMDetails
setVirtualMachine
addZone
public DefaultGridServiceAgent(ServiceID serviceID, com.gigaspaces.grid.gsa.GSA gsa, InternalAdmin admin, com.gigaspaces.grid.gsa.AgentProcessesDetails processesDetails, JVMDetails jvmDetails)
public String getUid()
GridComponent
getUid
in interface GridComponent
getUid
in interface InternalVirtualMachineInfoProvider
public com.gigaspaces.grid.gsa.AgentProcessesDetails getProcessesDetails()
GridServiceAgent
getProcessesDetails
in interface GridServiceAgent
public void setProcessesDetails(com.gigaspaces.grid.gsa.AgentProcessesDetails processesDetails)
setProcessesDetails
in interface InternalGridServiceAgent
public ServiceID getServiceID()
getServiceID
in interface InternalGridServiceAgent
public com.gigaspaces.grid.gsa.GSA getGSA()
getGSA
in interface InternalGridServiceAgent
public int startGridService(GridServiceOptions options)
GridServiceAgent
startGridService
in interface GridServiceAgent
public void killByAgentId(int agentId)
GridServiceAgent
killByAgentId
in interface GridServiceAgent
public void startGridService(GridServiceManagerOptions options)
GridServiceAgent
GridServiceManager
based on the provided options.startGridService
in interface GridServiceAgent
public LogEntries logEntries(LogProcessType type, long pid, LogEntryMatcher matcher)
GridServiceAgent
logEntries
in interface GridServiceAgent
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... processor) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause this dump was generated.context
- Allows to provide specific parameters to specific processors.processor
- The list of processors to be used.AdminException
public CompoundLogEntries liveLogEntries(LogEntryMatcher matcher)
GridServiceAgent
liveLogEntries
in interface GridServiceAgent
public CompoundLogEntries allLogEntries(LogProcessType type, LogEntryMatcher matcher)
GridServiceAgent
allLogEntries
in interface GridServiceAgent
public GridServiceManager startGridServiceAndWait(GridServiceManagerOptions options)
GridServiceAgent
GridServiceManager
based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait
in interface GridServiceAgent
public GridServiceManager startGridServiceAndWait(GridServiceManagerOptions options, long timeout, TimeUnit timeUnit)
GridServiceAgent
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.startGridServiceAndWait
in interface GridServiceAgent
public void startGridService(GridServiceContainerOptions options)
GridServiceAgent
GridServiceContainer
based on the provided
options.startGridService
in interface GridServiceAgent
public int internalStartGridService(GridServiceContainerOptions options)
public GridServiceContainer startGridServiceAndWait(GridServiceContainerOptions options)
GridServiceAgent
GridServiceContainer
based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait
in interface GridServiceAgent
public GridServiceContainer startGridServiceAndWait(GridServiceContainerOptions options, long timeout, TimeUnit timeUnit)
GridServiceAgent
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.startGridServiceAndWait
in interface GridServiceAgent
public void startGridService(LookupServiceOptions options)
GridServiceAgent
LookupService
based on the provided options.startGridService
in interface GridServiceAgent
public int internalStartGridService(LookupServiceOptions options)
public LookupService startGridServiceAndWait(LookupServiceOptions options)
GridServiceAgent
LookupService
based on the provided options and
waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait
in interface GridServiceAgent
public LookupService startGridServiceAndWait(LookupServiceOptions options, long timeout, TimeUnit timeUnit)
GridServiceAgent
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.startGridServiceAndWait
in interface GridServiceAgent
public void kill(InternalAgentGridComponent agentGridComponent)
kill
in interface InternalGridServiceAgent
public void restart(InternalAgentGridComponent agentGridComponent)
restart
in interface InternalGridServiceAgent
public void shutdown()
GridServiceAgent
shutdown
in interface GridServiceAgent
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 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 removeAgentGridComponent(InternalAgentGridComponent agentGridComponent)
InternalGridServiceAgent
removeAgentGridComponent
in interface InternalGridServiceAgent
public void addAgentGridComponent(InternalAgentGridComponent agentGridComponent)
InternalGridServiceAgent
addAgentGridComponent
in interface InternalGridServiceAgent
public InternalAgentGridComponent[] getUnconfirmedRemovedAgentGridComponents()
getUnconfirmedRemovedAgentGridComponents
in interface InternalGridServiceAgent
public ExactZonesConfig getExactZones()
getExactZones
in interface GridServiceAgent
ProcessingUnit#getRequiredContainerZones()}
public GridServiceContainers getGridServiceContainers()
getGridServiceContainers
in interface GridServiceAgent
GridServiceContainers
started by this GridServiceAgent
public GridServiceManagers getGridServiceManagers()
getGridServiceManagers
in interface GridServiceAgent
GridServiceManagers
started by this GridServiceAgent
public LookupServices getLookupServices()
getLookupServices
in interface GridServiceAgent
LookupServices
started by this GridServiceAgent
public void deleteTieredStorageSpaceData(String spaceName)
InternalGridServiceAgent
deleteTieredStorageSpaceData
in interface InternalGridServiceAgent
public GSAReservationId getReservationId()
getReservationId
in interface InternalGridServiceAgent
Copyright © GigaSpaces.