Class DaemonDefinition
java.lang.Object
io.vertigo.core.node.definition.AbstractDefinition<DaemonDefinition>
io.vertigo.core.daemon.definitions.DaemonDefinition
- All Implemented Interfaces:
Definition
Represents the definition of a daemon.
This class provides information and configuration for a specific daemon.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDaemonDefinition(String name, Supplier<Daemon> daemonSupplier, int periodInSeconds) DaemonDefinition(String name, Supplier<Daemon> daemonSupplier, int periodInSeconds, boolean analytics) Constructs a DaemonDefinition with the specified name, daemon supplier, and execution period. -
Method Summary
Modifier and TypeMethodDescriptionGets the supplier providing instances of the daemon.intGets the execution period of the daemon in seconds.booleanIndicates whether analytics is enabled for this daemon.Methods inherited from class io.vertigo.core.node.definition.AbstractDefinition
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.core.node.definition.Definition
getName
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
DaemonDefinition
public DaemonDefinition(String name, Supplier<Daemon> daemonSupplier, int periodInSeconds, boolean analytics) Constructs a DaemonDefinition with the specified name, daemon supplier, and execution period.- Parameters:
name- the name of the daemondaemonSupplier- the supplier providing instances of the daemonperiodInSeconds- the execution period of the daemon in seconds
-
DaemonDefinition
-
-
Method Details
-
getPeriodInSeconds
public int getPeriodInSeconds()Gets the execution period of the daemon in seconds.- Returns:
- the execution period in seconds
-
getDaemonSupplier
Gets the supplier providing instances of the daemon.- Returns:
- the daemon supplier
-
isAnalytics
public boolean isAnalytics()Indicates whether analytics is enabled for this daemon.- Returns:
- true if analytics is enabled, false otherwise
-