Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.convenience.monitor
Class ContentHistoryWatcher.IdcPollingThread

java.lang.Object
  extended by java.lang.Thread
      extended by 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


Nested Class Summary

 

Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler

 

Field Summary
protected  ContentHistoryWatcher.QueryDate m_currentDate
           
protected  boolean m_keepRunning
           

 

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY

 

Constructor Summary
protected ContentHistoryWatcher.IdcPollingThread()
           

 

Method Summary
protected  DataBinder buildDocHistoryQuery(String whereClause, String orderClause)
          Build the document history query
protected  String getCurrentDate()
           
protected  String[] getCurrentDateWhereClause()
           
protected  String[] getCurrentDateWhereClause(DataObject documentEvent)
           
protected  String getDefaultCurrentDate()
           
protected  String getMonitoredSubjects(Map<String,Long> subjectTime)
          Build the request modifier to send custom subject queries
 boolean isKeepRunning()
           
 void run()
           
protected  void sendEventsForResponse(DataBinder responseBinder)
          Send our the events for the response
 void setKeepRunning(boolean keepRunning)
           
protected  void updateCurrentDate(Date date)
          Updates the current date returned by getCurrentDate().

 

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

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

m_keepRunning

protected boolean m_keepRunning

m_currentDate

protected ContentHistoryWatcher.QueryDate m_currentDate

Constructor Detail

ContentHistoryWatcher.IdcPollingThread

protected ContentHistoryWatcher.IdcPollingThread()

Method Detail

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

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.