Skip navigation links

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

E17274-03


oracle.stellent.ridc.convenience.monitor
Class ContentHistoryWatcher

java.lang.Object
  extended by java.util.Observable
      extended by oracle.stellent.ridc.convenience.monitor.ContentHistoryWatcher


public class ContentHistoryWatcher
extends java.util.Observable

Nested Class Summary
protected  class ContentHistoryWatcher.IdcPollingThread
          Content Server Event Polling Thread
static class ContentHistoryWatcher.QueryDate
           

 

Field Summary
static java.lang.String ACTION
           
static java.lang.String ACTION_DATE
           
static java.lang.String ACTION_MILLIS
           
static java.lang.String DATA_SOURCE
           
static java.lang.String DOCUMENT_HISTORY
           
static java.lang.String GET_DATA_RESULTSET
           
static java.lang.String LOAD_USER_LOCALIZATION
           
protected  IdcContext m_context
           
protected  IdcClient m_idcClient
           
protected  ILog m_log
           
static java.lang.String MONITORED_SUBJECTS
           
static java.lang.String ORDER_CLAUSE
           
static java.lang.String REFRESH_SUBJECTS
           
static java.lang.String RESULT_NAME
           
protected static java.lang.Long TIME_EXPIRED
           
protected static java.lang.Long TIME_ZERO
           
static java.lang.String WHERE_CLAUSE
           

 

Constructor Summary
ContentHistoryWatcher(IdcClient idcClient, IdcContext context)
           

 

Method Summary
 void addQuerySubject(java.lang.String subject)
          Add the subject with to the list to query
protected  void fireContentUpdateEvent(DataObject contentInfo)
          Fire the content update event
 void fireSubjectChangedEvent(java.lang.String name, long time)
          Fire the subjectChanged event
protected  IdcContext getContext()
           
 IdcClient getIdcClient()
           
 java.text.DateFormat getOdbcDateFormat()
           
 long getSleep()
           
protected  java.text.DateFormat initializeDateFormat(IdcContext context)
           
 void setQuerySubjects(java.util.List subjects)
          Set the list of subjects to query
 void setSleep(long sleep)
           
 void start()
          Start the event poller
 void stop()
          Stop the event poller
protected  void updateSubject(java.lang.String name, long time)
           

 

Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged

 

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

 

Field Detail

LOAD_USER_LOCALIZATION

public static final java.lang.String LOAD_USER_LOCALIZATION
See Also:
Constant Field Values

GET_DATA_RESULTSET

public static final java.lang.String GET_DATA_RESULTSET
See Also:
Constant Field Values

ACTION

public static final java.lang.String ACTION
See Also:
Constant Field Values

ACTION_DATE

public static final java.lang.String ACTION_DATE
See Also:
Constant Field Values

ACTION_MILLIS

public static final java.lang.String ACTION_MILLIS
See Also:
Constant Field Values

DATA_SOURCE

public static final java.lang.String DATA_SOURCE
See Also:
Constant Field Values

RESULT_NAME

public static final java.lang.String RESULT_NAME
See Also:
Constant Field Values

WHERE_CLAUSE

public static final java.lang.String WHERE_CLAUSE
See Also:
Constant Field Values

ORDER_CLAUSE

public static final java.lang.String ORDER_CLAUSE
See Also:
Constant Field Values

MONITORED_SUBJECTS

public static final java.lang.String MONITORED_SUBJECTS
See Also:
Constant Field Values

REFRESH_SUBJECTS

public static final java.lang.String REFRESH_SUBJECTS
See Also:
Constant Field Values

DOCUMENT_HISTORY

public static final java.lang.String DOCUMENT_HISTORY
See Also:
Constant Field Values

m_log

protected ILog m_log

TIME_ZERO

protected static final java.lang.Long TIME_ZERO

TIME_EXPIRED

protected static final java.lang.Long TIME_EXPIRED

m_idcClient

protected IdcClient m_idcClient

m_context

protected IdcContext m_context

Constructor Detail

ContentHistoryWatcher

public ContentHistoryWatcher(IdcClient idcClient,
                             IdcContext context)

Method Detail

getSleep

public long getSleep()

setSleep

public void setSleep(long sleep)

getIdcClient

public IdcClient getIdcClient()

getOdbcDateFormat

public java.text.DateFormat getOdbcDateFormat()
                                       throws IdcClientException
Throws:
IdcClientException

stop

public void stop()
          throws java.lang.Exception
Stop the event poller
Throws:
java.lang.Exception - in case of shutdown errors. Exceptions will get logged but not rethrown to allow other beans to release their resources too.

start

public void start()
Start the event poller

addQuerySubject

public void addQuerySubject(java.lang.String subject)
Add the subject with to the list to query
Parameters:
subject -

setQuerySubjects

public void setQuerySubjects(java.util.List subjects)
Set the list of subjects to query
Parameters:
subjects -

updateSubject

protected void updateSubject(java.lang.String name,
                             long time)

initializeDateFormat

protected java.text.DateFormat initializeDateFormat(IdcContext context)
                                             throws IdcClientException
Throws:
IdcClientException

getContext

protected IdcContext getContext()
Returns:
the context used to run the event polling methods

fireContentUpdateEvent

protected void fireContentUpdateEvent(DataObject contentInfo)
Fire the content update event
Parameters:
contentInfo - the document info for the content

fireSubjectChangedEvent

public void fireSubjectChangedEvent(java.lang.String name,
                                    long time)
Fire the subjectChanged event
Parameters:
name - the subject name
time - the subject time

Skip navigation links

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

E17274-03


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