|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.mw.jco.JCO.Connection
JCO Client object base class. This class will never be instantiated directly but serves as a base class for the JCO.Client and JCO.Server classes.
For com.sap.mw.jco.rfc.MiddlewareRFC, i.e. the default RFC layer, the additional properties supported by connection are:
| jco.cpc.ignore_icons | true, if codepage converter should ignore SAP icons |
JCO.Client,
JCO.Server| Field Summary | |
protected JCO.Attributes |
attributes
|
protected long |
codepage_converter
|
protected Object |
conn_object
|
protected String |
conn_params
|
protected int |
connection_cpc_mode
|
protected com.sap.mw.jco.util.Dsr |
dsr_monitor
|
protected com.sap.mw.jco.util.Jarm.Monitor |
jarm_monitor
|
protected long |
last_active_timestamp
|
protected long |
num_received_bytes
Total no. of bytes received from the remote system by last call |
protected long |
num_sent_bytes
Total no. of bytes send to the remote system by last call |
protected byte[] |
passport_bytes
byte prasentation of dsr passport in net byte order (for JNI) |
protected JCO.Pool |
pool
|
protected Properties |
properties
|
protected long |
rfc_handle
|
protected String |
rfm_name
rfm name that is called or requested |
protected long |
start_time
Time at that last call started |
protected byte |
state
|
protected JCO.Throughput |
throughput
|
protected long |
time_handle_request
Time needed by the server's request handler for last call |
protected long |
time_middleware
Time for calling native libRfc calls |
protected long |
time_total
Total time for a last call |
| Constructor Summary | |
protected |
JCO.Connection()
This class will never be instantiated directly |
| Method Summary | |
abstract void |
abort(String message)
Aborts the connection to the remote system, i.e. |
protected abstract void |
beginCall()
Notify about begin of call processing |
protected void |
checkProperties()
Checks for non rfc or connection related properties. |
Object |
clone()
Returns a clone of this connection. |
abstract void |
disconnect()
Closes the connection to the remote system. |
protected abstract void |
endCall()
Notify about end of call processing |
protected void |
finalize()
Called upon garbage collection |
abstract JCO.Attributes |
getAttributes()
Returns the attributes of the RFC connection. |
long |
getConnectionHandle()
Returns the handle of connection. |
Properties |
getProperties()
Returns the current connection parameters as a property list |
String |
getProperty(String key)
Returns the property for the given key or null if not found |
String[][] |
getPropertyInfo()
Returns the property info for the connection. |
protected byte |
getState()
Returns the state of the connection |
JCO.Throughput |
getThroughput()
Returns the throughput object in which holds performance data. |
boolean |
getTrace()
Returns whether trace is enabled or not. |
protected JCO.Connection |
hideConnection()
|
abstract boolean |
isAlive()
Checks whether this connection is alive |
boolean |
isValid()
Checks whether this connection is valid |
protected void |
setProperty(String key,
String value)
Sets the property for the given key. |
protected void |
setState(byte state)
Sets the state of the connection |
void |
setThroughput(JCO.Throughput throughput)
Sets the throughput object in which performance data for the next will be stored. |
void |
setTrace(boolean trace)
Enables/disables trace |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String conn_params
protected Object conn_object
protected Properties properties
protected JCO.Attributes attributes
protected com.sap.mw.jco.util.Jarm.Monitor jarm_monitor
protected com.sap.mw.jco.util.Dsr dsr_monitor
protected byte[] passport_bytes
protected long rfc_handle
protected long codepage_converter
protected int connection_cpc_mode
protected byte state
protected long last_active_timestamp
protected JCO.Throughput throughput
protected long start_time
protected long time_handle_request
protected long time_total
protected long num_sent_bytes
protected long num_received_bytes
protected long time_middleware
protected String rfm_name
protected JCO.Pool pool
| Constructor Detail |
protected JCO.Connection()
| Method Detail |
public long getConnectionHandle()
public Object clone()
protected JCO.Connection hideConnection()
protected void finalize()
throws Throwable
Throwablepublic final Properties getProperties()
public String[][] getPropertyInfo()
public final String getProperty(String key)
protected void setProperty(String key,
String value)
public boolean isValid()
protected byte getState()
protected void setState(byte state)
state - the new state of the connectionpublic boolean getTrace()
public void setTrace(boolean trace)
trace - if true enables the trace and disables it otherwise.public final JCO.Throughput getThroughput()
JCO.Throughputpublic final void setThroughput(JCO.Throughput throughput)
throughput - the thoughput object in which to store performance data or
null if not interested in such information.JCO.Throughputpublic abstract JCO.Attributes getAttributes()
JCO.Exception - thrown if the attributes could not be retrieved.JCO.Attributespublic abstract void disconnect()
public abstract void abort(String message)
message - the final message that will be sent to the remote system.public abstract boolean isAlive()
protected abstract void beginCall()
protected abstract void endCall()
protected void checkProperties()
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||