org.teiid.adminapi.impl
Class WorkerPoolStatisticsMetadata
java.lang.Object
org.teiid.adminapi.impl.AdminObjectImpl
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
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 |
WorkerPoolStatisticsMetadata
public WorkerPoolStatisticsMetadata()
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.