org.teiid.adminapi.impl
Class WorkerPoolStatisticsMetadata

java.lang.Object
  extended by org.teiid.adminapi.impl.AdminObjectImpl
      extended by org.teiid.adminapi.impl.WorkerPoolStatisticsMetadata
All Implemented Interfaces:
java.io.Serializable, AdminObject, WorkerPoolStatistics

public class WorkerPoolStatisticsMetadata
extends AdminObjectImpl
implements WorkerPoolStatistics

This class is a holder for all the statistics gathered about a worker pool.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
WorkerPoolStatisticsMetadata()
           
 
Method Summary
 int getActiveThreads()
          Current active thread count
 int getHighestActiveThreads()
          Highest Active threads recorded so far
 int getHighestQueued()
           
 int getMaxThreads()
          Max number of active threads allowed
 int getQueued()
           
 java.lang.String getQueueName()
          Queue Name
 long getTotalCompleted()
           
 long getTotalSubmitted()
           
 void setActiveThreads(int activeThreads)
           
 void setHighestActiveThreads(int highestActiveThreads)
           
 void setHighestQueued(int highestQueued)
           
 void setMaxThreads(int maxThreads)
           
 void setQueued(int queued)
           
 void setQueueName(java.lang.String name)
           
 void setTotalCompleted(long totalCompleted)
           
 void setTotalSubmitted(long totalSubmitted)
           
 java.lang.String toString()
           
 
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttchment, addAttchment, addProperty, getAttachment, getAttachment, getJAXBProperties, getName, getProperties, getPropertyValue, removeAttachment, removeAttachment, setJAXBProperties, setName, setProperties
 
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
getName, getProperties, getPropertyValue
 

Constructor Detail

WorkerPoolStatisticsMetadata

public WorkerPoolStatisticsMetadata()
Method Detail

getActiveThreads

public int getActiveThreads()
Description copied from interface: WorkerPoolStatistics
Current active thread count

Specified by:
getActiveThreads in interface WorkerPoolStatistics
Returns:

getHighestActiveThreads

public int getHighestActiveThreads()
Description copied from interface: WorkerPoolStatistics
Highest Active threads recorded so far

Specified by:
getHighestActiveThreads in interface WorkerPoolStatistics
Returns:

getTotalCompleted

public long getTotalCompleted()
Specified by:
getTotalCompleted in interface WorkerPoolStatistics
Returns:
The number of completed tasks

getTotalSubmitted

public long getTotalSubmitted()
Specified by:
getTotalSubmitted in interface WorkerPoolStatistics
Returns:
The number of submitted tasks

getQueueName

public java.lang.String getQueueName()
Description copied from interface: WorkerPoolStatistics
Queue Name

Specified by:
getQueueName in interface WorkerPoolStatistics
Returns:

getQueued

public int getQueued()
Specified by:
getQueued in interface WorkerPoolStatistics
Returns:
Returns the number of requests queued.

getHighestQueued

public int getHighestQueued()
Specified by:
getHighestQueued in interface WorkerPoolStatistics
Returns:
Returns the highest queue size

getMaxThreads

public int getMaxThreads()
Description copied from interface: WorkerPoolStatistics
Max number of active threads allowed

Specified by:
getMaxThreads in interface WorkerPoolStatistics
Returns:

setQueued

public void setQueued(int queued)

setHighestQueued

public void setHighestQueued(int highestQueued)

setMaxThreads

public void setMaxThreads(int maxThreads)

setActiveThreads

public void setActiveThreads(int activeThreads)

setHighestActiveThreads

public void setHighestActiveThreads(int highestActiveThreads)

setTotalSubmitted

public void setTotalSubmitted(long totalSubmitted)

setTotalCompleted

public void setTotalCompleted(long totalCompleted)

setQueueName

public void setQueueName(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.