com.metamatrix.admin.objects
Class MMQueueWorkerPool

java.lang.Object
  extended by com.metamatrix.admin.objects.MMAdminObject
      extended by 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

Field Summary
 
Fields inherited from class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, registered
 
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
MMQueueWorkerPool(java.lang.String[] identifierParts)
          Construct a new MMQueueWorkerPool
 
Method Summary
 int getHighestQueued()
           
 int getHighestThreads()
           
 int getQueued()
           
 int getThreads()
           
 long getTotalCompleted()
           
 long getTotalDequeues()
           
 long getTotalEnqueues()
           
 int getTotalHighwaterMark()
           
 long getTotalSubmitted()
           
 void setHighestQueued(int highestQueued)
           
 void setHighestThreads(int highestThreads)
           
 void setQueued(int queued)
           
 void setThreads(int threads)
           
 void setTotalCompleted(long totalCompleted)
           
 void setTotalSubmitted(long totalSubmitted)
           
 java.lang.String toString()
          Get string for display purposes
 
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
 
Methods inherited from interface org.teiid.adminapi.AdminObject
getIdentifier, getName, getProperties, getPropertyValue
 

Constructor Detail

MMQueueWorkerPool

public MMQueueWorkerPool(java.lang.String[] identifierParts)
Construct a new MMQueueWorkerPool

Parameters:
identifierParts -
Since:
4.3
Method Detail

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.