Class ContentHistoryWatcher.IdcPollingThread
java.lang.Object
java.lang.Thread
oracle.stellent.ridc.convenience.monitor.ContentHistoryWatcher.IdcPollingThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
- ContentHistoryWatcher
Content Server Event Polling Thread
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataBinderbuildDocHistoryQuery(String whereClause, String orderClause) Build the document history queryprotected Stringprotected String[]protected String[]getCurrentDateWhereClause(DataObject documentEvent) protected Stringprotected StringgetMonitoredSubjects(Map<String, Long> subjectTime) Build the request modifier to send custom subject queriesbooleanvoidrun()protected voidsendEventsForResponse(DataBinder responseBinder) Send our the events for the responsevoidsetKeepRunning(boolean keepRunning) protected voidupdateCurrentDate(Date date) Updates the current date returned by getCurrentDate().Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
m_keepRunning
protected boolean m_keepRunning -
m_currentDate
-
-
Constructor Details
-
IdcPollingThread
protected IdcPollingThread()
-
-
Method Details
-
isKeepRunning
public boolean isKeepRunning() -
setKeepRunning
public void setKeepRunning(boolean keepRunning) -
run
public void run() -
buildDocHistoryQuery
Build the document history query- Parameters:
whereClause- the where clauseorderClause- the order clause- Returns:
- the populated binder
-
sendEventsForResponse
Send our the events for the response- Parameters:
responseBinder- the binder with the results of the query
-
getCurrentDate
- Returns:
- the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.
-
getDefaultCurrentDate
- Returns:
- the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.
-
updateCurrentDate
Updates the current date returned by getCurrentDate(). This date ultimately is used in the query string that checks for content server document changes.- Parameters:
date-
-
getCurrentDateWhereClause
- Returns:
- the initial date query string
-
getCurrentDateWhereClause
- Parameters:
documentEvent- the document event- Returns:
- date query string for any item after the given information
- Throws:
IdcClientException
-
getMonitoredSubjects
Build the request modifier to send custom subject queries- Parameters:
subjectTime- a mapping of subject name (String) to subject time (Long)- Returns:
- the request modifier populated with the querySubjects
-