| 
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)
PASWorkServiceaddWork in interface PASWorkServicePASWorkService
public void addWork(java.lang.String queue,
                    java.lang.Runnable r)
PASWorkServiceaddWork in interface PASWorkServicePASWorkServicepublic int getNumWorkers(java.lang.String queue)
PASWorkServicegetNumWorkers in interface PASWorkServicePASWorkServicepublic int getNumWaiters(java.lang.String queue)
PASWorkServicegetNumWaiters in interface PASWorkServicePASWorkServicepublic int getNumThreads(java.lang.String queue)
PASWorkServicegetNumThreads in interface PASWorkServicePASWorkServicepublic int getQueueLength(java.lang.String queue)
PASWorkServicegetQueueLength in interface PASWorkServicePASWorkServicepublic java.util.Enumeration getQueueNames()
PASWorkServicegetQueueNames in interface PASWorkServicePASWorkService
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 PASStartupcom.protomatter.pas.init.PASStartupname - 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 |