com.microfocus.cobol.connector.transport
Class BINPCall

java.lang.Object
  extended bycom.microfocus.cobol.connector.transport.CobolConnection
      extended bycom.microfocus.cobol.connector.transport.BINPCall
All Implemented Interfaces:
LocalTransactionConnector, Serializable, XATransactionConnector
Direct Known Subclasses:
BINPLocalCall, BINPRecordSession, BINPRemoteCall, BINPSharedMemoryCall, BINPSSLRemoteCall

public abstract class BINPCall
extends CobolConnection
implements LocalTransactionConnector, XATransactionConnector, Serializable

Top Level Binary Protocol adapter for PureCobolBean

See Also:
Serialized Form

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

debug

protected static final boolean debug
See Also:
Constant Field Values

dos

protected transient DataOutputStream dos

byteOutputStream

protected transient ByteArrayOutputStream byteOutputStream

dis

protected transient DataInputStream dis

defaultDigestType

protected byte defaultDigestType
Constructor Detail

BINPCall

public BINPCall()
Constructor adapter for a BINPCall

Method Detail

disconnect

public void disconnect()
                throws com.microfocus.cobol.CobolException
Disconnect a BINP connection.

Overrides:
disconnect in class CobolConnection
Throws:
com.microfocus.cobol.CobolException

connect

public void connect()
             throws com.microfocus.cobol.CobolException
Method declaration

Overrides:
connect in class CobolConnection
Throws:
com.microfocus.cobol.CobolException

isActive

public boolean isActive()
                 throws com.microfocus.cobol.CobolException
is BINP connection active, interupts the execution flow with a exception if the connection is not active.

Specified by:
isActive in class CobolConnection
Returns:
a boolean
Throws:
com.microfocus.cobol.CobolException

execute

public Object execute(int operation,
                      String className,
                      String programName,
                      Class retCodeType,
                      Object inParameters,
                      Object outParameters)
               throws com.microfocus.cobol.CobolException,
                      Exception
Proxy execute() handler for BINP.

Specified by:
execute in class CobolConnection
Parameters:
operation -
className -
programName -
retCodeType -
inParameters -
outParameters -
Returns:
int
Throws:
com.microfocus.cobol.CobolException
Exception

readStatusMessage

protected Object readStatusMessage()
                            throws Exception
Reads a status message form the current stream, throws a Exception if required, otherwise the return-code is returned

Returns:
return-code
Throws:
Exception

readStatusMessage

protected Object readStatusMessage(boolean allowEmptyPacketsFromServer)
                            throws Exception
Reads a status message form the current stream, throws a Exception if required, otherwise the return-code is returned

Returns:
return-code
Throws:
Exception

getIsInitial

public boolean getIsInitial()
Method declaration

Returns:

readMessageBundle

public abstract DataInputStream readMessageBundle()
                                           throws IOException
Method declaration

Throws:
IOException

writeMessageBundle

public abstract byte[] writeMessageBundle()
                                   throws IOException
Method declaration

Throws:
IOException

canRetryOnFailure

public 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.