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 int
getActiveThreads()
Current active thread countint
getHighestActiveThreads()
Highest Active threads recorded so farint
getHighestQueued()
int
getMaxThreads()
Max number of active threads allowedint
getQueued()
String
getQueueName()
Queue Namelong
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(String name)
void
setTotalCompleted(long totalCompleted)
void
setTotalSubmitted(long totalSubmitted)
String
toString()
-
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:WorkerPoolStatisticsBean
Current active thread count- Specified by:
getActiveThreads
in interfaceWorkerPoolStatisticsBean
- Returns:
-
getHighestActiveThreads
public int getHighestActiveThreads()
Description copied from interface:WorkerPoolStatisticsBean
Highest Active threads recorded so far- Specified by:
getHighestActiveThreads
in interfaceWorkerPoolStatisticsBean
- Returns:
-
getTotalCompleted
public long getTotalCompleted()
- Specified by:
getTotalCompleted
in interfaceWorkerPoolStatisticsBean
- Returns:
- The number of completed tasks
-
getTotalSubmitted
public long getTotalSubmitted()
- Specified by:
getTotalSubmitted
in interfaceWorkerPoolStatisticsBean
- Returns:
- The number of submitted tasks
-
getQueueName
public String getQueueName()
Description copied from interface:WorkerPoolStatisticsBean
Queue Name- Specified by:
getQueueName
in interfaceWorkerPoolStatisticsBean
- Returns:
-
getQueued
public int getQueued()
- Specified by:
getQueued
in interfaceWorkerPoolStatisticsBean
- Returns:
- Returns the number of requests queued.
-
getHighestQueued
public int getHighestQueued()
- Specified by:
getHighestQueued
in interfaceWorkerPoolStatisticsBean
- Returns:
- Returns the highest queue size
-
getMaxThreads
public int getMaxThreads()
Description copied from interface:WorkerPoolStatisticsBean
Max number of active threads allowed- Specified by:
getMaxThreads
in 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)
-
-