Class MemoryTaskTracker
java.lang.Object
io.datarouter.instrumentation.task.MemoryTaskTracker
- All Implemented Interfaces:
TaskTracker
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryTaskTracker(Class<?> cls) MemoryTaskTracker(String name) MemoryTaskTracker(String name, String serverName, Instant scheduledTime) -
Method Summary
Modifier and TypeMethodDescriptionfinish()longgetCount()getName()heartbeat(long latestCount) increment(long incrementBy) setLastItemProcessed(String lastItemProcessed) setScheduledTime(Instant scheduledTime) Set the intended start time of the task, before it's enqueued for executionsetStatus(TaskStatus status) booleanstart()Call when the task starts executing, potentially after waiting in a queueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.instrumentation.task.TaskTracker
getElapsedTime
-
Constructor Details
-
MemoryTaskTracker
-
MemoryTaskTracker
-
MemoryTaskTracker
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTaskTracker
-
getServerName
- Specified by:
getServerNamein interfaceTaskTracker
-
setScheduledTime
Description copied from interface:TaskTrackerSet the intended start time of the task, before it's enqueued for execution- Specified by:
setScheduledTimein interfaceTaskTracker
-
getScheduledTime
- Specified by:
getScheduledTimein interfaceTaskTracker
-
start
Description copied from interface:TaskTrackerCall when the task starts executing, potentially after waiting in a queue- Specified by:
startin interfaceTaskTracker
-
getStartTime
- Specified by:
getStartTimein interfaceTaskTracker
-
finish
- Specified by:
finishin interfaceTaskTracker
-
getFinishTime
- Specified by:
getFinishTimein interfaceTaskTracker
-
heartbeat
- Specified by:
heartbeatin interfaceTaskTracker
-
heartbeat
- Specified by:
heartbeatin interfaceTaskTracker
-
increment
- Specified by:
incrementin interfaceTaskTracker
-
increment
- Specified by:
incrementin interfaceTaskTracker
-
getCount
public long getCount()- Specified by:
getCountin interfaceTaskTracker
-
setLastItemProcessed
- Specified by:
setLastItemProcessedin interfaceTaskTracker
-
getLastItem
- Specified by:
getLastItemin interfaceTaskTracker
-
setStatus
- Specified by:
setStatusin interfaceTaskTracker
-
getStatus
- Specified by:
getStatusin interfaceTaskTracker
-
requestStop
- Specified by:
requestStopin interfaceTaskTracker
-
shouldStop
public boolean shouldStop()- Specified by:
shouldStopin interfaceTaskTracker
-