Class DominoChangeDetectionConnector

    • Constructor Detail

      • DominoChangeDetectionConnector

        public DominoChangeDetectionConnector()
        Connector's public constructor. Sets Connector's name and supported modes.
    • Method Detail

      • run

        public void run()
        Executes Notes commands until termination is requested
        Specified by:
        run in interface java.lang.Runnable
      • skipCurrentDocument

        public void skipCurrentDocument()
                                 throws java.lang.Exception
        Skip the current document. Use this method to skip problem documents when the Connector will otherwise die with an exception.

        For example use the following script in the "Default On Error" hook of the Connector:

         thisConnector.connector.skipCurrentDocument();
         

        Throws:
        java.lang.Exception - If the Notes thread is not running or the Notes thread encounters an error while processing the command.
      • initialize

        public void initialize​(java.lang.Object aObj)
                        throws java.lang.Exception
        Reads Connector parameters and initializes the local and IIOP Notes sessions. Opens the specified database in both local and IIOP session.
        Specified by:
        initialize in interface ConnectorInterface
        Overrides:
        initialize in class Connector
        Parameters:
        aObj - Object.
        Throws:
        java.lang.Exception - if an error occurs.
      • selectEntries

        public void selectEntries()
                           throws java.lang.Exception
        Reads and sets the start synchronization state.
        Specified by:
        selectEntries in interface ConnectorInterface
        Overrides:
        selectEntries in class Connector
        Throws:
        java.lang.Exception - if an error occurs
      • compare

        public int compare​(java.lang.Object arg0,
                           java.lang.Object arg1)
        Compares two documents by the dates they are modified
        Specified by:
        compare in interface java.util.Comparator
        Parameters:
        arg0 - the unID of the first document
        arg1 - the unID of the second document
        Returns:
        -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 same
      • getVersion

        public java.lang.String getVersion()
        Version information.
        Specified by:
        getVersion in interface VersionInfoInterface
        Returns:
        the version of the Connector.
      • saveStateKey

        public void saveStateKey()
                          throws java.lang.Exception
        Stores the USN values for the next synchronization. This method will skip the storing of the StateKey if the StateKey save method is set to ChangelogInterface.SAVE_STATE_AFTER_READ
        Specified by:
        saveStateKey in interface ChangelogInterface
        Throws:
        java.lang.Exception - - never
      • getStateKeyObject

        public java.lang.Object getStateKeyObject()
                                           throws java.lang.Exception
        Retrieves synchronization state.
        Specified by:
        getStateKeyObject in interface ChangelogInterface
        Returns:
        the synchronization state into an Entry object.
        Throws:
        java.lang.Exception - if an error occurs.