Interface DIManager

All Superinterfaces:
AdminAware, AgentGridComponent, DiscoverableComponent, GridComponent, LogProviderGridComponent, MachineAware, OperatingSystemAware, TransportAware, VirtualMachineAware, ZoneAware
All Known Subinterfaces:
InternalDIManager
All Known Implementing Classes:
DefaultDIManager

public interface DIManager extends AgentGridComponent, LogProviderGridComponent
A DI-Manager grid component: a DI-Manager process that has registered itself with the XAP lookup service and is discoverable/monitorable through the Admin API, the same way a GridServiceManager or GridServiceContainer is - reporting the machine/OS/JVM it is running on and providing access to its own log.

A DI-Manager is usually GSA-managed (launched via services=DIMANAGER), in which case AgentGridComponent.getGridServiceAgent() returns that GridServiceAgent and AgentGridComponent.kill()/AgentGridComponent.restart() are supported through it. Discovery also accepts an externally registered DI-Manager not launched by any GSA - for that case AgentGridComponent.getGridServiceAgent() returns null and AgentGridComponent.kill()/AgentGridComponent.restart() necessarily throw AdminException, since there is no agent to perform the operation.

  • Method Details

    • getVersion

      String getVersion()
      Returns the DI-Manager component version.
    • getRestUrl

      String getRestUrl()
      Returns the base REST URL DI-Manager is reachable on.
    • setLogLevel

      void setLogLevel(String logger, String level)
      Sets the level of the given Log4j2 logger on DI-Manager. Pass an empty string for the root logger.