Package io.vertigo.commons.impl.app
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAppManagerImpl(Optional<AppNodeRegistryPlugin> nodeRegistryPluginOpt, List<AppNodeInfosPlugin> nodeInfosPlugins) -
Method Summary
Modifier and TypeMethodDescriptionFind a node by an idA consolidated view of the config of the appGet the current nodeList the dead nodes of the appgetStats()A consolidated view of the stats of the appA consolidated view of the cluster (id+status)Get the whole topology of an applocateSkills(String... skills) Find node with a given skillvoidstart()voidstop()void
-
Constructor Details
-
AppManagerImpl
@Inject public AppManagerImpl(Optional<AppNodeRegistryPlugin> nodeRegistryPluginOpt, List<AppNodeInfosPlugin> nodeInfosPlugins)
-
-
Method Details
-
updateNodeStatus
public void updateNodeStatus() -
start
public void start()- Specified by:
startin interfaceio.vertigo.core.node.component.Activeable
-
stop
public void stop()- Specified by:
stopin interfaceio.vertigo.core.node.component.Activeable
-
find
Description copied from interface:AppManagerFind a node by an id- Specified by:
findin interfaceAppManager- Parameters:
nodeId- the id to look for- Returns:
- the optional found Node
-
locateSkills
Description copied from interface:AppManagerFind node with a given skill- Specified by:
locateSkillsin interfaceAppManager- Parameters:
skills- the skills to look for- Returns:
- the Node matching the skills
-
getTopology
Description copied from interface:AppManagerGet the whole topology of an app- Specified by:
getTopologyin interfaceAppManager- Returns:
- the topology
-
getCurrentNode
Description copied from interface:AppManagerGet the current node- Specified by:
getCurrentNodein interfaceAppManager- Returns:
- the current node
-
getDeadNodes
Description copied from interface:AppManagerList the dead nodes of the app- Specified by:
getDeadNodesin interfaceAppManager- Returns:
- the dead nodes
-
getStatus
Description copied from interface:AppManagerA consolidated view of the cluster (id+status)- Specified by:
getStatusin interfaceAppManager- Returns:
- the overall status
-
getStats
Description copied from interface:AppManagerA consolidated view of the stats of the app- Specified by:
getStatsin interfaceAppManager- Returns:
- the overall stats
-
getConfig
Description copied from interface:AppManagerA consolidated view of the config of the app- Specified by:
getConfigin interfaceAppManager- Returns:
- the overall config
-