|
||||||||||
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.ChangelogConnector
com.ibm.di.connector.IDSChangelogConnector
public class IDSChangelogConnector
The IDSChangelogConnector provides a way to to detect changes in a IBM Tivoli Directory Server. The Connector connects to the underline directory through the JNDI interface and gets the changes done on a specific context. The Connector regularly saves current state into the System Store to avoid duplications when retrieving Entries.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_CHANGENUMBER
Attribute name: "changenumber" |
static java.lang.String |
ATTRIBUTE_CPR
Attribute name: "changeNumber" |
static int |
CHANGE_ALL
The type of change that we will get notified for. |
static java.lang.String |
EVT_REG_OID
The id of the specific control supported by IBM TDS, used for registering to the server. |
static java.lang.String |
EVT_UNREG_OID
The id of the specific control supported by IBM TDS, used for unregistering from the server. |
static int |
PAGE_SIZE_DEFAULT_VALUE
The default value used for page size. |
static java.lang.String |
PARAM_BATCH_RETRIEVAL
Parameter Name: "batchRetrieval" |
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: "nsSleepInterval" |
static java.lang.String |
PARAM_START_AT
Parameter Name: "nsChangenumber" |
static java.lang.String |
PARAM_STORE_PARAM_NAME
Parameter Name: "iteratorStateKey" |
static java.lang.String |
PARAM_TIMEOUT
Parameter Name: "nsTimeout" |
static java.lang.String |
PARAM_USE_NOTIFICATIONS
Parameter Name: "useNotifications" |
Fields inherited from class com.ibm.di.connector.ChangelogConnector |
---|
bothSeparated, defaultMerge, mLdifParser, onlyChanges, PARAM_MERGE_MODE |
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 | |
---|---|
IDSChangelogConnector()
Constructs this object and sets it supported mode. |
Method Summary | |
---|---|
Entry |
getNextEntry()
This method will get the next change if the number of changes is smaller than the actual changes, that were done on the TDS. |
java.lang.Object |
getStateKeyObject()
Retrieves the state key object. |
int |
getStateKeySaveMethod()
Retrieves the method for storing StateKey. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object aObject)
Initializes the connector. |
void |
namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
Callback method for handling NamingEnumeration s |
void |
notificationReceived(javax.naming.ldap.UnsolicitedNotificationEvent evt)
Callback method called when a change is made. |
void |
reconnect(java.lang.Object o)
Reconnect to the underlying data source |
void |
saveStateKey()
Stores the USN values for the next synchronization. |
void |
selectEntries()
Prepares the connector for listening to change notifications. |
void |
terminate()
Close the connection to the LDAP server |
Methods inherited from class com.ibm.di.connector.ChangelogConnector |
---|
parseEntry, querySchema |
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, terminateServer |
Field Detail |
---|
public static final java.lang.String PARAM_LDAP_SEARCH_BASE
public static final java.lang.String PARAM_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 PARAM_BATCH_RETRIEVAL
public static final java.lang.String ATTRIBUTE_CPR
public static final java.lang.String ATTRIBUTE_CHANGENUMBER
public static final int PAGE_SIZE_DEFAULT_VALUE
public static final java.lang.String EVT_REG_OID
public static final java.lang.String EVT_UNREG_OID
public static final int CHANGE_ALL
Constructor Detail |
---|
public IDSChangelogConnector()
Method Detail |
---|
public void initialize(java.lang.Object aObject) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class ChangelogConnector
aObject
- ignored.
java.lang.Exception
- if an error occurs.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class LDAPConnector
java.lang.Exception
- if an error occurs.public Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class LDAPConnector
java.lang.Exception
- if an error occurs.ConnectorInterface.selectEntries()
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
Long
object.
java.lang.Exception
- -
neverpublic void terminate()
terminate
in interface ConnectorInterface
terminate
in class LDAPConnector
public void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
NamingEnumeration
s
namingExceptionThrown
in interface javax.naming.event.NamingListener
evt
- the naming exception event objectpublic void notificationReceived(javax.naming.ldap.UnsolicitedNotificationEvent evt)
notificationReceived
in interface javax.naming.ldap.UnsolicitedNotificationListener
evt
- the event transport objectpublic java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
getVersion
in class ChangelogConnector
public void reconnect(java.lang.Object o) throws java.lang.Exception
reconnect
in interface ConnectorInterface
reconnect
in class Connector
o
- User provided parameter, which is sent to initialize()
java.lang.Exception
- if an error occurs.ConnectorInterface.initialize(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |