Class AbstractGridServiceInfoProvider
java.lang.Object
com.gigaspaces.grid.AbstractGridServiceInfoProvider
- All Implemented Interfaces:
AgentIdAware, GridZoneProvider, JVMInfoProvider, InternalLogProvider, OSInfoProvider, NIOInfoProvider, Remote
public abstract class AbstractGridServiceInfoProvider
extends Object
implements JVMInfoProvider, OSInfoProvider, NIOInfoProvider, GridZoneProvider, InternalLogProvider, AgentIdAware
Base implementation of the generic JVM/OS/NIO/zone/log/agent-id admin SPI providers shared by
every XAP grid component.
GSCImpl/GSMImpl/GSAImpl (xap-premium) each
hand-roll this same delegation independently; any additional component that exports one of
these provider interfaces - GSA-managed or not - can extend this instead of duplicating it
again.
Deliberately does not implement org.jini.rio.resources.servicecore.Service: whether a
component supports real lease-based monitoring/remote events (as GSC/GSM/GSA do, via
ServiceBeanAdapter) or is a discoverable service with no-op leasing is a per-component decision,
not a generic one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisabled lrmi monitoring (gigaspaces internal remoting layer).voidEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to start track lrmi invocations which can later be viewed by calling.Return lrmi (gigaspaces internal remoting layer) services monitoring details.intlongprotected abstract File[]Returns this component's own log files, newest first.protected abstract LogProcessTypeIdentifies this component's log entries toInternalLogHelper(e.g.Returns the transport configuration.Returns the transport statistics.String[]getZones()logEntriesDirect(LogEntryMatcher matcher) voidrunGc()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InternalLogProvider
getManagerClusterInfo
-
Constructor Details
-
AbstractGridServiceInfoProvider
public AbstractGridServiceInfoProvider()
-
-
Method Details
-
getAgentId
public int getAgentId()- Specified by:
getAgentIdin interfaceAgentIdAware
-
getGSAServiceID
- Specified by:
getGSAServiceIDin interfaceAgentIdAware
-
getJVMDetails
- Specified by:
getJVMDetailsin interfaceJVMInfoProvider
-
getJVMStatistics
- Specified by:
getJVMStatisticsin interfaceJVMInfoProvider
-
runGc
public void runGc()- Specified by:
runGcin interfaceJVMInfoProvider
-
getCurrentTimestamp
public long getCurrentTimestamp()- Specified by:
getCurrentTimestampin interfaceOSInfoProvider
-
getOSDetails
- Specified by:
getOSDetailsin interfaceOSInfoProvider
-
getOSStatistics
- Specified by:
getOSStatisticsin interfaceOSInfoProvider
-
getNIODetails
Description copied from interface:NIOInfoProviderReturns the transport configuration. Note, does not change during application lifecycle, should be cached on the client side.- Specified by:
getNIODetailsin interfaceNIOInfoProvider
-
getNIOStatistics
Description copied from interface:NIOInfoProviderReturns the transport statistics.- Specified by:
getNIOStatisticsin interfaceNIOInfoProvider
-
enableLRMIMonitoring
public void enableLRMIMonitoring()Description copied from interface:NIOInfoProviderEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to start track lrmi invocations which can later be viewed by calling.NIOInfoProvider.fetchLRMIMonitoringDetails()- Specified by:
enableLRMIMonitoringin interfaceNIOInfoProvider
-
disableLRMIMonitoring
public void disableLRMIMonitoring()Description copied from interface:NIOInfoProviderDisabled lrmi monitoring (gigaspaces internal remoting layer).NIOInfoProvider.enableLRMIMonitoring()- Specified by:
disableLRMIMonitoringin interfaceNIOInfoProvider
-
fetchLRMIMonitoringDetails
Description copied from interface:NIOInfoProviderReturn lrmi (gigaspaces internal remoting layer) services monitoring details. This will only work if lrmi monitoring was previously enabled, either by admin API, Jmx or system property.NIOInfoProvider.enableLRMIMonitoring()- Specified by:
fetchLRMIMonitoringDetailsin interfaceNIOInfoProvider
-
getZones
- Specified by:
getZonesin interfaceGridZoneProvider
-
getLogProcessType
Identifies this component's log entries toInternalLogHelper(e.g.LogProcessType.MANAGER). -
getLogFiles
Returns this component's own log files, newest first. A component whose logging goes through XAP's java.util.logging-basedRollingFileHandler(as GSC/GSM/GSA do) would normally get this for free; a component using a different logging framework (e.g. Log4j2, with no JUL bridge configured) must discover its own files here instead.- Throws:
IOException
-
logEntriesDirect
- Specified by:
logEntriesDirectin interfaceInternalLogProvider- Throws:
IOException
-