Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


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:
java.lang.Runnable
Enclosing class:
ContentHistoryWatcher

protected class ContentHistoryWatcher.IdcPollingThread
extends java.lang.Thread

Content Server Event Polling Thread


Nested Class Summary

 

Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.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(java.lang.String whereClause, java.lang.String orderClause)
          Build the document history query
protected  java.lang.String getCurrentDate()
           
protected  java.lang.String[] getCurrentDateWhereClause()
           
protected  java.lang.String[] getCurrentDateWhereClause(DataObject documentEvent)
           
protected  java.lang.String getDefaultCurrentDate()
           
protected  java.lang.String getMonitoredSubjects(java.util.Map<java.lang.String,java.lang.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(java.util.Date date)
          Updates the current date returned by getCurrentDate().

 

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, 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 java.lang.Runnable
Overrides:
run in class java.lang.Thread

buildDocHistoryQuery

protected DataBinder buildDocHistoryQuery(java.lang.String whereClause,
                                          java.lang.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 java.lang.String getCurrentDate()
Returns:
the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.

getDefaultCurrentDate

protected java.lang.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(java.util.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 java.lang.String[] getCurrentDateWhereClause()
Returns:
the initial date query string

getCurrentDateWhereClause

protected java.lang.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 java.lang.String getMonitoredSubjects(java.util.Map<java.lang.String,java.lang.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 Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


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