com.ibm.di.connector.sapr3.aleidoc
Class SapIDocServerListener

java.lang.Object
  extended by com.ibm.di.connector.sapr3.aleidoc.SapIDocServerListener
All Implemented Interfaces:
com.sap.mw.jco.JCO.ServerErrorListener, com.sap.mw.jco.JCO.ServerExceptionListener, com.sap.mw.jco.JCO.ServerStateChangedListener, com.sap.mw.jco.JCO.TraceListener

public class SapIDocServerListener
extends Object
implements com.sap.mw.jco.JCO.ServerExceptionListener, com.sap.mw.jco.JCO.ServerErrorListener, com.sap.mw.jco.JCO.ServerStateChangedListener, com.sap.mw.jco.JCO.TraceListener

Implementation of JCo.Server listeners for internal middleware exceptions, errors, state changes and trace messages.


Constructor Summary
SapIDocServerListener(SapALEIDocConnector conn)
          Only available constructor.
 
Method Summary
 void serverErrorOccurred(com.sap.mw.jco.JCO.Server srvr, Error error)
          Overridden method of JCoIDoc.ServerErrorListener.
 void serverExceptionOccurred(com.sap.mw.jco.JCO.Server srvr, Exception ex)
          Overridden method of JCoIDoc.ServerExceptionListener.
 void serverStateChangeOccurred(com.sap.mw.jco.JCO.Server srvr, int old_state, int new_state)
          Overridden method of JCoIDoc.ServerStateChangedListener Listens for JCo Server state changes.
 void trace(int trcLevel, String trcMessage)
          Overridden method of JCoIDoc.TraceListener Listens for JCo Server internal trace messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SapIDocServerListener

public SapIDocServerListener(SapALEIDocConnector conn)
Only available constructor.

Parameters:
conn - - The Connector providing the log and trace mechanisims.
Method Detail

serverExceptionOccurred

public void serverExceptionOccurred(com.sap.mw.jco.JCO.Server srvr,
                                    Exception ex)
Overridden method of JCoIDoc.ServerExceptionListener. Listens for JCo middleware internal exceptions.

Specified by:
serverExceptionOccurred in interface com.sap.mw.jco.JCO.ServerExceptionListener
Parameters:
srvr - - The JCo Server who throw the exception.
ex - - The internal JCo exception.

serverErrorOccurred

public void serverErrorOccurred(com.sap.mw.jco.JCO.Server srvr,
                                Error error)
Overridden method of JCoIDoc.ServerErrorListener. Listens for JCo middleware internal error messages.

Specified by:
serverErrorOccurred in interface com.sap.mw.jco.JCO.ServerErrorListener
Parameters:
srvr - - The JCo Server who throw the exception.
error - - The internal JCo error message.

serverStateChangeOccurred

public void serverStateChangeOccurred(com.sap.mw.jco.JCO.Server srvr,
                                      int old_state,
                                      int new_state)
Overridden method of JCoIDoc.ServerStateChangedListener Listens for JCo Server state changes. Some states are not exposed and so a valid message is not available, only the state identifier.

Specified by:
serverStateChangeOccurred in interface com.sap.mw.jco.JCO.ServerStateChangedListener
Parameters:
srvr - - The JCo Server who throw the exception.
old_state - - The previous Server state.
new_state - - The new Server state.

trace

public void trace(int trcLevel,
                  String trcMessage)
Overridden method of JCoIDoc.TraceListener Listens for JCo Server internal trace messages.

Specified by:
trace in interface com.sap.mw.jco.JCO.TraceListener
Parameters:
trcLevel - - The trace level.
trcMessage - - The trace message.