public class WorkerInfo extends Object implements Comparable<WorkerInfo>, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkerInfo.State
Possible states of a worker.
|
| Constructor and Description |
|---|
WorkerInfo() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WorkerInfo other) |
boolean |
equals(Object obj) |
Long |
getFailed() |
String |
getHost() |
String |
getName() |
String |
getPid() |
Long |
getProcessed() |
List<String> |
getQueues() |
Date |
getStarted() |
WorkerInfo.State |
getState() |
WorkerStatus |
getStatus() |
int |
hashCode() |
void |
setFailed(Long failed) |
void |
setHost(String host) |
void |
setName(String name) |
void |
setPid(String pid) |
void |
setProcessed(Long processed) |
void |
setQueues(List<String> queues) |
void |
setStarted(Date started) |
void |
setState(WorkerInfo.State state) |
void |
setStatus(WorkerStatus status) |
String |
toString() |
public WorkerInfo.State getState()
public void setState(WorkerInfo.State state)
state - the state of the workerpublic String getName()
public void setName(String name)
name - the name of the workerpublic Date getStarted()
public void setStarted(Date started)
started - when the worker startedpublic Long getProcessed()
public void setProcessed(Long processed)
processed - how many jobs have been processedpublic Long getFailed()
public void setFailed(Long failed)
failed - how many jobs have failedpublic String getHost()
public void setHost(String host)
host - the hostname of the workerpublic String getPid()
public void setPid(String pid)
pid - the process ID of the workerpublic void setQueues(List<String> queues)
queues - the list of queues the worker pulls frompublic WorkerStatus getStatus()
public void setStatus(WorkerStatus status)
status - the status of the workerpublic int compareTo(WorkerInfo other)
compareTo in interface Comparable<WorkerInfo>Copyright © 2011-2015. All Rights Reserved.