public class ContentHistoryWatcher extends Observable
Modifier and Type | Class and Description |
---|---|
protected class |
ContentHistoryWatcher.IdcPollingThread
Content Server Event Polling Thread
|
static class |
ContentHistoryWatcher.QueryDate |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ContentHistoryWatcher(IdcClient idcClient,
IdcContext context) |
Modifier and Type | Method and Description |
---|---|
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) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String LOAD_USER_LOCALIZATION
public static final String GET_DATA_RESULTSET
public static final String ACTION
public static final String ACTION_DATE
public static final String ACTION_MILLIS
public static final String DATA_SOURCE
public static final String RESULT_NAME
public static final String WHERE_CLAUSE
public static final String ORDER_CLAUSE
public static final String MONITORED_SUBJECTS
public static final String REFRESH_SUBJECTS
public static final String DOCUMENT_HISTORY
protected ILog m_log
protected static final Long TIME_ZERO
protected static final Long TIME_EXPIRED
protected IdcClient m_idcClient
protected IdcContext m_context
public ContentHistoryWatcher(IdcClient idcClient, IdcContext context)
public long getSleep()
public void setSleep(long sleep)
public IdcClient getIdcClient()
public DateFormat getOdbcDateFormat() throws IdcClientException
IdcClientException
public void stop() throws Exception
Exception
- in case of shutdown errors.
Exceptions will get logged but not rethrown to allow
other beans to release their resources too.public void start()
public void addQuerySubject(String subject)
subject
- public void setQuerySubjects(List subjects)
subjects
- protected void updateSubject(String name, long time)
protected DateFormat initializeDateFormat(IdcContext context) throws IdcClientException
IdcClientException
protected IdcContext getContext()
protected void fireContentUpdateEvent(DataObject contentInfo)
contentInfo
- the document info for the contentpublic void fireSubjectChangedEvent(String name, long time)
name
- the subject nametime
- the subject time