|
||||||||||
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
This connector is used for receiving change notification from a Domino server and feeding the AL with the applied on the server changes.
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.connector.ChangelogInterface |
---|
CONN_PARAM_STATE_KEY_PERSISTENCE, PARAM_MERGE_BOTH_NOT_MERGED, PARAM_MERGE_CHANGELOG_AND_DATA, PARAM_MERGE_ONLY_CHANGED_DATA, 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(java.lang.Object arg0,
java.lang.Object arg1)
Compares two documents by the dates they are modified |
Entry |
getNextEntry()
Retrieves the next changed entry. |
java.lang.Object |
getStateKeyObject()
Retrieves synchronization state. |
int |
getStateKeySaveMethod()
Retrieves the method for storing StateKey. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object aObj)
Reads Connector parameters and initializes the local and IIOP Notes sessions. |
void |
run()
Executes Notes commands until termination is requested |
void |
saveStateKey()
Stores the USN values for the next synchronization. |
void |
selectEntries()
Reads and sets the start synchronization state. |
void |
skipCurrentDocument()
Skip the current document. |
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 java.lang.Runnable
public void skipCurrentDocument() throws java.lang.Exception
For example use the following script in the "Default On Error" hook of the Connector:
thisConnector.connector.skipCurrentDocument();
java.lang.Exception
- If the Notes thread is not running or the Notes thread
encounters an error while processing the command.public void initialize(java.lang.Object aObj) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- Object.
java.lang.Exception
- if an error occurs.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- if an error occurspublic Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.Exception
- if an error occursConnectorInterface.selectEntries()
public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public int compare(java.lang.Object arg0, java.lang.Object arg1)
compare
in interface java.util.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 java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
public int getStateKeySaveMethod() throws java.lang.Exception
getStateKeySaveMethod
in interface ChangelogInterface
java.lang.Exception
- -
neverChangelogInterface.SAVE_STATE_AFTER_READ
,
ChangelogInterface.SAVE_STATE_END_OF_CYCLE
,
ChangelogInterface.SAVE_STATE_MANUAL
public void saveStateKey() throws java.lang.Exception
ChangelogInterface.SAVE_STATE_AFTER_READ
saveStateKey
in interface ChangelogInterface
java.lang.Exception
- -
neverpublic java.lang.Object getStateKeyObject() throws java.lang.Exception
getStateKeyObject
in interface ChangelogInterface
java.lang.Exception
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |