com.sap.conn.jco.ext
Interface ServerPassportManager


public interface ServerPassportManager

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

See Also:
Environment.registerServerPassportManager(com.sap.conn.jco.ext.ServerPassportManager), Environment.removeServerPassportManager(com.sap.conn.jco.ext.ServerPassportManager)

Method Summary
 void requestFinished(int serverID, long sendBytes, long receivedBytes)
          JCo will call this method after a function processing within the server has been finished, regardless of the success or failure of the processing.
 void requestStarted(int serverID, com.sap.jdsr.writer.DsrIPassport passport, java.lang.String function_name)
          JCo will call this method whenever it receives a request that comes along with an DSR passport.
 

Method Detail

requestStarted

void requestStarted(int serverID,
                    com.sap.jdsr.writer.DsrIPassport passport,
                    java.lang.String function_name)
JCo will call this method whenever it receives a request that comes along with an DSR passport. The ServerPassportManager can pass along the DSR passport to applications or write itself processing information to DSR records using the given passport.

Parameters:
serverID - an identifier for the current server as int - unique within the current JVM
passport - the DSR passport that was passed to the JCo Server via RFC
function_name - the name of the function module that should be invoked

requestFinished

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

Parameters:
serverID - an identifier for the current server 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.