|
|||||||||||
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.ADChangelogConnector
public class ADChangelogConnector
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 String |
ATTR_CHANGE_TYPE
An Entry attribute name: "changeType" |
static String |
CHANGE_TYPE_ADD
An Entry attribute value ("add") for
attribute with name: "changeType" |
static String |
CHANGE_TYPE_DELETE
An Entry attribute value ("delete") for
attribute with name: "changeType" |
static String |
CHANGE_TYPE_MODIFY
An Entry attribute value ("modify") for
attribute with name: "changeType" |
static String |
PARAM_LDAP_SEARCH_BASE
Parameter Name: "ldapSearchBase" |
static String |
PARAM_SLEEP_INTERVAL
Parameter Name: "sleepInterval" |
static String |
PARAM_START_AT
Parameter Name: "startAt" |
static String |
PARAM_TIMEOUT
Parameter Name: "timeout" |
static String |
PARAM_USN_FILE_NAME
Parameter Name: "usnFileName" |
static String |
PARAM_USN_STORE_PARAM_NAME
Parameter Name: "iteratorStateKey" |
static String |
PROP_CURRENT_USN_CHANGED
USN property file parameter: PROP_CURRENT_USN_CHANGED |
static String |
PROP_CURRENT_USN_CREATED
USN property file parameter: PROP_CURRENT_USN_CREATED |
static String |
PROP_END_USN
USN property file parameter: PROP_END_USN |
static 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 |
Constructor Summary | |
---|---|
ADChangelogConnector()
Calls the super constructor and assigns supported Connector modes. |
Method Summary | |
---|---|
protected void |
addGUIDStrAttribute(Entry aEntry)
Adds the "objectGUIDStr" Attribute to the Entry. |
protected String |
binaryGUIDtoString(byte[] aBinaryData)
Generates the hexadecimal String representation of the GUID based on its 128-bit binary representation. |
protected int |
getHighestCommittedUsn()
Retrieves the highest committed USN from Active Directory. |
Entry |
getNextEntry()
Retrieves the next "changed" object from the AD. |
protected void |
getStartUsnValues()
Reads start USN values. |
Entry |
getUsnValues()
Retrives USN synchronization values. |
String |
getVersion()
Version information. |
void |
initialize(Object aObj)
Reads connector parameters' values and prepares LDAP search constraints. |
protected Entry |
packUsnValues()
|
void |
reconnect(Object o)
Reconnect to the underlying data source |
protected Entry |
retrieveEntry(String aFilter)
Retrieves an Entry from AD based on the given filter. |
void |
selectEntries()
Reads the initial USN values from file 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, 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_SLEEP_INTERVAL
public static final String PARAM_TIMEOUT
public static final String ATTR_CHANGE_TYPE
Entry
attribute name: "changeType"
public static final String CHANGE_TYPE_ADD
Entry
attribute value ("add") for
attribute with name: "changeType"
public static final String CHANGE_TYPE_MODIFY
Entry
attribute value ("modify") for
attribute with name: "changeType"
public static final String CHANGE_TYPE_DELETE
Entry
attribute value ("delete") for
attribute with name: "changeType"
public static final String PROP_START_USN
PROP_START_USN
public static final String PROP_END_USN
PROP_END_USN
public static final String PROP_CURRENT_USN_CREATED
PROP_CURRENT_USN_CREATED
public static final String PROP_CURRENT_USN_CHANGED
PROP_CURRENT_USN_CHANGED
Constructor Detail |
---|
public ADChangelogConnector()
Method Detail |
---|
public void initialize(Object aObj) throws 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. This Connector ignores
this parameter.
Exception
- If invalid Connector parameter values are supplied.protected void getStartUsnValues() throws Exception
(1) File name parameter is specified - backward compatibility mode;
(2) Persistent parameter - if the specified parameter is not found in the
store, the "Start at" value is used.
The method will reset the USN Parameters (using the
setZeroUsnValues()
private method) if the USN properties
file does not exists, could not be read or the properties in it could be
parsed.
Exception
- if an error working with the USN properties occurs.public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class LDAPConnector
Exception
- If cannot obtain the highestCommitedUsn from Active
Directory.protected int getHighestCommittedUsn() throws Exception
Exception
- If cannot retrieve the highest committed USN number.protected 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 retrieveEntry(String aFilter) throws NamingException
aFilter
- The LDAP filter for retrieving the Entry.
NamingException
- If error occurs while retrieving the Entry from Active
Directory.public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class LDAPConnector
Exception
- If retrieving the next "changed" Entry fails.ConnectorInterface.selectEntries()
protected Entry packUsnValues()
protected void storeUSNForNextSynch()
public Entry getUsnValues()
public void setUsnValues(Entry aUsnEntry) throws Exception
aUsnEntry
- the Entry
object containing the USN values.
Exception
- If the given Entry object does not contain the necessary USN
values.public String getVersion()
getVersion
in interface VersionInfoInterface
getVersion
in class LDAPConnector
public void reconnect(Object o) throws Exception
reconnect
in interface ConnectorInterface
reconnect
in class Connector
o
- User provided parameter, which is sent to initialize()
Exception
- if an error occurs.ConnectorInterface.initialize(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |