|
||||||||||
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.ADChangelogConnectorv2
public class ADChangelogConnectorv2
The class ADChangelogConnector represents the Active Directory 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 AD-specific functionality.
Field Summary | |
---|---|
static java.lang.String |
ATTR_CHANGE_TYPE
An Entry attribute name: "changeType" |
static java.lang.String |
CHANGE_TYPE_ADD
An Entry attribute value ("add") for
attribute with name: "changeType" |
static java.lang.String |
CHANGE_TYPE_DELETE
An Entry attribute value ("delete") for
attribute with name: "changeType" |
static java.lang.String |
CHANGE_TYPE_MODIFY
An Entry attribute value ("modify") for
attribute with name: "changeType" |
static int |
PAGE_SIZE_DEFAULT_VALUE
Default value used for page size. |
static java.lang.String |
PARAM_LDAP_SEARCH_BASE
Parameter Name: "ldapSearchBase" |
static java.lang.String |
PARAM_PAGE_SIZE
Parameter Name: "pageSize" |
static java.lang.String |
PARAM_SLEEP_INTERVAL
Parameter Name: "sleepInterval" |
static java.lang.String |
PARAM_START_AT
Parameter Name: "startAt" |
static java.lang.String |
PARAM_TIMEOUT
Parameter Name: "timeout" |
static java.lang.String |
PARAM_USE_NOTIFICATIONS
Parameter Name: "useNotifications" |
static java.lang.String |
PARAM_USN_STORE_PARAM_NAME
Parameter Name: "iteratorStateKey" |
static java.lang.String |
PROP_START_USN
USN property file parameter: 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.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 | |
---|---|
ADChangelogConnectorv2()
Calls the super constructor and assigns supported Connector modes. |
Method Summary | |
---|---|
protected void |
addGUIDStrAttribute(Entry aEntry)
Adds the "objectGUIDStr" Attribute to the Entry. |
protected java.lang.String |
binaryGUIDtoString(byte[] aBinaryData)
Generates the hexadecimal String representation of the GUID based on its 128-bit binary representation. |
protected long |
getHighestCommittedUsn()
Retrieves the highest committed USN from Active Directory. |
Entry |
getNextEntry()
Retrieves the next "changed" object from Active Directory. |
protected Entry |
getNextSearchResult()
Retrieves next Entry from result set. |
protected void |
getStartUsnValues()
Reads start USN values. |
java.lang.Object |
getStateKeyObject()
Retrives synchronization session's start USN as Object. |
int |
getStateKeySaveMethod()
Retrieves the method for storing StateKey. |
long |
getUsnValue()
Retrieves USN synchronization value. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object aObj)
Reads connector parameters' values and prepares LDAP search constraints. |
protected Entry |
packUsnValues()
Retrieves USN value as properties. |
void |
saveStateKey()
Stores the USN values for the next synchronization. |
void |
selectEntries()
Reads the initial USN value and makes necessary adjustments. |
void |
setUsnValue(long aUsnValue)
Sets Connector’s current USN synchronization value. |
protected void |
storeUSNForNextSynch()
Stores the USN values for the next synchronization. |
void |
terminate()
Close the connection to the LDAP server |
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 |
Field Detail |
---|
public static final java.lang.String PARAM_LDAP_SEARCH_BASE
public static final java.lang.String PARAM_USN_STORE_PARAM_NAME
public static final java.lang.String PARAM_START_AT
public static final java.lang.String PARAM_SLEEP_INTERVAL
public static final java.lang.String PARAM_TIMEOUT
public static final java.lang.String PARAM_PAGE_SIZE
public static final java.lang.String PARAM_USE_NOTIFICATIONS
public static final java.lang.String ATTR_CHANGE_TYPE
Entry
attribute name: "changeType"
public static final java.lang.String CHANGE_TYPE_ADD
Entry
attribute value ("add") for
attribute with name: "changeType"
public static final java.lang.String CHANGE_TYPE_MODIFY
Entry
attribute value ("modify") for
attribute with name: "changeType"
public static final java.lang.String CHANGE_TYPE_DELETE
Entry
attribute value ("delete") for
attribute with name: "changeType"
public static final int PAGE_SIZE_DEFAULT_VALUE
public static final java.lang.String PROP_START_USN
PROP_START_USN
Constructor Detail |
---|
public ADChangelogConnectorv2()
Method Detail |
---|
public void initialize(java.lang.Object aObj) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class LDAPConnector
aObj
- 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.
java.lang.Exception
- If invalid Connector parameter values are supplied.protected void getStartUsnValues() throws java.lang.Exception
(1) System Store parameter;
(2) If the specified System Store parameter is not found in the System Store, the "Start at" value is used.
java.lang.Exception
- if the USN values cannot be retrieved or other type of error
occurs.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class LDAPConnector
java.lang.Exception
- Exception if the USN values cannot be retrieved or other type
of error occurs.protected long getHighestCommittedUsn() throws java.lang.Exception
java.lang.Exception
- If cannot retrieve the highest committed USN number.protected java.lang.String binaryGUIDtoString(byte[] aBinaryData)
aBinaryData
- A 16-byte byte array, holding the 128-bit binary
representation of the GUID.
protected void addGUIDStrAttribute(Entry aEntry)
aEntry
- The Entry to add the "objectGUIDStr" Attribute to.protected Entry getNextSearchResult() throws javax.naming.NamingException, java.io.IOException
java.io.IOException
- If an error was encountered while encoding the supplied
arguments into a control.
javax.naming.NamingException
- If an error occurred while setting the request controls or if
a naming exception is encountered while attempting to
determine whether there is another element in the
enumeration. See NamingException and its subclasses for the
possible naming exceptionspublic Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class LDAPConnector
java.lang.Exception
- If retrieving the next "changed" Entry fails.ConnectorInterface.selectEntries()
protected Entry packUsnValues()
protected void storeUSNForNextSynch()
public long getUsnValue()
public void setUsnValue(long aUsnValue)
aUsnValue
- the new USN value.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
- -
neverpublic java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
getVersion
in class LDAPConnector
public void terminate()
terminate
in interface ConnectorInterface
terminate
in class LDAPConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |