Interface DIManagerService
- All Superinterfaces:
Administrable, AgentIdAware, EventProducer, GridZoneProvider, InternalLogProvider, JVMInfoProvider, MonitorableService, NIOInfoProvider, OSInfoProvider, Remote, Service, Watchable
public interface DIManagerService
extends Service, JVMInfoProvider, OSInfoProvider, NIOInfoProvider, InternalLogProvider, GridZoneProvider, AgentIdAware
Remote service interface exported by a DI-Manager process so that it can be discovered by the
XAP lookup service and monitored through the Admin API - the same way a GSM/GSC is. This SPI is
also usable by an externally registered DI-Manager (one not launched by a GSA at all), in which
case there is no agent id/GSA service id to report. When a DI-Manager IS GSA-managed (launched
via
services=DIMANAGER), it reports its agent id/GSA service id like GSM/GSC/LUS do,
which enables restart support through the same generic
GridServiceAgent.restartProcess(agentId) mechanism - but only for that GSA-managed case.
Still needed as its own type even though AbstractGridServiceInfoProvider now supplies
a default implementation of every provider interface it extends: LRMI's exported proxy only
implements the Remote-derived interfaces its implementation class declares, not the
class itself, so this interface remains the wire-visible type the Admin-side discovery layer
matches on (the same role GSC/GSM/GSA play for their own component
types) and the only way getVersion()/getRestUrl()/getJmxUrl()/
setLogLevel(String, String) are remotely reachable at all.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the JMX service URL DI-Manager's JVM is reachable on, or null if unavailable.Returns the base REST URL DI-Manager is reachable on.Returns the DI-Manager component version (e.g.voidsetLogLevel(String logger, String level) Sets the level of the given Log4j2 logger (DI-Manager's own logging is Log4j2, not java.util.logging, so this reconfigures Log4j2 directly rather than going through JMX).Methods inherited from interface Administrable
getAdminMethods inherited from interface AgentIdAware
getAgentId, getGSAServiceIDMethods inherited from interface EventProducer
registerMethods inherited from interface GridZoneProvider
getZonesMethods inherited from interface InternalLogProvider
getManagerClusterInfo, logEntriesDirectMethods inherited from interface JVMInfoProvider
getJVMDetails, getJVMStatistics, runGcMethods inherited from interface MonitorableService
monitor, ping, startHeartbeatMethods inherited from interface NIOInfoProvider
disableLRMIMonitoring, enableLRMIMonitoring, fetchLRMIMonitoringDetails, getNIODetails, getNIOStatisticsMethods inherited from interface OSInfoProvider
getCurrentTimestamp, getOSDetails, getOSStatistics
-
Method Details
-
getVersion
Returns the DI-Manager component version (e.g. as reported by its own/api/v2/aboutendpoint).- Throws:
RemoteException
-
getRestUrl
Returns the base REST URL DI-Manager is reachable on.- Throws:
RemoteException
-
getJmxUrl
Returns the JMX service URL DI-Manager's JVM is reachable on, or null if unavailable.- Throws:
RemoteException
-
setLogLevel
Sets the level of the given Log4j2 logger (DI-Manager's own logging is Log4j2, not java.util.logging, so this reconfigures Log4j2 directly rather than going through JMX). Pass an empty string for the root logger.- Throws:
RemoteException
-