com.sap.conn.jco.ext
Interface ClientPassportManager


public interface ClientPassportManager

The JDSR Passport Manager Interface for client connections to an SAP ABAP application server backend. The registered instance, e.g. the passport manager on an SAP application Server Java, will be notified through callStarted() before a request is sent to the backend. After the request has been finished callFinished() will be called.

See Also:
Environment.registerClientPassportManager(com.sap.conn.jco.ext.ClientPassportManager), Environment.removeClientPassportManager(com.sap.conn.jco.ext.ClientPassportManager)

Method Summary
 void callFinished(int clientID, long sendBytes, long receivedBytes)
          JCo will call this method after a function call has been finished, regardless of the success or failure of the function module call.
 com.sap.jdsr.writer.DsrIPassport callStarted(int clientID, java.lang.String systemID, java.lang.String function_name)
          JCo will call this method before any function call.
 

Method Detail

callStarted

com.sap.jdsr.writer.DsrIPassport callStarted(int clientID,
                                             java.lang.String systemID,
                                             java.lang.String function_name)
JCo will call this method before any function call. The registered Client Passport Manager can provide then a fitting DSR passport or return null, if no passport should be used for the current call.

Parameters:
clientID - an identifier for the current client as int - unique within the current JVM
systemID - the target system in which the function module is invoked
function_name - the function module to be invoked
Returns:
a com.sap.jdsr.writer.DsrIPassport instance representing the DSR passport that should be used for the call

callFinished

void callFinished(int clientID,
                  long sendBytes,
                  long receivedBytes)
JCo will call this method after a function call has been finished, regardless of the success or failure of the function module call. The Client Passport Manager can use the clientID in order to associate amount of data exchanged with the originally provided DSR passport

Parameters:
clientID - an identifier for the current client as int - unique within the current JVM
sendBytes - the number of bytes that were sent to the backend, if available
receivedBytes - the number of bytes that were received from the backend if available


Copyright © 2008-2014 SAP AG. All Rights Reserved.