com.metamatrix.admin.objects
Class MMQueueWorkerPool
java.lang.Object
com.metamatrix.admin.objects.MMAdminObject
com.metamatrix.admin.objects.MMQueueWorkerPool
- All Implemented Interfaces:
- java.io.Serializable, AdminObject, QueueWorkerPool
public class MMQueueWorkerPool
- extends MMAdminObject
- implements QueueWorkerPool
Dataholder for all the statistics gathered about a worker pool.
- See Also:
- Serialized Form
Constructor Summary |
MMQueueWorkerPool(java.lang.String[] identifierParts)
Construct a new MMQueueWorkerPool |
Methods inherited from class com.metamatrix.admin.objects.MMAdminObject |
buildIdentifier, buildIdentifierArray, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getName, getNameFromIdentifier, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isEnabled, isRegistered, setCreated, setCreatedBy, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MMQueueWorkerPool
public MMQueueWorkerPool(java.lang.String[] identifierParts)
- Construct a new MMQueueWorkerPool
- Parameters:
identifierParts
- - Since:
- 4.3
toString
public java.lang.String toString()
- Get string for display purposes
- Specified by:
toString
in class MMAdminObject
- Since:
- 4.3
- See Also:
Object.toString()
getQueued
public int getQueued()
- Specified by:
getQueued
in interface QueueWorkerPool
- Returns:
- Returns the number of requests queued.
- Since:
- 4.3
setQueued
public void setQueued(int queued)
- Parameters:
queued
- The number of requests queued.- Since:
- 4.3
getThreads
public int getThreads()
- Specified by:
getThreads
in interface QueueWorkerPool
- Returns:
- Returns the number of threads.
- Since:
- 4.3
setThreads
public void setThreads(int threads)
- Parameters:
threads
- The number of threads to set.- Since:
- 4.3
getTotalDequeues
public long getTotalDequeues()
- Specified by:
getTotalDequeues
in interface QueueWorkerPool
- Returns:
- Returns the number of totalDequeues.
- Since:
- 4.3
getTotalEnqueues
public long getTotalEnqueues()
- Specified by:
getTotalEnqueues
in interface QueueWorkerPool
- Returns:
- Returns the number of totalEnqueues.
- Since:
- 4.3
getTotalHighwaterMark
public int getTotalHighwaterMark()
- Specified by:
getTotalHighwaterMark
in interface QueueWorkerPool
- Returns:
- Returns the totalHighwaterMark.
- Since:
- 4.3
getHighestThreads
public int getHighestThreads()
- Specified by:
getHighestThreads
in interface QueueWorkerPool
- Returns:
- Returns the highest number of active threads
setHighestThreads
public void setHighestThreads(int highestThreads)
getHighestQueued
public int getHighestQueued()
- Specified by:
getHighestQueued
in interface QueueWorkerPool
- Returns:
- Returns the highest queue size
setHighestQueued
public void setHighestQueued(int highestQueued)
getTotalSubmitted
public long getTotalSubmitted()
- Specified by:
getTotalSubmitted
in interface QueueWorkerPool
- Returns:
- The number of submitted tasks
setTotalSubmitted
public void setTotalSubmitted(long totalSubmitted)
setTotalCompleted
public void setTotalCompleted(long totalCompleted)
getTotalCompleted
public long getTotalCompleted()
- Specified by:
getTotalCompleted
in interface QueueWorkerPool
- Returns:
- The number of completed tasks
Copyright © 2009. All Rights Reserved.