|
Sun Adapter for SAP BAPI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sap.mw.jco.JCO.Connection
com.sap.mw.jco.JCO.Server
com.stc.connector.sapbapiadapter.sapbapi.SAPServer
public abstract class SAPServer
An abstract class to define the common methods required by a SAP BAPI and IDOC servers for inbound transactions from SAP
| Field Summary | |
|---|---|
protected ConnectorServer |
cs
ConnectorServer from extended classes. |
protected TIDManager |
tidManager
|
protected boolean |
tRFCCallInProgress
Flag to indicate a tRFC call is in-progress. |
| Fields inherited from class com.sap.mw.jco.JCO.Server |
|---|
AUTHORIZATION_MODE_BASIC, AUTHORIZATION_MODE_SNC, FUNCTION_MODEL, m_middleware, REQUEST_RESPONSE_MODEL |
| Fields inherited from class com.sap.mw.jco.JCO.Connection |
|---|
attributes, codepage_converter, conn_object, conn_params, connection_cpc_mode, dsr_monitor, jarm_monitor, last_active_timestamp, num_received_bytes, num_sent_bytes, passport_bytes, pool, properties, rfc_handle, rfm_name, start_time, state, throughput, time_handle_request, time_middleware, time_total |
| Constructor Summary | |
|---|---|
SAPServer(java.util.Properties properties,
com.sap.mw.jco.IRepository repository,
com.stc.connector.management.util.ObjectReference mMonitor)
|
|
| Method Summary | |
|---|---|
protected void |
checkInTrfcMode()
Ensures the server is in tRFC mode. |
protected void |
finalize()
DOCUMENT ME! |
java.lang.String |
getID()
Retrieves the RFC Server identification string. |
java.lang.String |
getStateString(int state)
Describes the RFC Server state. |
java.lang.String |
getTID()
Retrieves the current transaction ID if in transaction mode. |
boolean |
isTRFCCallInProgress()
Tests whether a Transactional RFC (tRFC) call is in progress. |
protected boolean |
onCheckTID(java.lang.String tid)
Override the standard onCheckTID method in the JCO.Server class. |
protected void |
onCommit(java.lang.String tid)
Override the standard onCommit method in the JCO.Server class. |
protected void |
onConfirmTID(java.lang.String tid)
Override the standard onConfirmTID method in the JCO.Server class. |
protected void |
onRollback(java.lang.String tid)
Override the standard onRollback method in the JCO.Server class. |
void |
serverErrorOccurred(com.sap.mw.jco.JCO.Server server,
java.lang.Error error)
Called when a RFC Server Exception has occurred. |
void |
serverExceptionOccurred(com.sap.mw.jco.JCO.Server server,
java.lang.Exception exception)
Called when a RFC Server Exception has occurred. |
void |
serverStateChangeOccurred(com.sap.mw.jco.JCO.Server server,
int oldState,
int newState)
Called when the RFC Server internal state changes. |
protected void |
setConnServer(ConnectorServer connServer)
DOCUMENT ME! |
void |
setTID(java.lang.String tid)
Sets the current transaction ID. |
void |
setTIDManager(TIDManager tidMgr)
Sets the Transactional ID Manager for this server. |
| Methods inherited from class com.sap.mw.jco.JCO.Server |
|---|
abort, beginCall, checkAuthorization, disconnect, dispatchRequest, endCall, getAttributes, getCallModel, getDsrPassport, getFunction, getGWHost, getGWServ, getMiddlewareImplementation, getProgID, getPropertyInfo, getRepository, getServerInterface, getState, getThread, getTrace, handleRequest, handleRequest, isAlive, listen, run, setCallModel, setProperty, setRepository, setState, setThread, setTrace, start, stop, suspend |
| Methods inherited from class com.sap.mw.jco.JCO.Connection |
|---|
checkProperties, clone, getConnectionHandle, getProperties, getProperty, getThroughput, hideConnection, isValid, setThroughput |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConnectorServer cs
protected boolean tRFCCallInProgress
protected TIDManager tidManager
| Constructor Detail |
|---|
public SAPServer(java.util.Properties properties,
com.sap.mw.jco.IRepository repository,
com.stc.connector.management.util.ObjectReference mMonitor)
| Method Detail |
|---|
protected void setConnServer(ConnectorServer connServer)
protected void finalize()
finalize in class com.sap.mw.jco.JCO.Connectionpublic boolean isTRFCCallInProgress()
protected boolean onCheckTID(java.lang.String tid)
throws com.sap.mw.jco.JCO.Exception
onCheckTID in class com.sap.mw.jco.JCO.Servertid - Transaction ID to check.
com.sap.mw.jco.JCO.Exceptionprotected void onCommit(java.lang.String tid)
onCommit in class com.sap.mw.jco.JCO.Servertid - Transaction ID to commit.protected void onConfirmTID(java.lang.String tid)
onConfirmTID in class com.sap.mw.jco.JCO.Servertid - Transaction ID to confirm.protected void onRollback(java.lang.String tid)
onRollback in class com.sap.mw.jco.JCO.Servertid - Transaction ID to rollback.protected void checkInTrfcMode()
com.sap.mw.jco.JCO.AbapException - When not in tRFC Server mode.public void setTIDManager(TIDManager tidMgr)
tidMgr - the Transactional ID Manager.
public void serverErrorOccurred(com.sap.mw.jco.JCO.Server server,
java.lang.Error error)
serverErrorOccurred in interface com.sap.mw.jco.JCO.ServerErrorListenerserver - The failing RFC Server.error - The Error that has occurred.
public void serverExceptionOccurred(com.sap.mw.jco.JCO.Server server,
java.lang.Exception exception)
serverExceptionOccurred in interface com.sap.mw.jco.JCO.ServerExceptionListenerserver - The failing RFC Serverexception - The Exception that has occurred.
public void serverStateChangeOccurred(com.sap.mw.jco.JCO.Server server,
int oldState,
int newState)
serverStateChangeOccurred in interface com.sap.mw.jco.JCO.ServerStateChangedListenerserver - The RFC Server.oldState - The old state.newState - The new state.public java.lang.String getStateString(int state)
state - State of the RFC Server.
public java.lang.String getID()
public void setTID(java.lang.String tid)
tid - TID string.public java.lang.String getTID()
|
Sun Adapter for SAP BAPI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||