|
Protomatter Classes v1.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.pas.serviceimpl.PASWorkServiceImpl
The default implementation of the com.protomatter.pas.service.PASWorkService interface.
PASWorkService
Fields inherited from interface com.protomatter.pas.service.PASWorkService |
JNDI_NAME |
Constructor Summary | |
PASWorkServiceImpl()
Default constructor. |
Method Summary | |
void |
addWork(java.lang.Runnable r)
Add work to the "default" work queue. |
void |
addWork(java.lang.String queue,
java.lang.Runnable r)
Add work to the given work queue. |
int |
getNumThreads(java.lang.String queue)
Get the number of threads available in the given queue. |
int |
getNumWaiters(java.lang.String queue)
Get the number of threads waiting in the given queue. |
int |
getNumWorkers(java.lang.String queue)
Get the number of workers in the given queue. |
int |
getQueueLength(java.lang.String queue)
Get the length of the given queue. |
java.util.Enumeration |
getQueueNames()
Get the names of available queues. |
java.lang.String |
startup(java.lang.String name,
java.util.Properties pasProps,
java.util.Properties myProps,
javax.naming.Context context)
Start work queues. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PASWorkServiceImpl()
Method Detail |
public void addWork(java.lang.Runnable r)
PASWorkService
addWork
in interface PASWorkService
PASWorkService
public void addWork(java.lang.String queue, java.lang.Runnable r)
PASWorkService
addWork
in interface PASWorkService
PASWorkService
public int getNumWorkers(java.lang.String queue)
PASWorkService
getNumWorkers
in interface PASWorkService
PASWorkService
public int getNumWaiters(java.lang.String queue)
PASWorkService
getNumWaiters
in interface PASWorkService
PASWorkService
public int getNumThreads(java.lang.String queue)
PASWorkService
getNumThreads
in interface PASWorkService
PASWorkService
public int getQueueLength(java.lang.String queue)
PASWorkService
getQueueLength
in interface PASWorkService
PASWorkService
public java.util.Enumeration getQueueNames()
PASWorkService
getQueueNames
in interface PASWorkService
PASWorkService
public java.lang.String startup(java.lang.String name, java.util.Properties pasProps, java.util.Properties myProps, javax.naming.Context context) throws StartupException
startup
in interface PASStartup
com.protomatter.pas.init.PASStartup
name
- The symbolic name that this class is listed as in
the configuration file for PAS.pasProps
- The entire configuraton file for PAS.myProps
- Properties specified in the
pas.startupArgs.NAME property.context
- A JNDI context object connected to PAS's JNDI tree.
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |