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 HealthMeasurecheckDaemonsExecs()List<DaemonStat>getStats()Provides a snapshot/copy of execution's stats.List<? extends Definition>provideDefinitions(DefinitionSpace definitionSpace)Provide definitions to be registered in the definitionSpacevoidstart()Called after the component has been created and filled by injection (for the components built by configuration).voidstop()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:SimpleDefinitionProviderProvide definitions to be registered in the definitionSpace- Specified by:
provideDefinitionsin 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:
getStatsin 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:
startin interfaceActiveable
-
stop
public void stop()
Called before the component is stopped.- Specified by:
stopin interfaceActiveable
-
checkDaemonsExecs
public HealthMeasure checkDaemonsExecs()
-
-