Interface DIManagerService

All Superinterfaces:
Administrable, AgentIdAware, EventProducer, GridZoneProvider, InternalLogProvider, JVMInfoProvider, MonitorableService, NIOInfoProvider, OSInfoProvider, Remote, Service, Watchable

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 Details

    • getVersion

      String getVersion() throws RemoteException
      Returns the DI-Manager component version (e.g. as reported by its own /api/v2/about endpoint).
      Throws:
      RemoteException
    • getRestUrl

      String getRestUrl() throws RemoteException
      Returns the base REST URL DI-Manager is reachable on.
      Throws:
      RemoteException
    • getJmxUrl

      String getJmxUrl() throws RemoteException
      Returns the JMX service URL DI-Manager's JVM is reachable on, or null if unavailable.
      Throws:
      RemoteException
    • setLogLevel

      void setLogLevel(String logger, String level) throws RemoteException
      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