Package io.vertigo.core.impl.daemon
Class DaemonManagerImpl
- java.lang.Object
-
- io.vertigo.core.impl.daemon.DaemonManagerImpl
-
- All Implemented Interfaces:
DaemonManager
,Activeable
,Component
,CoreComponent
,Manager
,DefinitionProvider
,SimpleDefinitionProvider
public final class DaemonManagerImpl extends Object implements DaemonManager, Activeable, SimpleDefinitionProvider
Manager of all the daemons.- Author:
- mlaroche, pchretien, npiedeloup
-
-
Constructor Summary
Constructors Constructor Description DaemonManagerImpl(AnalyticsManager analyticsManager)
Construct an instance of DaemonManagerImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthMeasure
checkDaemonsExecs()
List<DaemonStat>
getStats()
Provides a snapshot/copy of execution's stats.List<? extends Definition>
provideDefinitions(DefinitionSpace definitionSpace)
Provide definitions to be registered in the definitionSpacevoid
start()
Called after the component has been created and filled by injection (for the components built by configuration).void
stop()
Called before the component is stopped.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertigo.core.node.definition.DefinitionProvider
addDefinitionResourceConfig
-
Methods inherited from interface io.vertigo.core.node.definition.SimpleDefinitionProvider
get
-
-
-
-
Constructor Detail
-
DaemonManagerImpl
@Inject public DaemonManagerImpl(AnalyticsManager analyticsManager)
Construct an instance of DaemonManagerImpl.
-
-
Method Detail
-
provideDefinitions
public List<? extends Definition> provideDefinitions(DefinitionSpace definitionSpace)
Description copied from interface:SimpleDefinitionProvider
Provide definitions to be registered in the definitionSpace- Specified by:
provideDefinitions
in interfaceSimpleDefinitionProvider
- Parameters:
definitionSpace
- the actual definitionSpace- Returns:
- the list of new definition to register
-
getStats
public List<DaemonStat> getStats()
Provides a snapshot/copy of execution's stats.- Specified by:
getStats
in interfaceDaemonManager
- Returns:
- Stats
-
start
public void start()
Called after the component has been created and filled by injection (for the components built by configuration).- Specified by:
start
in interfaceActiveable
-
stop
public void stop()
Called before the component is stopped.- Specified by:
stop
in interfaceActiveable
-
checkDaemonsExecs
public HealthMeasure checkDaemonsExecs()
-
-