public class TaskStatusEvent extends Descriptor
A typical JSON representation of a task might be:
{
"status" : { #... see definition of TaskStatus },
"timestamp" : 1410308461448,
"host": "myhost"
}
| Modifier and Type | Field and Description |
|---|---|
static String |
TASK_STATUS_EVENT_TOPIC |
| Constructor and Description |
|---|
TaskStatusEvent(TaskStatus status,
long timestamp,
String host)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
TaskStatus |
getStatus() |
long |
getTimestamp() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic static final String TASK_STATUS_EVENT_TOPIC
public TaskStatusEvent(TaskStatus status, long timestamp, String host)
status - The status of the task at the point of the event.timestamp - The timestamp of the event.host - The host on which the event occurred.public String getHost()
public TaskStatus getStatus()
public long getTimestamp()
Copyright © 2019. All rights reserved.