|
|||||||||||
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.NetscapeChangelogConnector
public class NetscapeChangelogConnector
The NetscapeChangelogConnector is a specialized instance of the LDAP Connector. In earlier versions of iPlanet Directory Server, the change log was accessible through LDAP. Now the changelog is intended for internal use by the server only. If you have applications that must read the changelog, you will need to use the iPlanet Retro Change Log Plug-in for backward compatibility.
Field Summary | |
---|---|
static String |
ATTRIBUTE_CHANGENUMBER
Attribute name: "changenumber" |
static String |
ATTRIBUTE_CPR
Attribute name: "changeNumber" |
static String |
PARAM_BATCH_RETRIEVAL
Parameter Name: "batchRetrieval" |
static String |
PARAM_DELIVERY_MODE
Parameter Name: "deliveryMode" |
static String |
PARAM_LDAP_SEARCH_BASE
Parameter Name: "ldapSearchBase" |
static String |
PARAM_PAGE_SIZE
Parameter Name: "pageSize" |
static String |
PARAM_SLEEP_INTERVAL
Parameter Name: "nsSleepInterval" |
static String |
PARAM_START_AT
Parameter Name: "nsChangenumber" |
static String |
PARAM_STORE_PARAM_NAME
Parameter Name: "iteratorStateKey" |
static String |
PARAM_TIMEOUT
Parameter Name: "nsTimeout" |
static 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 | |
---|---|
NetscapeChangelogConnector()
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 Directory Server. |
Object |
getStateKeyObject()
Retrieves state key. |
int |
getStateKeySaveMethod()
Retrieves the method for storing StateKey. |
String |
getVersion()
Version information. |
void |
initialize(Object aObject)
Initializes the connector. |
void |
namingExceptionThrown(NamingExceptionEvent aEvent)
Callback method for handling NamingEnumeration s |
void |
objectAdded(NamingEvent aEvent)
Callback method called when an object is added. |
void |
objectChanged(NamingEvent aEvent)
Callback method called when an object is changed. |
void |
objectRemoved(NamingEvent aEvent)
Callback method called when an object is removed. |
void |
objectRenamed(NamingEvent aEvent)
Callback method called when an object is renamed. |
void |
reconnect(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 String PARAM_LDAP_SEARCH_BASE
public static final String PARAM_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 PARAM_PAGE_SIZE
public static final String PARAM_USE_NOTIFICATIONS
public static final String PARAM_BATCH_RETRIEVAL
public static final String PARAM_DELIVERY_MODE
public static final String ATTRIBUTE_CPR
public static final String ATTRIBUTE_CHANGENUMBER
Constructor Detail |
---|
public NetscapeChangelogConnector()
Method Detail |
---|
public void initialize(Object aObject) throws Exception
initialize
in interface ConnectorInterface
initialize
in class ChangelogConnector
aObject
- ignored.
Exception
- if an error occurs.public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class LDAPConnector
Exception
- if an error occurs.public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class LDAPConnector
Exception
- if an error occurs.ConnectorInterface.selectEntries()
public int getStateKeySaveMethod() throws Exception
getStateKeySaveMethod
in interface ChangelogInterface
Exception
- -
neverChangelogInterface.SAVE_STATE_AFTER_READ
,
ChangelogInterface.SAVE_STATE_END_OF_CYCLE
,
ChangelogInterface.SAVE_STATE_MANUAL
public void saveStateKey() throws Exception
ChangelogInterface.SAVE_STATE_AFTER_READ
saveStateKey
in interface ChangelogInterface
Exception
- -
neverpublic Object getStateKeyObject() throws Exception
getStateKeyObject
in interface ChangelogInterface
Long
object.
Exception
- -
neverpublic void terminate()
terminate
in interface ConnectorInterface
terminate
in class LDAPConnector
public void objectAdded(NamingEvent aEvent)
objectAdded
in interface NamespaceChangeListener
aEvent
- the event transport object.public void objectRemoved(NamingEvent aEvent)
objectRemoved
in interface NamespaceChangeListener
aEvent
- the event transport object.public void objectRenamed(NamingEvent aEvent)
objectRenamed
in interface NamespaceChangeListener
aEvent
- the event transport object.public void objectChanged(NamingEvent aEvent)
objectChanged
in interface ObjectChangeListener
aEvent
- the event transport object.public void namingExceptionThrown(NamingExceptionEvent aEvent)
NamingEnumeration
s
namingExceptionThrown
in interface NamingListener
aEvent
- the naming exception event objectpublic String getVersion()
getVersion
in interface VersionInfoInterface
getVersion
in class ChangelogConnector
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 |