Package org.teiid.adminapi.impl
Class WorkerPoolStatisticsMetadata
- java.lang.Object
-
- org.teiid.adminapi.impl.AdminObjectImpl
-
- org.teiid.adminapi.impl.WorkerPoolStatisticsMetadata
-
- All Implemented Interfaces:
Serializable,AdminObject,DomainAware,WorkerPoolStatistics,WorkerPoolStatisticsBean
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 class org.teiid.adminapi.impl.AdminObjectImpl
attachments
-
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description WorkerPoolStatisticsMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveThreads()Current active thread countintgetHighestActiveThreads()Highest Active threads recorded so farintgetHighestQueued()intgetMaxThreads()Max number of active threads allowedintgetQueued()StringgetQueueName()Queue NamelonggetTotalCompleted()longgetTotalSubmitted()voidsetActiveThreads(int activeThreads)voidsetHighestActiveThreads(int highestActiveThreads)voidsetHighestQueued(int highestQueued)voidsetMaxThreads(int maxThreads)voidsetQueued(int queued)voidsetQueueName(String name)voidsetTotalCompleted(long totalCompleted)voidsetTotalSubmitted(long totalSubmitted)StringtoString()-
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttachment, addAttchment, addProperty, getAttachment, getHostName, getName, getProperties, getPropertiesMap, getPropertyValue, getServerGroup, getServerName, removeAttachment, removeProperty, setHostName, setName, setProperties, setServerGroup, setServerName
-
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
-
Methods inherited from interface org.teiid.adminapi.DomainAware
getHostName, getServerGroup, getServerName
-
-
-
-
Method Detail
-
getActiveThreads
public int getActiveThreads()
Description copied from interface:WorkerPoolStatisticsBeanCurrent active thread count- Specified by:
getActiveThreadsin interfaceWorkerPoolStatisticsBean- Returns:
-
getHighestActiveThreads
public int getHighestActiveThreads()
Description copied from interface:WorkerPoolStatisticsBeanHighest Active threads recorded so far- Specified by:
getHighestActiveThreadsin interfaceWorkerPoolStatisticsBean- Returns:
-
getTotalCompleted
public long getTotalCompleted()
- Specified by:
getTotalCompletedin interfaceWorkerPoolStatisticsBean- Returns:
- The number of completed tasks
-
getTotalSubmitted
public long getTotalSubmitted()
- Specified by:
getTotalSubmittedin interfaceWorkerPoolStatisticsBean- Returns:
- The number of submitted tasks
-
getQueueName
public String getQueueName()
Description copied from interface:WorkerPoolStatisticsBeanQueue Name- Specified by:
getQueueNamein interfaceWorkerPoolStatisticsBean- Returns:
-
getQueued
public int getQueued()
- Specified by:
getQueuedin interfaceWorkerPoolStatisticsBean- Returns:
- Returns the number of requests queued.
-
getHighestQueued
public int getHighestQueued()
- Specified by:
getHighestQueuedin interfaceWorkerPoolStatisticsBean- Returns:
- Returns the highest queue size
-
getMaxThreads
public int getMaxThreads()
Description copied from interface:WorkerPoolStatisticsBeanMax number of active threads allowed- Specified by:
getMaxThreadsin interfaceWorkerPoolStatisticsBean- 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(String name)
-
-