com.ibm.di.eventhandler
Class IBMLDAPSwitchboard

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.server.Monitor
          extended by com.ibm.di.eventhandler.Switchboard
              extended by com.ibm.di.eventhandler.IBMLDAPSwitchboard
All Implemented Interfaces:
VersionInfoInterface, ActionListener, Runnable, EventListener, NamingListener, UnsolicitedNotificationListener

public class IBMLDAPSwitchboard
extends Switchboard
implements UnsolicitedNotificationListener


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IBMLDAPSwitchboard()
           
 
Method Summary
 void close()
           
 String getVersion()
          Return version information
 void initListener()
          Initializes the EventHandler.
 void namingExceptionThrown(NamingExceptionEvent evt)
           
 void notificationReceived(UnsolicitedNotificationEvent evt)
          Called when a unsolicited notification is made.
 void run()
           
 
Methods inherited from class com.ibm.di.eventhandler.Switchboard
actionPerformed, addEventListener, debug, debugBreak, debugMsg, dispatchEvent, dump, dumpEntry, dumpProperties, enableDebug, exitProcess, exitProcess, exitRequested, fireEvent, getConfiguration, getDebug, getDebugger, getEventHandlerListener, getExitMessage, getExitRequested, getInterceptor, getLog, getLogCategory, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParam, getParent, getProperty, getRecording, getScriptEngine, getServer, getStats, getTaskName, logmsg, logmsg, removeEventHandlerListener, removeEventListener, setConfiguration, setDebug, setDebugger, setEventHandlerListener, setExitMessage, setExitRequested, setInterceptor, setLog, setLogCategory, setParam, setParent, setProperty, setRecording, start
 
Methods inherited from class com.ibm.di.server.Monitor
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningEHs, setMonitorMessage, threadStarted, threadStopped
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IBMLDAPSwitchboard

public IBMLDAPSwitchboard()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

close

public void close()
Overrides:
close in class Switchboard

initListener

public void initListener()
                  throws Exception
Initializes the EventHandler. Creates LDAP contexts for reading the changelog, for registering event handlers and registers the event handler into the LDAP server. Checks for new records in the changelog and if such exist, iterates through them.

Throws:
Exception

namingExceptionThrown

public void namingExceptionThrown(NamingExceptionEvent evt)
Specified by:
namingExceptionThrown in interface NamingListener

notificationReceived

public void notificationReceived(UnsolicitedNotificationEvent evt)
Called when a unsolicited notification is made. retrieves the next changelog entry from the changelog and passes it to the event dispatcher, if such an entry exists

Specified by:
notificationReceived in interface UnsolicitedNotificationListener

getVersion

public String getVersion()
Return version information

Specified by:
getVersion in interface VersionInfoInterface