Class ContentHistoryWatcher
java.lang.Object
java.util.Observable
oracle.stellent.ridc.convenience.monitor.ContentHistoryWatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classContent Server Event Polling Threadstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected IdcContextprotected IdcClientprotected ILogstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Longprotected static final Longstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQuerySubject(String subject) Add the subject with to the list to queryprotected voidfireContentUpdateEvent(DataObject contentInfo) Fire the content update eventvoidfireSubjectChangedEvent(String name, long time) Fire the subjectChanged eventprotected IdcContextlonggetSleep()protected DateFormatinitializeDateFormat(IdcContext context) voidsetQuerySubjects(List subjects) Set the list of subjects to queryvoidsetSleep(long sleep) voidstart()Start the event pollervoidstop()Stop the event pollerprotected voidupdateSubject(String name, long time) Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
LOAD_USER_LOCALIZATION
- See Also:
-
GET_DATA_RESULTSET
- See Also:
-
ACTION
- See Also:
-
ACTION_DATE
- See Also:
-
ACTION_MILLIS
- See Also:
-
DATA_SOURCE
- See Also:
-
RESULT_NAME
- See Also:
-
WHERE_CLAUSE
- See Also:
-
ORDER_CLAUSE
- See Also:
-
MONITORED_SUBJECTS
- See Also:
-
REFRESH_SUBJECTS
- See Also:
-
DOCUMENT_HISTORY
- See Also:
-
m_log
-
TIME_ZERO
-
TIME_EXPIRED
-
m_idcClient
-
m_context
-
-
Constructor Details
-
ContentHistoryWatcher
-
-
Method Details
-
getSleep
public long getSleep() -
setSleep
public void setSleep(long sleep) -
getIdcClient
-
getOdbcDateFormat
- Throws:
IdcClientException
-
stop
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
Add the subject with to the list to query- Parameters:
subject-
-
setQuerySubjects
Set the list of subjects to query- Parameters:
subjects-
-
updateSubject
-
initializeDateFormat
- Throws:
IdcClientException
-
getContext
- Returns:
- the context used to run the event polling methods
-
fireContentUpdateEvent
Fire the content update event- Parameters:
contentInfo- the document info for the content
-
fireSubjectChangedEvent
Fire the subjectChanged event- Parameters:
name- the subject nametime- the subject time
-