|
||||||||||
| 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.LDAPConnector
com.ibm.di.connector.ExchangeChangelogConnector
public class ExchangeChangelogConnector
The class ExchangeChangelogConnector represents the Exchange 5.5 Directory Service Changelog Connector class that will be accessed by IBM Tivoli Directory Integrator. It extends the LDAP Connector class (LDAPConnector) and overrides some of its methods to implement Exchange-specific changelog functionality.
| Field Summary | |
|---|---|
static String |
ATTR_CHANGE_TYPE
|
static String |
CHANGE_TYPE_ADD
|
static String |
CHANGE_TYPE_DELETE
|
static String |
CHANGE_TYPE_MODIFY
|
static String |
EXCHANGE_ATTR_HIGHEST_COMMITTED_USN
|
static String |
EXCHANGE_ATTR_IS_DELETED
|
static String |
EXCHANGE_ATTR_USN_CHANGED
|
static String |
EXCHANGE_ATTR_USN_CREATED
|
static String |
PARAM_DELETED_ATTRIBUTE_VISIBLE
|
static String |
PARAM_LDAP_SEARCH_BASE
|
static String |
PARAM_SLEEP_INTERVAL
|
static String |
PARAM_START_AT
|
static String |
PARAM_TIMEOUT
|
static String |
PARAM_USN_FILE_NAME
|
static String |
PARAM_USN_STORE_PARAM_NAME
|
static String |
PROP_CURRENT_USN_CHANGED
|
static String |
PROP_CURRENT_USN_CREATED
|
static String |
PROP_END_USN
|
static String |
PROP_START_USN
|
| 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 |
| Constructor Summary | |
|---|---|
ExchangeChangelogConnector()
Calls the super constructor and assigns supported Connector modes. |
|
| Method Summary | |
|---|---|
Entry |
getCheckpointInformation()
Returns the state information for the connector. |
protected int |
getHighestCommittedUsn()
Retrieves the highest committed USN from Exchange Directory Service. |
Entry |
getNextEntry()
Retrieves the next "changed" object from Exchange Directory Service. |
protected void |
getStartUsnValues()
Reads start USN values. |
Entry |
getUsnValues()
Returns an Entry object containing the current USN synchronization values. |
String |
getVersion()
Return version information |
void |
initialize(Object obj)
Reads connector parameters' values and prepares LDAP search constraints. |
boolean |
isCheckpointRestartEnabled(int aMode)
Components that support checkpoint/restart for a specific mode must return TRUE from this method. |
protected Entry |
packUsnValues()
Returns an Entry containing the current Connector's USN values as properties. |
void |
prepareForRestart(ALState aState,
Entry aRestartInfo,
int aRestartPoint)
Notifies the connector of a restart situation. |
protected Entry |
retrieveEntry(String aFilter)
Retrieves an Entry from Exchange Directory Service based on the given filter. |
void |
selectEntries()
Reads the initial USN values and sets necessary request controls. |
void |
setUsnValues(Entry aUsnEntry)
Sets the Connector’s current USN synchronization values to the values specified in the "aUsnEntry" parameter. |
protected void |
storeUSNForNextSynch()
Stores the USN values for the next synchronization. |
| 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, terminate, terminateServer |
| Field Detail |
|---|
public static final String PARAM_LDAP_SEARCH_BASE
public static final String PARAM_USN_FILE_NAME
public static final String PARAM_USN_STORE_PARAM_NAME
public static final String PARAM_START_AT
public static final String PARAM_DELETED_ATTRIBUTE_VISIBLE
public static final String PARAM_SLEEP_INTERVAL
public static final String PARAM_TIMEOUT
public static final String ATTR_CHANGE_TYPE
public static final String CHANGE_TYPE_ADD
public static final String CHANGE_TYPE_MODIFY
public static final String CHANGE_TYPE_DELETE
public static final String EXCHANGE_ATTR_USN_CHANGED
public static final String EXCHANGE_ATTR_USN_CREATED
public static final String EXCHANGE_ATTR_IS_DELETED
public static final String EXCHANGE_ATTR_HIGHEST_COMMITTED_USN
public static final String PROP_START_USN
public static final String PROP_END_USN
public static final String PROP_CURRENT_USN_CREATED
public static final String PROP_CURRENT_USN_CHANGED
| Constructor Detail |
|---|
public ExchangeChangelogConnector()
| Method Detail |
|---|
public void initialize(Object obj)
throws Exception
initialize in interface ConnectorInterfaceinitialize in class LDAPConnectorobj - This parameter is usually null but can be any type of object the caller chooses to pass on.
Normally the parameter is some kind of input stream or Reader object.
Exception - If invalid Connector parameter values are supplied.
protected void getStartUsnValues()
throws Exception
(1) Restart info is passed;
(2) File name parameter is specified - backward compatibility mode;
(3) Persistent parameter - if the specified parameter is not found in the store, the "Start at" value is used.
Exception
public void selectEntries()
throws Exception
selectEntries in interface ConnectorInterfaceselectEntries in class LDAPConnectorException - Any Exception by the underlying library
protected int getHighestCommittedUsn()
throws Exception
Exception - If error occurs while retrieving the highest commited USN.
protected Entry retrieveEntry(String aFilter)
throws NamingException
aFilter - The LDAP filter for retrieving the Entry.
NamingException - If error occurs while retrieving the Entry from Exchange Directory Service.
public Entry getNextEntry()
throws Exception
getNextEntry in interface ConnectorInterfacegetNextEntry in class LDAPConnectorException - If retrieving the next "changed" Entry fails.Connector.selectEntries()protected Entry packUsnValues()
protected void storeUSNForNextSynch()
public boolean isCheckpointRestartEnabled(int aMode)
isCheckpointRestartEnabled in interface CheckpointRestartInterfaceaMode - The mode the connector runs in
ServerConstants
public Entry getCheckpointInformation()
throws Exception
getCheckpointInformation in interface CheckpointRestartInterfaceException
public void prepareForRestart(ALState aState,
Entry aRestartInfo,
int aRestartPoint)
throws Exception
prepareForRestart in interface CheckpointRestartInterfaceaState - aRestartInfo - The last entry object returned by the connector in the
getCheckpointInformation method.aRestartPoint -
Exceptionpublic Entry getUsnValues()
public void setUsnValues(Entry aUsnEntry)
throws Exception
Exception - If the given Entry object does not contain the neccessary USN values.public String getVersion()
getVersion in interface VersionInfoInterfacegetVersion in class LDAPConnector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||