public class Clock extends Service
Modifier and Type | Class and Description |
---|---|
class |
Clock.ClockThread |
Modifier and Type | Field and Description |
---|---|
int |
interval |
boolean |
isClockRunning |
static org.slf4j.Logger |
log |
Clock.ClockThread |
myClock |
cfgDir, dnaPool, MESSAGE_RECORDING_FORMAT_BINARY, MESSAGE_RECORDING_FORMAT_XML
Constructor and Description |
---|
Clock(java.lang.String n) |
Modifier and Type | Method and Description |
---|---|
void |
addClockEvent(java.util.Date time,
java.lang.String name,
java.lang.String method,
java.lang.Object... data) |
void |
clockStarted() |
void |
clockStopped() |
static ServiceType |
getMetaData()
This static method returns all the details of the class without it having
to be constructed.
|
static void |
main(java.lang.String[] args) |
java.util.Date |
pulse(java.util.Date time) |
void |
restartClock() |
void |
restartClock(boolean NoExecutionAtFirstClockStarted) |
void |
setInterval(java.lang.Integer milliseconds) |
void |
startClock() |
void |
startClock(boolean NoExecutionAtFirstClockStarted) |
void |
stopClock() |
void |
stopClock(boolean restartMe) |
void |
stopService()
Stops the service.
|
addListener, addListener, addTask, addTask, addTask, addTaskOneShot, allowDisplay, allowDisplay, attach, attach, broadcastState, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, getAttached, getCfgDir, getComm, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDna, getDnaString, getHostName, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLastError, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeerKey, getPeerName, getServiceResourceFile, getSimpleName, getTasks, getThisThread, getType, hasError, hasPeers, help, help, in, info, info, invoke, invoke, invoke, invokeOn, isAttached, isAttached, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeers, releaseService, removeAllListeners, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, setInstanceId, setName, setPeer, setSecurityProvider, setState, setThisThread, setVirtual, sleep, stackToString, startHeartbeat, startPeer, startPeer, startRecording, startService, stopHeartbeat, stopMsgRecording, subscribe, subscribe, subscribe, toString, unsubscribe, unsubscribe, unsubscribe, updateStats, warn, warn
public static final org.slf4j.Logger log
public boolean isClockRunning
public int interval
public transient Clock.ClockThread myClock
public void addClockEvent(java.util.Date time, java.lang.String name, java.lang.String method, java.lang.Object... data)
public void clockStarted()
public void clockStopped()
public java.util.Date pulse(java.util.Date time)
public void setInterval(java.lang.Integer milliseconds)
public void startClock(boolean NoExecutionAtFirstClockStarted)
public void restartClock(boolean NoExecutionAtFirstClockStarted)
public void startClock()
public void restartClock()
public void stopClock()
public void stopClock(boolean restartMe)
public void stopService()
Service
stopService
in interface ServiceInterface
stopService
in class Service
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static ServiceType getMetaData()