com.ibm.di.api.jmx.mbeans
Class AssemblyLineListenerBase

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.ibm.di.api.remote.impl.APIRemoteObject
                  extended by com.ibm.di.api.jmx.mbeans.AssemblyLineListenerBase
All Implemented Interfaces:
AssemblyLineListener, LogListener, java.io.Serializable, java.rmi.Remote, java.util.EventListener

public class AssemblyLineListenerBase
extends APIRemoteObject
implements AssemblyLineListener

This class is used to provide a bridge between custom defined listener Java class and the Server API notification mechanism. The custom defined listener Java class is not available on the Server side so it should be wrapped in AssemblyLineListenerBase class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
 void assemblyLineCycleDone(Entry aEntry)
          Called when specified entry drives a complete cycle trough the assembly line which AssemblyLineListener listens.
 void assemblyLineFinished()
          Called when the assembly line which AssemblyLineListener listens has finished.
static AssemblyLineListenerBase createInstance(AssemblyLineListener aListener)
          Creates new instance of this class.
static AssemblyLineListenerBase createInstance(AssemblyLineListener aListener, boolean aSSLon)
          Creates new instance of this class.
static AssemblyLineListenerBase createInstance(AssemblyLineListener aListener, boolean aSSLon, boolean aUseCustomProperties)
          Creates new instance of this class.
 void messageLogged(java.lang.String aMessage)
          Called right after the specified message is logged.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

assemblyLineCycleDone

public void assemblyLineCycleDone(Entry aEntry)
                           throws DIException,
                                  java.rmi.RemoteException
Called when specified entry drives a complete cycle trough the assembly line which AssemblyLineListener listens.

Specified by:
assemblyLineCycleDone in interface AssemblyLineListener
Parameters:
aEntry - the entry object
Throws:
DIException - if Runtime or Security exception occurs
java.rmi.RemoteException - if a communication-related exception occurs.

assemblyLineFinished

public void assemblyLineFinished()
                          throws DIException,
                                 java.rmi.RemoteException
Called when the assembly line which AssemblyLineListener listens has finished.

Specified by:
assemblyLineFinished in interface AssemblyLineListener
Throws:
DIException - if Runtime or Security exception occurs
java.rmi.RemoteException - if a communication-related exception occurs.

messageLogged

public void messageLogged(java.lang.String aMessage)
                   throws DIException,
                          java.rmi.RemoteException
Called right after the specified message is logged.

Specified by:
messageLogged in interface LogListener
Parameters:
aMessage - the message text
Throws:
DIException - If an error is encountered.
java.rmi.RemoteException - if a communication-related exception occurs.

createInstance

public static AssemblyLineListenerBase createInstance(AssemblyLineListener aListener,
                                                      boolean aSSLon)
                                               throws java.lang.Exception
Creates new instance of this class.

Parameters:
aListener - AssemblyLineListener object
aSSLon - if true SSL is used
Returns:
AssemblyLineListenerBase object
Throws:
java.lang.Exception - if error occurred while creating instance.
java.rmi.RemoteException - if a communication-related exception occurs.

createInstance

public static AssemblyLineListenerBase createInstance(AssemblyLineListener aListener)
                                               throws java.lang.Exception
Creates new instance of this class.

Parameters:
aListener - AssemblyLineListener object
Returns:
AssemblyLineListenerBase object
Throws:
java.lang.Exception - if error occurred while creating instance.
java.rmi.RemoteException - if a communication-related exception occurs.

createInstance

public static AssemblyLineListenerBase createInstance(AssemblyLineListener aListener,
                                                      boolean aSSLon,
                                                      boolean aUseCustomProperties)
                                               throws java.lang.Exception
Creates new instance of this class.

Parameters:
aListener - AssemblyLineListener object
aSSLon - if true SSL is used
aUseCustomProperties - if true user custom settings is used
Returns:
AssemblyLineListenerBase object
Throws:
java.lang.Exception - if error occurred while creating instance.
java.rmi.RemoteException - if a communication-related exception occurs.