public class QueueInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled
true - queue is enabled - can be started and stopped,
false - queue is disabled - can not be started or stopped
|
protected long |
failed |
protected long |
finished |
protected int |
generation |
protected long |
interrupted |
protected String |
name |
protected long |
purge |
protected long |
queued |
protected String |
queueSettings
JSON serialized
QueueSettings |
protected long |
running |
protected boolean |
started
true - queue is started (is running or should be running)
false - queue is stopped (is not running or shouldn't be running)
|
protected HashMap<TaskState,String> |
statistics
JSON serialized map of statistics data
TaskState TaskStatistics |
protected long |
totalFailed |
protected long |
totalFinished |
protected long |
totalRetries |
protected long |
totalTasks |
| Modifier | Constructor and Description |
|---|---|
protected |
QueueInfo() |
|
QueueInfo(String queueName) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFailedTasks() |
long |
getFinishedTasks() |
long |
getInterruptedTasks() |
String |
getName() |
long |
getPurgeTasks() |
long |
getQueuedTasks() |
long |
getRunningTasks() |
QueueSettings |
getSettings() |
TaskStatistics |
getStatistics(TaskState state) |
long |
getTotalFailed() |
long |
getTotalFinished() |
long |
getTotalRetries() |
long |
getTotalTasks() |
boolean |
isEnabled() |
boolean |
isStarted() |
void |
reset(boolean force) |
void |
setEnabled(boolean active) |
void |
setSettings(QueueSettings settings) |
void |
setStarted(boolean start) |
void |
setStatistics(TaskState state,
TaskStatistics output) |
protected String name
protected int generation
protected String queueSettings
QueueSettingsprotected boolean enabled
protected boolean started
protected long queued
protected long running
protected long purge
protected long interrupted
protected long failed
protected long finished
protected long totalTasks
protected long totalFinished
protected long totalFailed
protected long totalRetries
protected HashMap<TaskState,String> statistics
TaskState TaskStatisticsprotected QueueInfo()
public QueueInfo(String queueName)
public String getName()
public QueueSettings getSettings()
public void setSettings(QueueSettings settings)
public boolean isEnabled()
public void setEnabled(boolean active)
public boolean isStarted()
public void setStarted(boolean start)
public void reset(boolean force)
public long getQueuedTasks()
public long getRunningTasks()
public long getPurgeTasks()
public long getInterruptedTasks()
public long getFailedTasks()
public long getFinishedTasks()
public long getTotalTasks()
public long getTotalFinished()
public long getTotalFailed()
public long getTotalRetries()
public TaskStatistics getStatistics(TaskState state)
public void setStatistics(TaskState state, TaskStatistics output)
Copyright © 2015–2016. All rights reserved.