|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.monitor.AbstractMonitorEnabled de.bea.domingo.proxy.BaseProxy de.bea.domingo.proxy.AgentContextProxy
public final class AgentContextProxy
Represents the agent environment of the current program, if an agent is running it.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.bea.domingo.proxy.BaseProxy |
---|
BaseProxy.DocumentCollectionIterator |
Field Summary |
---|
Fields inherited from class de.bea.domingo.proxy.BaseProxy |
---|
DATETIME_STRING_LENGTH, EMPTY_STRING, MAX_DATETIME_LENGTH, NUM_DATETIME_VALUES, RESOURCES |
Method Summary | |
---|---|
DAgent |
getCurrentAgent()
The agent that's currently running. |
DDatabase |
getCurrentDatabase()
The database in which the current agent resides. |
DDocument |
getDocumentContext()
The in-memory document when an agent starts. |
java.lang.String |
getEffectiveUserName()
The user name that is in effect for the current agent. |
static DAgentContext |
getInstance(NotesProxyFactory theFactory,
SessionProxy session,
lotus.domino.AgentContext theAgentContext,
DNotesMonitor monitor)
Factory method for instances of this class. |
int |
getLastExitStatus()
The exit status code returned by the Agent Manager the last time the current agent ran. |
java.util.Calendar |
getLastRun()
The date and time when the current agent was last executed. |
DDocument |
getSavedData()
A document that an agent uses to store information between invocations. |
java.util.Iterator |
getUnprocessedDocuments()
The documents in a database that the current agent considers to be unprocessed. |
java.lang.String |
toString()
Returns a short description of an instance. |
java.util.Iterator |
unprocessedFTSearch(java.lang.String query,
int maxDocs)
Performs a full-text search within the unprocessed documents. |
java.util.Iterator |
unprocessedFTSearch(java.lang.String query,
int maxDocs,
int sortOpt,
int otherOpt)
Performs a full-text search within the unprocessed documents. |
java.util.Iterator |
unprocessedSearch(java.lang.String query,
java.util.Calendar dateTime,
int maxDocs)
Searches for unprocessed documents which were created or modified since the cutoff date. |
void |
updateProcessedDoc(DDocument document)
Marks a given document as processed. |
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled |
---|
getMonitor, setMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.bea.domingo.DBase |
---|
equals, hashCode |
Method Detail |
---|
public static DAgentContext getInstance(NotesProxyFactory theFactory, SessionProxy session, lotus.domino.AgentContext theAgentContext, DNotesMonitor monitor)
theFactory
- the controlling factorysession
- the session that produced the databasetheAgentContext
- Notes agent context objectmonitor
- the monitor that handles logging
public void updateProcessedDoc(DDocument document)
updateProcessedDoc
in interface DAgentContext
document
- a documentDAgentContext.updateProcessedDoc(de.bea.domingo.DDocument)
public java.util.Iterator unprocessedFTSearch(java.lang.String query, int maxDocs)
unprocessedFTSearch
in interface DAgentContext
query
- The full-text querymaxDocs
- The maximum number of documents you want returned; 0 means all matching documents
DAgentContext.unprocessedFTSearch(java.lang.String, int)
public java.util.Iterator unprocessedFTSearch(java.lang.String query, int maxDocs, int sortOpt, int otherOpt)
unprocessedFTSearch
in interface DAgentContext
query
- The full-text querymaxDocs
- The maximum number of documents you want returned; 0 means all matching documentssortOpt
- sorting optionsotherOpt
- other options
DAgentContext.unprocessedFTSearch(java.lang.String, int, int, int)
public java.util.Iterator unprocessedSearch(java.lang.String query, java.util.Calendar dateTime, int maxDocs)
unprocessedSearch
in interface DAgentContext
query
- A Lotus Domino formula that defines the selection criteriadateTime
- A cutoff datemaxDocs
- The maximum number of documents you want returned; 0 means all matching documents
DAgentContext.unprocessedSearch(java.lang.String, java.util.Calendar, int)
public java.lang.String getEffectiveUserName()
DSession.getUserName()
return the same
value for a given program.
The exceptions are agents that run on a server, where
getEffectiveUserName is the name of the script's owner and
getUserName is the name of the server on which the script is running.
If the user name is hierarchical, this property returns the fully
distinguished name.
getEffectiveUserName
in interface DAgentContext
DAgentContext.getEffectiveUserName()
public DAgent getCurrentAgent()
getCurrentAgent
in interface DAgentContext
DAgentContext.getCurrentAgent()
public DDatabase getCurrentDatabase()
getCurrentDatabase
in interface DAgentContext
DAgentContext.getCurrentDatabase()
public DDocument getDocumentContext()
getDocumentContext
in interface DAgentContext
DAgentContext.getDocumentContext()
public int getLastExitStatus()
getLastExitStatus
in interface DAgentContext
DAgentContext.getLastExitStatus()
public java.util.Calendar getLastRun()
getLastRun
in interface DAgentContext
DAgentContext.getLastRun()
public DDocument getSavedData()
getSavedData
in interface DAgentContext
DAgentContext.getSavedData()
public java.util.Iterator getUnprocessedDocuments()
getUnprocessedDocuments
in interface DAgentContext
DAgentContext.getUnprocessedDocuments()
public java.lang.String toString()
DBase
toString
in interface DBase
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |