Class AppManagerImpl

  • All Implemented Interfaces:
    AppManager, io.vertigo.core.node.component.Activeable, io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager

    public final class AppManagerImpl
    extends Object
    implements AppManager, io.vertigo.core.node.component.Activeable
    Implementation of the NodeManager.
    Author:
    mlaroche
    • Method Detail

      • updateNodeStatus

        public void updateNodeStatus()
      • start

        public void start()
        Specified by:
        start in interface io.vertigo.core.node.component.Activeable
      • stop

        public void stop()
        Specified by:
        stop in interface io.vertigo.core.node.component.Activeable
      • find

        public Optional<AppNode> find​(String nodeId)
        Description copied from interface: AppManager
        Find a node by an id
        Specified by:
        find in interface AppManager
        Parameters:
        nodeId - the id to look for
        Returns:
        the optional found Node
      • locateSkills

        public List<AppNode> locateSkills​(String... skills)
        Description copied from interface: AppManager
        Find node with a given skill
        Specified by:
        locateSkills in interface AppManager
        Parameters:
        skills - the skills to look for
        Returns:
        the Node matching the skills
      • getStatus

        public Map<String,​List<io.vertigo.core.analytics.health.HealthCheck>> getStatus()
        Description copied from interface: AppManager
        A consolidated view of the cluster (id+status)
        Specified by:
        getStatus in interface AppManager
        Returns:
        the overall status
      • getStats

        public Map<String,​Object> getStats()
        Description copied from interface: AppManager
        A consolidated view of the stats of the app
        Specified by:
        getStats in interface AppManager
        Returns:
        the overall stats
      • getConfig

        public Map<String,​String> getConfig()
        Description copied from interface: AppManager
        A consolidated view of the config of the app
        Specified by:
        getConfig in interface AppManager
        Returns:
        the overall config