lumis.portal.processqueue
Class QueueStatistics

Package class diagram package QueueStatistics
java.lang.Object
  extended by lumis.portal.processqueue.QueueStatistics
All Implemented Interfaces:
IQueueStatistics

public class QueueStatistics
extends Object
implements IQueueStatistics

Default implementation of the statistics.

Since:
6.1.0

Constructor Summary
QueueStatistics()
          Default constructor
QueueStatistics(int total, int scheduled, int queued, int running, int failed)
          Constructor receiving all values.
 
Method Summary
 int getFailed()
          Returns the amount of process in Error status in the queue.
 int getQueued()
          Returns the amount of process in Queued status in the queue.
 int getRunning()
          Returns the amount of process in InProgress status in the queue.
 int getScheduled()
          Returns the amount of process in Scheduled status in the queue.
 int getTotal()
          Returns the total amount of processes in the queue.
 void setFailed(int failed)
          Sets the amount of process in Failed status in the queue.
 void setQueued(int queued)
          Sets the amount of process in Queued status in the queue.
 void setRunning(int running)
          Sets the amount of process in Running status in the queue.
 void setScheduled(int scheduled)
          Sets the amount of process in Scheduled status in the queue.
 void setTotal(int total)
          Sets the total amount of processes in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueStatistics

public QueueStatistics()
Default constructor


QueueStatistics

public QueueStatistics(int total,
                       int scheduled,
                       int queued,
                       int running,
                       int failed)
Constructor receiving all values.

Parameters:
total - number of items in queue.
scheduled - number of scheduled items in queue.
queued - number of queued items in queue.
running - number o items inProgress in queue.
failed - number of errors in queue.
Method Detail

setScheduled

public void setScheduled(int scheduled)
Sets the amount of process in Scheduled status in the queue.

Parameters:
scheduled - number of scheduled items.
Since:
6.1.0

setQueued

public void setQueued(int queued)
Sets the amount of process in Queued status in the queue.

Parameters:
queued - number of processes in queued state.
Since:
6.1.0

setRunning

public void setRunning(int running)
Sets the amount of process in Running status in the queue.

Parameters:
number - of processes in running state.
Since:
6.1.0

setFailed

public void setFailed(int failed)
Sets the amount of process in Failed status in the queue.

Parameters:
number - of processes in failed state.
Since:
6.1.0

setTotal

public void setTotal(int total)
Sets the total amount of processes in the queue.

Parameters:
number - of processes in the queue.
Since:
6.1.0

getScheduled

public int getScheduled()
Returns the amount of process in Scheduled status in the queue.

Specified by:
getScheduled in interface IQueueStatistics
Returns:
number of processes in scheduled state.
Since:
6.1.0

getQueued

public int getQueued()
Returns the amount of process in Queued status in the queue.

Specified by:
getQueued in interface IQueueStatistics
Returns:
number of processes in queued state.
Since:
6.1.0

getRunning

public int getRunning()
Returns the amount of process in InProgress status in the queue.

Specified by:
getRunning in interface IQueueStatistics
Returns:
number of processes in inProgress state.
Since:
6.1.0

getFailed

public int getFailed()
Returns the amount of process in Error status in the queue.

Specified by:
getFailed in interface IQueueStatistics
Returns:
number of processes in error state.
Since:
6.1.0

getTotal

public int getTotal()
Returns the total amount of processes in the queue.

Specified by:
getTotal in interface IQueueStatistics
Returns:
number of processes in the queue.
Since:
6.1.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.