Class AppManagerImpl

java.lang.Object
io.vertigo.commons.impl.app.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
  • Constructor Details

  • Method Details

    • 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
    • getTopology

      public List<AppNode> getTopology()
      Description copied from interface: AppManager
      Get the whole topology of an app
      Specified by:
      getTopology in interface AppManager
      Returns:
      the topology
    • getCurrentNode

      public AppNode getCurrentNode()
      Description copied from interface: AppManager
      Get the current node
      Specified by:
      getCurrentNode in interface AppManager
      Returns:
      the current node
    • getDeadNodes

      public List<AppNode> getDeadNodes()
      Description copied from interface: AppManager
      List the dead nodes of the app
      Specified by:
      getDeadNodes in interface AppManager
      Returns:
      the dead nodes
    • 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