|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
com.pentec.aserver.AServerPlugin
com.pentec.aserver.AServerAgent
public abstract class AServerAgent
AServerAgent is an AServerPlugin derivative designed to work as an agent on behalf of AServer. It's sole purpose is to launch, shutdown, and otherwise control AServerPlugins to which AServer has no direct tie. It's particularly useful for packages with multiple AServerPlugins. AServer only needs to know about the one agent which manages all the worker plugins.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class com.pentec.aserver.AServerPlugin |
|---|
isOkToRun, SIG_INIT_FAILED, SIG_INITIALIZING, SIG_QUITTING, SIG_RUNNING, STATE_INIT_FAILED, STATE_INITIALIZING, STATE_QUITTING, STATE_RUNNING, STATE_STARTING, STATE_WAITING_TO_START, vPlugins |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
AServerAgent(java.lang.String $Name,
java.lang.String $Version)
|
|
AServerAgent(java.lang.String $Name,
java.lang.String $Version,
java.lang.String $InstanceIdentifier)
|
|
| Method Summary | |
|---|---|
protected boolean |
initialize()
Initialize the agent |
void |
run()
Initialize the agent. |
protected abstract void |
startPlugins()
Start plugins under this agent's control |
protected abstract void |
stopPlugins()
Stop plugins under this agent's control |
| Methods inherited from class com.pentec.aserver.AServerPlugin |
|---|
getFullyQualifiedPluginName, getNumPlugins, getPluginInstanceIdentifier, getPluginName, getPluginState, getPluginStateByName, getPluginVersion, setPluginInstanceIdentifier, signalInitFailed, signalInitializing, signalQuitting, signalRunning, startPlugin, stopPlugin, toString, writeLog, writeLog |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AServerAgent(java.lang.String $Name,
java.lang.String $Version)
public AServerAgent(java.lang.String $Name,
java.lang.String $Version,
java.lang.String $InstanceIdentifier)
| Method Detail |
|---|
protected boolean initialize()
public final void run()
run in interface java.lang.Runnablerun in class AServerPluginprotected abstract void startPlugins()
protected abstract void stopPlugins()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||