Package org.jpos.q2.qbean
Interface QThreadPoolExecutorMBean
-
- All Superinterfaces:
QBean
,QBeanSupportMBean
,QPersist
- All Known Implementing Classes:
QThreadPoolExecutor
public interface QThreadPoolExecutorMBean extends QBeanSupportMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getActiveCount()
long
getCompletedTaskCount()
int
getCorePoolSize()
java.lang.String
getExecSrvType()
long
getKeepAliveTimeMS()
int
getLargestPoolSize()
int
getMaximumPoolSize()
int
getPoolSize()
long
getTaskCount()
int
getTerminationTimer()
boolean
isShutdown()
boolean
isTerminated()
boolean
isTerminating()
-
Methods inherited from interface org.jpos.q2.QBean
destroy, getState, getStateAsString, init, start, stop
-
Methods inherited from interface org.jpos.q2.QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer
-
Methods inherited from interface org.jpos.q2.QPersist
getPersist, isModified
-
-
-
-
Method Detail
-
getExecSrvType
java.lang.String getExecSrvType()
- Returns:
- executor service type
-
getTerminationTimer
int getTerminationTimer()
- Returns:
- await termination delay
-
getActiveCount
int getActiveCount() throws NameRegistrar.NotFoundException
- Returns:
- approximate number of threads that are actively executing tasks
- Throws:
NameRegistrar.NotFoundException
-
getCompletedTaskCount
long getCompletedTaskCount() throws NameRegistrar.NotFoundException
- Returns:
- the approximate total number of tasks that have completed execution.
- Throws:
NameRegistrar.NotFoundException
-
getCorePoolSize
int getCorePoolSize() throws NameRegistrar.NotFoundException
- Returns:
- returns the core number of threads.
- Throws:
NameRegistrar.NotFoundException
-
getKeepAliveTimeMS
long getKeepAliveTimeMS() throws NameRegistrar.NotFoundException
- Returns:
- the thread keep-alive time, which is the amount of time (in milliseconds) which threads in excess of the core pool size may remain idle before being terminated
- Throws:
NameRegistrar.NotFoundException
-
getLargestPoolSize
int getLargestPoolSize() throws NameRegistrar.NotFoundException
- Returns:
- the largest number of threads that have ever simultaneously been in the pool.
- Throws:
NameRegistrar.NotFoundException
-
getMaximumPoolSize
int getMaximumPoolSize() throws NameRegistrar.NotFoundException
- Returns:
- the maximum allowed number of threads.
- Throws:
NameRegistrar.NotFoundException
-
getPoolSize
int getPoolSize() throws NameRegistrar.NotFoundException
- Returns:
- the current number of threads in the pool.
- Throws:
NameRegistrar.NotFoundException
-
getTaskCount
long getTaskCount() throws NameRegistrar.NotFoundException
- Returns:
- the approximate total number of tasks that have been scheduled for execution
- Throws:
NameRegistrar.NotFoundException
-
isShutdown
boolean isShutdown() throws NameRegistrar.NotFoundException
- Returns:
- true if this executor has been shut down.
- Throws:
NameRegistrar.NotFoundException
-
isTerminated
boolean isTerminated() throws NameRegistrar.NotFoundException
- Returns:
- true if all tasks have completed following shut down
- Throws:
NameRegistrar.NotFoundException
-
isTerminating
boolean isTerminating() throws NameRegistrar.NotFoundException
- Returns:
- true if this executor is in the process of terminating after shutdown or shutdownNow but has not completely terminated.
- Throws:
NameRegistrar.NotFoundException
-
-