Skip navigation links
oracle.stellent.ridc.convenience.monitor
Class ContentHistoryWatcher.IdcPollingThread
java.lang.Object
java.lang.Thread
oracle.stellent.ridc.convenience.monitor.ContentHistoryWatcher.IdcPollingThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- ContentHistoryWatcher
-
protected class ContentHistoryWatcher.IdcPollingThread
- extends Thread
Content Server Event Polling Thread
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, 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 |
m_keepRunning
protected boolean m_keepRunning
m_currentDate
protected ContentHistoryWatcher.QueryDate m_currentDate
ContentHistoryWatcher.IdcPollingThread
protected ContentHistoryWatcher.IdcPollingThread()
isKeepRunning
public boolean isKeepRunning()
setKeepRunning
public void setKeepRunning(boolean keepRunning)
run
public void run()
-
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
buildDocHistoryQuery
protected DataBinder buildDocHistoryQuery(String whereClause,
String orderClause)
- Build the document history query
-
- Parameters:
whereClause
- the where clause
orderClause
- the order clause
- Returns:
- the populated binder
sendEventsForResponse
protected void sendEventsForResponse(DataBinder responseBinder)
- Send our the events for the response
-
- Parameters:
responseBinder
- the binder with the results of the query
getCurrentDate
protected String getCurrentDate()
-
- Returns:
- the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.
getDefaultCurrentDate
protected String getDefaultCurrentDate()
-
- Returns:
- the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.
updateCurrentDate
protected void updateCurrentDate(Date date)
- 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
protected String[] getCurrentDateWhereClause()
-
- Returns:
- the initial date query string
getCurrentDateWhereClause
protected String[] getCurrentDateWhereClause(DataObject documentEvent)
throws IdcClientException
-
- Parameters:
documentEvent
- the document event
- Returns:
- date query string for any item after the given information
- Throws:
IdcClientException
getMonitoredSubjects
protected String getMonitoredSubjects(Map<String,Long> subjectTime)
- 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
Skip navigation links
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.