com.sap.mw.jco
Class JCO.Throughput

java.lang.Object
  |
  +--com.sap.mw.jco.JCO.Throughput
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
JCO

public static class JCO.Throughput
extends java.lang.Object
implements java.lang.Cloneable

JCO Throughput class. This class holds performance data.


Constructor Summary
JCO.Throughput()
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this timing object
 long getHandleRequestTime()
          Returns the time consumed by the server's handle request method
 long getMarshallTime()
          Returns the time consumed to marshall data from Java to C
 long getMiddlewareTime()
          Returns the time consumed by the middleware layer
 long getNumCalls()
          Returns the number of calls since the last reset
 long getNumReceivedBytes()
          Returns the no. of data bytes received from the remote system
 long getNumSentBytes()
          Returns the no. of data bytes sent to the remote system
 long getTotalTime()
          Returns the total execution time
 long getUnmarshallTime()
          Returns the time consumed to marshall data from C to Java
 void reset()
          Resets the class variables, i.e. zeros all variables.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JCO.Throughput

public JCO.Throughput()
Method Detail

clone

public java.lang.Object clone()
Returns a clone of this timing object

reset

public final void reset()
Resets the class variables, i.e. zeros all variables.

getNumCalls

public final long getNumCalls()
Returns the number of calls since the last reset
Returns:
the number of calls

getMarshallTime

public final long getMarshallTime()
Returns the time consumed to marshall data from Java to C
Returns:
time consumed for marhalling data (in milliseconds)

getUnmarshallTime

public final long getUnmarshallTime()
Returns the time consumed to marshall data from C to Java
Returns:
time consumed for unmarhalling data (in milliseconds)

getMiddlewareTime

public final long getMiddlewareTime()
Returns the time consumed by the middleware layer
Returns:
time consumed by the middleware layer (in milliseconds)

getHandleRequestTime

public final long getHandleRequestTime()
Returns the time consumed by the server's handle request method
Returns:
time consumed by the server's handle request method (in millisecons)

getTotalTime

public final long getTotalTime()
Returns the total execution time
Returns:
total execution time (in milliseconds)

getNumSentBytes

public final long getNumSentBytes()
Returns the no. of data bytes sent to the remote system
Returns:
no. of bytes sent to the remote system

getNumReceivedBytes

public final long getNumReceivedBytes()
Returns the no. of data bytes received from the remote system
Returns:
no. of bytes received from the remote system

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object