|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.QueueStats
public class QueueStats
Instances of this class represent statistics for the content of a queue.
| Field Summary | |
|---|---|
String |
title
Title for this queue snapshot, used in the toString() method. |
| Constructor Summary | |
|---|---|
QueueStats(String title)
Initialize this time snapshot with a specified title. |
|
| Method Summary | |
|---|---|
int |
getMaxQueueSize()
Get the maximum size of the queue. |
int |
getQueueSize()
Get the current size of the queue. |
TimeSnapshot |
getTimes()
Get the time snapshot. |
String |
getTitle()
Get the title. |
int |
getTotalQueued()
Get the total number of objects that have been queued. |
QueueStats |
makeCopy()
Male a copy of this queue stats object. |
void |
setMaxQueueSize(int maxQueueSize)
Set the maximum size of the queue. |
void |
setQueueSize(int queueSize)
Set the current size of the queue. |
void |
setTimes(TimeSnapshot times)
Set the time snapshot. |
void |
setTotalQueued(int totalQueued)
Set the total number of objects that have been queued. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String title
toString() method.
| Constructor Detail |
|---|
public QueueStats(String title)
title - the title for this snapshot.| Method Detail |
|---|
public int getTotalQueued()
public void setTotalQueued(int totalQueued)
totalQueued - the number of objects as an int.public int getQueueSize()
public void setQueueSize(int queueSize)
queueSize - the queue size as an int.public int getMaxQueueSize()
public void setMaxQueueSize(int maxQueueSize)
maxQueueSize - the maximum queue size as an int.public TimeSnapshot getTimes()
TimeSnapshot instance.public void setTimes(TimeSnapshot times)
times - a TimeSnapshot instance.public String getTitle()
public String toString()
toString in class Objectpublic QueueStats makeCopy()
QueueStats instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||