Class ConfigServer

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

@ApiController(base="/server/config", title="Config server", desc="Endpoints for ConfigClient to hit.") public class ConfigServer extends AbstractService
Server that runs on the primary node which performs additional management of the ConfigService for use on kOS and within multi-node environments.
Version:
2024-03-30
  • Constructor Details

    • ConfigServer

      public ConfigServer()
  • Method Details

    • onBeanReady

      public boolean onBeanReady()
      Description copied from class: ReadyBean
      Override in subclasses to be notified when all dependencies are ready. Return true to indicate that this bean is also ready. If the bean needs to call setReady() later due to some async processing, return false to prevent setReady() from being called automatically.

      It is recommended to override this method rather than onDependenciesReady() as a majority of the time it requires calling super.onDependneciesReady() or explicitly calling setReady() which defaults to a failure mode.

      Overrides:
      onBeanReady in class ReadyBean
      Returns:
    • getGlobalDefaultSource

      public DefaultConfigSource getGlobalDefaultSource()
      Return the DefaultConfigSource for the global scope.
    • getNodeTypeDefaultSource

      public DefaultConfigSource getNodeTypeDefaultSource(NodeId nodeId)
      Return the DefaultConfigSource for the node type of the specified node.
      Parameters:
      nodeId - the node to get the nodeType from
    • getNodeDefaultSource

      public DefaultConfigSource getNodeDefaultSource(NodeId nodeId)
      Return the DefaultConfigSource for the specified nodeId.
      Parameters:
      nodeId - the node to return the source for