com.pcbsys.nirvana.nAdminAPI.nThreadPool Class Reference

This class is used to represent an instance of a thread pool beign used within a Nirvana realm More...

Public Member Functions

virtual int getIdle ()
 Get the number of idle threads within the thread pool More...
 
virtual int getQueue ()
 Get the number of current tasks queued within the thread pool More...
 
virtual int getSize ()
 Get the size of the pool, i.e. More...
 
virtual long getTotal ()
 Get the total number of tasks executed by the thread pool during it's lifetime More...
 

Properties

virtual string Name [get]
 Get the name of this thread pool More...
 

Detailed Description

This class is used to represent an instance of a thread pool beign used within a Nirvana realm

Each threadpool is known by a name, and has a number of values that can be accessed

nThreadEntry

Member Function Documentation

virtual int com.pcbsys.nirvana.nAdminAPI.nThreadPool.getIdle ( )
virtual

Get the number of idle threads within the thread pool

Returns
the number of idle threads
virtual int com.pcbsys.nirvana.nAdminAPI.nThreadPool.getQueue ( )
virtual

Get the number of current tasks queued within the thread pool

Returns
the current number of queued tasks
virtual int com.pcbsys.nirvana.nAdminAPI.nThreadPool.getSize ( )
virtual

Get the size of the pool, i.e.

the number of threads allocated to the pool

Returns
the number of threads used within the pool
virtual long com.pcbsys.nirvana.nAdminAPI.nThreadPool.getTotal ( )
virtual

Get the total number of tasks executed by the thread pool during it's lifetime

Returns
the total number of tasks executed

Property Documentation

virtual string com.pcbsys.nirvana.nAdminAPI.nThreadPool.Name
get

Get the name of this thread pool

Returns
the trhead pool name