|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.DominoChangeDetectionConnector
public class DominoChangeDetectionConnector
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Fields inherited from interface com.ibm.di.server.CheckpointRestartInterface |
---|
RESTART_AFTER, RESTART_BEFORE, RESTART_IN |
Fields inherited from interface com.ibm.di.connector.ChangelogInterface |
---|
CONN_PARAM_STATE_KEY_PERSISTENCE, PARAM_VAL_AFTER_READ, PARAM_VAL_END_OF_CYCLE, PARAM_VAL_MANUAL, SAVE_STATE_AFTER_READ, SAVE_STATE_END_OF_CYCLE, SAVE_STATE_MANUAL |
Constructor Summary | |
---|---|
DominoChangeDetectionConnector()
Connector's public constructor. |
Method Summary | |
---|---|
int |
compare(Object arg0,
Object arg1)
Compares two documents by the dates they are modified |
Entry |
getCheckpointInformation()
Returns the state information for the connector. |
Entry |
getNextEntry()
Retrieves the next changed entry. |
Object |
getStateKeyObject()
|
int |
getStateKeySaveMethod()
|
String |
getVersion()
Returns the version of the Connector. |
void |
initialize(Object aObj)
Reads Connector paramaeters and initializes the local and IIOP Notes sessions. |
boolean |
isCheckpointRestartEnabled(int aMode)
Components that support checkpoint/restart for a specific mode must return TRUE from this method. |
void |
prepareForRestart(ALState aState,
Entry aRestartInfo,
int aRestartPoint)
Notifies the connector of a restart situation. |
void |
run()
|
void |
saveStateKey()
This method saves the synchronization state of the Connector. |
void |
selectEntries()
Reads and sets the start synchronization state. |
void |
terminate()
Terminates the local and IIOP Notes sessions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
---|
deleteEntry, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, putEntry, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public DominoChangeDetectionConnector()
Method Detail |
---|
public void run()
run
in interface Runnable
public void initialize(Object aObj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- User provided parameter
Exception
public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
Connector.selectEntries()
public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public int compare(Object arg0, Object arg1)
compare
in interface Comparator
arg0
- the unID of the first documentarg1
- the unID of the second document
-1
if the first document was modified before the
second; 1
if the first document was modified afrer
the second; 0
if the time of modification was the
samepublic boolean isCheckpointRestartEnabled(int aMode)
isCheckpointRestartEnabled
in interface CheckpointRestartInterface
aMode
- The mode the connector runs in.
ServerConstants
public Entry getCheckpointInformation() throws Exception
getCheckpointInformation
in interface CheckpointRestartInterface
Exception
public void prepareForRestart(ALState aState, Entry aRestartInfo, int aRestartPoint) throws Exception
prepareForRestart
in interface CheckpointRestartInterface
aState
- aRestartInfo
- The last entry object returned by the connector in the
getCheckpointInformation method.aRestartPoint
-
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
public int getStateKeySaveMethod() throws Exception
getStateKeySaveMethod
in interface ChangelogInterface
Exception
public void saveStateKey() throws Exception
saveStateKey
in interface ChangelogInterface
Exception
- if the synchronization fails.public Object getStateKeyObject() throws Exception
getStateKeyObject
in interface ChangelogInterface
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |