Package io.vertigo.commons.app
Interface AppManager
-
- All Superinterfaces:
io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Manager
- All Known Implementing Classes:
AppManagerImpl
public interface AppManager extends io.vertigo.core.node.component.ManagerNode Manager.- Author:
- mlaroche
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<AppNode>find(String nodeId)Find a node by an idMap<String,String>getConfig()A consolidated view of the config of the appAppNodegetCurrentNode()Get the current nodeList<AppNode>getDeadNodes()List the dead nodes of the appMap<String,Object>getStats()A consolidated view of the stats of the appMap<String,List<io.vertigo.core.analytics.health.HealthCheck>>getStatus()A consolidated view of the cluster (id+status)List<AppNode>getTopology()Get the whole topology of an appList<AppNode>locateSkills(String... skills)Find node with a given skill
-
-
-
Method Detail
-
find
Optional<AppNode> find(String nodeId)
Find a node by an id- Parameters:
nodeId- the id to look for- Returns:
- the optional found Node
-
locateSkills
List<AppNode> locateSkills(String... skills)
Find node with a given skill- Parameters:
skills- the skills to look for- Returns:
- the Node matching the skills
-
getCurrentNode
AppNode getCurrentNode()
Get the current node- Returns:
- the current node
-
getStatus
Map<String,List<io.vertigo.core.analytics.health.HealthCheck>> getStatus()
A consolidated view of the cluster (id+status)- Returns:
- the overall status
-
getStats
Map<String,Object> getStats()
A consolidated view of the stats of the app- Returns:
- the overall stats
-
-