org.eclipse.stardust.engine.api.runtime
Interface Daemon

All Superinterfaces:
Serializable

public interface Daemon
extends Serializable

The Daemon class represents a snapshot of a Carnot workflow daemon.

Carnot workflow engine contains two tipes of daemons: the event daemon and the trigger daemons.
Daemons can be started, stopped and queried using the AdministrationService.

Version:
$Revision$
Author:
ubirkemeyer

Method Summary
 AcknowledgementState getAcknowledgementState()
          Returns the acknowledgement state of the daemon query.
 DaemonExecutionState getDaemonExecutionState()
          Returns the execution state of the daemon.
 org.eclipse.stardust.engine.core.runtime.beans.DaemonExecutionLog getExecutionLog()
          Return the execution log of the last daeon execution
 Date getLastExecutionTime()
          Returns the time of the last daemon execution.
 Date getStartTime()
          Returns the time of the last daemon start.
 String getType()
          Returns the type of the daemon.
 boolean isRunning()
          Returns whether the daemon is currently up and running.
 

Method Detail

getType

String getType()
Returns the type of the daemon. Predefined values are:

Returns:
the type of the daemon

getStartTime

Date getStartTime()
Returns the time of the last daemon start.

Returns:
the start time

getLastExecutionTime

Date getLastExecutionTime()
Returns the time of the last daemon execution.

Returns:
the last execution time

isRunning

boolean isRunning()
Returns whether the daemon is currently up and running.

Returns:
true, if the daemon is running, otherwise false This flag is determined heuristically based on start time, last execution time, daemon periodicity, current time and acknowledgement state.

getAcknowledgementState

AcknowledgementState getAcknowledgementState()
Returns the acknowledgement state of the daemon query.

Returns:
acknowledgement state or null if the daemon operation was done without acknowledgement

getDaemonExecutionState

DaemonExecutionState getDaemonExecutionState()
Returns the execution state of the daemon.

Returns:
execution state

getExecutionLog

org.eclipse.stardust.engine.core.runtime.beans.DaemonExecutionLog getExecutionLog()
Return the execution log of the last daeon execution

Returns:
ExecutionLogEntry


Copyright © 2017 Eclipse Stardust. All Rights Reserved.