Package org.openspaces.admin.gsa
Interface GridServiceAgent
- All Superinterfaces:
AdminAware,DiscoverableComponent,DumpProvider,GridComponent,LogProviderGridComponent,MachineAware,MetricProvider,OperatingSystemAware,TransportAware,VirtualMachineAware,ZoneAware
- All Known Subinterfaces:
InternalGridServiceAgent
- All Known Implementing Classes:
DefaultGridServiceAgent
A Grid Service Agent is a process manager allowing to start and stop (on the operating system
process level) processes (such as
GridServiceManager, GridServiceContainer and LookupService.
It can also globally manage certain process type (a process type is a GSM for example), which
means that when running X number of Grid Service Agents, at least N processes will run between
them.- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionallLogEntries(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.com.gigaspaces.grid.gsa.AgentProcessesDetailsReturns all the processes details this agent is currently running.voidkillByAgentId(int agentId) Kills a process based on the agent id provided to it.liveLogEntries(LogEntryMatcher matcher) Extracts all the log entries of all the "live" runtime components that this agent is running matching the given matcher.logEntries(LogProcessType type, long pid, LogEntryMatcher matcher) Extract the log entries matching the provided matcher for the process type and process id.voidshutdown()Shuts down the GSA.voidStarts aGridServiceContainerbased on the provided options.voidStarts aGridServiceManagerbased on the provided options.intstartGridService(GridServiceOptions options) Starts a generic process of a given type.voidstartGridService(LookupServiceOptions options) Starts aLookupServicebased on the provided options.Starts aGridServiceContainerbased on the provided options and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait(GridServiceContainerOptions options, long timeout, TimeUnit timeUnit) Starts aGridServiceContainerbased on the provided options and waits for the given timeout (in time unit) until it is discovered by the admin, which is then returned.Starts aGridServiceManagerbased on the provided options and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait(GridServiceManagerOptions options, long timeout, TimeUnit timeUnit) Starts aGridServiceManagerbased on the provided options and waits for the given timeout (in time unit) until it is discovered by the admin, which is then returned.Starts aLookupServicebased on the provided options and waits indefinitely until it is discovered by the admin, which is then returned.startGridServiceAndWait(LookupServiceOptions options, long timeout, TimeUnit timeUnit) Starts aLookupServicebased on the provided options and waits for the given timeout (in time unit) until it is discovered by the admin, which is then returned.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface org.openspaces.admin.DiscoverableComponent
isDiscoveredMethods inherited from interface org.openspaces.admin.dump.DumpProvider
generateDump, generateDumpMethods inherited from interface org.openspaces.admin.GridComponent
getUidMethods inherited from interface org.openspaces.admin.LogProviderGridComponent
logEntries, logEntriesDirectMethods inherited from interface org.openspaces.admin.machine.MachineAware
getMachineMethods inherited from interface org.openspaces.admin.metrics.MetricProvider
reloadMetricConfigurationMethods inherited from interface org.openspaces.admin.os.OperatingSystemAware
getOperatingSystemMethods inherited from interface org.openspaces.admin.transport.TransportAware
getTransportMethods inherited from interface org.openspaces.admin.vm.VirtualMachineAware
getVirtualMachine
-
Method Details
-
getProcessesDetails
com.gigaspaces.grid.gsa.AgentProcessesDetails getProcessesDetails()Returns all the processes details this agent is currently running. -
startGridService
Starts aGridServiceManagerbased on the provided options. -
startGridServiceAndWait
Starts aGridServiceManagerbased on the provided options and waits indefinitely until it is discovered by the admin, which is then returned. -
startGridServiceAndWait
GridServiceManager startGridServiceAndWait(GridServiceManagerOptions options, long timeout, TimeUnit timeUnit) Starts aGridServiceManagerbased on the provided options and waits for the given timeout (in time unit) until it is discovered by the admin, which is then returned. -
startGridService
Starts aGridServiceContainerbased on the provided options. -
startGridServiceAndWait
Starts aGridServiceContainerbased on the provided options and waits indefinitely until it is discovered by the admin, which is then returned. -
startGridServiceAndWait
GridServiceContainer startGridServiceAndWait(GridServiceContainerOptions options, long timeout, TimeUnit timeUnit) Starts aGridServiceContainerbased on the provided options and waits for the given timeout (in time unit) until it is discovered by the admin, which is then returned. -
startGridService
Starts aLookupServicebased on the provided options. -
startGridServiceAndWait
Starts aLookupServicebased on the provided options and waits indefinitely until it is discovered by the admin, which is then returned. -
startGridServiceAndWait
LookupService startGridServiceAndWait(LookupServiceOptions options, long timeout, TimeUnit timeUnit) Starts aLookupServicebased on the provided options and waits for the given timeout (in time unit) until it is discovered by the admin, which is then returned. -
startGridService
Starts a generic process of a given type. -
killByAgentId
void killByAgentId(int agentId) Kills a process based on the agent id provided to it. -
logEntries
Extract the log entries matching the provided matcher for the process type and process id. -
liveLogEntries
Extracts all the log entries of all the "live" runtime components that this agent is running matching the given matcher. -
allLogEntries
Extracts all the log entries for the provided process type including both "live" runtime components and ones that are no longer running. -
shutdown
void shutdown()Shuts down the GSA.- Since:
- 7.1.2
-
getExactZones
ExactZonesConfig getExactZones()- Returns:
- the list of zones that the GSA satisfies
- Since:
- 9.1.0
-
getGridServiceContainers
GridServiceContainers getGridServiceContainers()- Returns:
- Returns the
GridServiceContainersstarted by thisGridServiceAgent - Since:
- 10.1.1
-
getGridServiceManagers
GridServiceManagers getGridServiceManagers()- Returns:
- Returns all the
GridServiceManagersstarted by thisGridServiceAgent - Since:
- 10.1.1
-
getLookupServices
LookupServices getLookupServices()- Returns:
- Returns all the
LookupServicesstarted by thisGridServiceAgent - Since:
- 10.1.1
-