|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread lotus.domino.NotesThread lotus.domino.AgentBase de.bea.domingo.notes.DAgentBase
public abstract class DAgentBase
Domingo agents must extend DAgentBase and use run() as the entry point for their
functional code. Use {link #getDSession() getDSession()} to get a DSession
object. For output to browsers as well as Notes clients (the Java debug
console), create a PrintWriter object with
getAgentOutput()
.
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 lotus.domino.NotesThread |
---|
dummyObj, isLoaded |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DAgentBase()
Constructor. |
Method Summary | |
---|---|
void |
dbgMsg(java.lang.String message)
If debugging is enabled, send a debug message to System.out. |
void |
dbgMsg(java.lang.String message,
java.io.PrintStream out)
If debugging is enabled, send a debug message to the specified stream. |
void |
dbgMsg(java.lang.String message,
java.io.PrintWriter out)
If debugging is enabled, send a debug message to the specified writer. |
java.io.PrintWriter |
getAgentOutput()
Returns the output writer of the current agent. |
protected DSession |
getDSession()
Returns the Domingo session of the agent. |
DNotesMonitor |
getMonitor()
Returns the monitor of the current Domingo agent. |
lotus.domino.Session |
getSession()
Deprecated. use method getDSession() |
boolean |
isRestricted()
Checks if the current agent is a restricted agent or not. |
abstract void |
main()
main method to be implemented by concrete agents. |
void |
NotesMain()
|
void |
setDebug(boolean b)
Sets whether debugging is enabled or not for the current agent. |
void |
setTrace(boolean b)
Activates or deactivates tracing method calls of the JVM. |
Methods inherited from class lotus.domino.AgentBase |
---|
getAgentOutputStream, getAgentSession, runNotes, startup |
Methods inherited from class lotus.domino.NotesThread |
---|
finalize, getNativeThreadID, initThread, run, sinitThread, stermThread, termThread |
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, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DAgentBase()
Method Detail |
---|
public abstract void main()
public final void NotesMain()
NotesMain
in class lotus.domino.AgentBase
AgentBase.NotesMain()
protected final DSession getDSession()
public final lotus.domino.Session getSession()
getSession
in class lotus.domino.AgentBase
public final DNotesMonitor getMonitor()
public final void dbgMsg(java.lang.String message, java.io.PrintStream out)
dbgMsg
in class lotus.domino.AgentBase
message
- the messageout
- the output streamsetDebug(boolean)
public final void dbgMsg(java.lang.String message, java.io.PrintWriter out)
dbgMsg
in class lotus.domino.AgentBase
message
- the messageout
- the output writersetDebug(boolean)
public final void dbgMsg(java.lang.String message)
dbgMsg
in class lotus.domino.AgentBase
message
- the messagesetDebug(boolean)
public final java.io.PrintWriter getAgentOutput()
getAgentOutput
in class lotus.domino.AgentBase
public final boolean isRestricted()
isRestricted
in class lotus.domino.AgentBase
public final void setDebug(boolean b)
setDebug
in class lotus.domino.AgentBase
b
- true if debugging should be enabled, else falsepublic final void setTrace(boolean b)
setTrace
in class lotus.domino.AgentBase
b
- true
to enable instruction tracing;
false
to disable this feature.Runtime.traceMethodCalls(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |