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

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


public class ContentHistoryWatcher
extends Observable

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

 

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

 

Constructor Summary
ContentHistoryWatcher(IdcClient idcClient, IdcContext context)
           

 

Method Summary
 void addQuerySubject(String subject)
          Add the subject with to the list to query
protected  void fireContentUpdateEvent(DataObject contentInfo)
          Fire the content update event
 void fireSubjectChangedEvent(String name, long time)
          Fire the subjectChanged event
protected  IdcContext getContext()
           
 IdcClient getIdcClient()
           
 DateFormat getOdbcDateFormat()
           
 long getSleep()
           
protected  DateFormat initializeDateFormat(IdcContext context)
           
 void setQuerySubjects(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(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 String LOAD_USER_LOCALIZATION
See Also:
Constant Field Values

GET_DATA_RESULTSET

public static final String GET_DATA_RESULTSET
See Also:
Constant Field Values

ACTION

public static final String ACTION
See Also:
Constant Field Values

ACTION_DATE

public static final String ACTION_DATE
See Also:
Constant Field Values

ACTION_MILLIS

public static final String ACTION_MILLIS
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

RESULT_NAME

public static final String RESULT_NAME
See Also:
Constant Field Values

WHERE_CLAUSE

public static final String WHERE_CLAUSE
See Also:
Constant Field Values

ORDER_CLAUSE

public static final String ORDER_CLAUSE
See Also:
Constant Field Values

MONITORED_SUBJECTS

public static final String MONITORED_SUBJECTS
See Also:
Constant Field Values

REFRESH_SUBJECTS

public static final String REFRESH_SUBJECTS
See Also:
Constant Field Values

DOCUMENT_HISTORY

public static final String DOCUMENT_HISTORY
See Also:
Constant Field Values

m_log

protected ILog m_log

TIME_ZERO

protected static final Long TIME_ZERO

TIME_EXPIRED

protected static final 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 DateFormat getOdbcDateFormat()
                             throws IdcClientException
Throws:
IdcClientException

stop

public void stop()
          throws Exception
Stop the event poller
Throws:
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(String subject)
Add the subject with to the list to query
Parameters:
subject -

setQuerySubjects

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

updateSubject

protected void updateSubject(String name,
                             long time)

initializeDateFormat

protected 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(String name,
                                    long time)
Fire the subjectChanged event
Parameters:
name - the subject name
time - the subject time

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.