java.lang.Objectcom.microfocus.cobol.connector.transport.CobolConnection
com.microfocus.cobol.connector.transport.BINPCall
Top Level Binary Protocol adapter for PureCobolBean
| Field Summary | |
protected ByteArrayOutputStream |
byteOutputStream
|
protected static boolean |
debug
|
protected byte |
defaultDigestType
|
protected DataInputStream |
dis
|
protected DataOutputStream |
dos
|
| Fields inherited from class com.microfocus.cobol.connector.transport.CobolConnection |
OPTYPE_CANCEL, OPTYPE_COBCALL, OPTYPE_COBLOAD, OPTYPE_DISPOSE, OPTYPE_PING, OPTYPE_SETISINITIAL, OPTYPE_TRAN_LOCAL_COMMIT, OPTYPE_TRAN_LOCAL_ROLLBACK, OPTYPE_TRAN_LOCAL_START, OPTYPE_TRAN_XA_COMMIT, OPTYPE_TRAN_XA_END, OPTYPE_TRAN_XA_FORGET, OPTYPE_TRAN_XA_PREPARE, OPTYPE_TRAN_XA_RECOVER, OPTYPE_TRAN_XA_ROLLBACK, OPTYPE_TRAN_XA_START |
| Constructor Summary | |
BINPCall()
Constructor adapter for a BINPCall |
|
| Method Summary | |
abstract boolean |
canRetryOnFailure()
|
void |
connect()
Method declaration |
void |
disconnect()
Disconnect a BINP connection. |
Object |
execute(int operation,
String className,
String programName,
Class retCodeType,
Object inParameters,
Object outParameters)
Proxy execute() handler for BINP. |
boolean |
getIsInitial()
Method declaration |
boolean |
isActive()
is BINP connection active, interupts the execution flow with a exception if the connection is not active. |
abstract DataInputStream |
readMessageBundle()
Method declaration |
protected Object |
readStatusMessage()
Reads a status message form the current stream, throws a Exception if required, otherwise the return-code is returned |
protected Object |
readStatusMessage(boolean allowEmptyPacketsFromServer)
Reads a status message form the current stream, throws a Exception if required, otherwise the return-code is returned |
abstract byte[] |
writeMessageBundle()
Method declaration |
| Methods inherited from class com.microfocus.cobol.connector.transport.CobolConnection |
Activate, begin, commit, createConnection, getConnectionProperty, getConnectionProperty, getServerURN, getSessionID, Passivate, reconnect, registerConnectionHandler, removeConnectionProperty, rollback, setConnectionProperty, xa_commit, xa_commit, xa_end, xa_end, xa_forget, xa_forget, xa_prepare, xa_recover, xa_recover, xa_rollback, xa_rollback, xa_start, xa_start |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.microfocus.cobol.connector.transport.LocalTransactionConnector |
begin, commit, rollback |
| Methods inherited from interface com.microfocus.cobol.connector.transport.XATransactionConnector |
xa_commit, xa_end, xa_forget, xa_prepare, xa_recover, xa_rollback, xa_start |
| Field Detail |
protected static final boolean debug
protected transient DataOutputStream dos
protected transient ByteArrayOutputStream byteOutputStream
protected transient DataInputStream dis
protected byte defaultDigestType
| Constructor Detail |
public BINPCall()
| Method Detail |
public void disconnect()
throws com.microfocus.cobol.CobolException
disconnect in class CobolConnectioncom.microfocus.cobol.CobolException
public void connect()
throws com.microfocus.cobol.CobolException
connect in class CobolConnectioncom.microfocus.cobol.CobolException
public boolean isActive()
throws com.microfocus.cobol.CobolException
isActive in class CobolConnectioncom.microfocus.cobol.CobolException
public Object execute(int operation,
String className,
String programName,
Class retCodeType,
Object inParameters,
Object outParameters)
throws com.microfocus.cobol.CobolException,
Exception
execute in class CobolConnectionoperation - className - programName - retCodeType - inParameters - outParameters -
com.microfocus.cobol.CobolException
Exception
protected Object readStatusMessage()
throws Exception
Exception
protected Object readStatusMessage(boolean allowEmptyPacketsFromServer)
throws Exception
Exceptionpublic boolean getIsInitial()
public abstract DataInputStream readMessageBundle()
throws IOException
IOException
public abstract byte[] writeMessageBundle()
throws IOException
IOExceptionpublic abstract boolean canRetryOnFailure()
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.