Services Builder for CICS(R) 3270 Bridge v2.0.0.0

com.attachmate.cicsbridge.j2ee.outputs
Class ConnectionStatus

java.lang.Object
  extended bycom.attachmate.cicsbridge.j2ee.outputs.ConnectionStatus
All Implemented Interfaces:
java.io.Serializable

public final class ConnectionStatus
extends java.lang.Object
implements java.io.Serializable

Return object that holds return code and the status of the host connection.

See Also:
BridgeAPI_EJB.getConnectionStatus(), Serialized Form

Constructor Summary
ConnectionStatus(int returnCode, int status)
          Creates a ConnectionStatus object and sets member variables.
 
Method Summary
 int getReturnCode()
          Returns zero for success.
 int getStatus()
          Returns the status of the host connection, which is one of the following values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionStatus

public ConnectionStatus(int returnCode,
                        int status)
Creates a ConnectionStatus object and sets member variables.

Parameters:
returnCode - zero for success. For possible failure values, see the getReturnCodeMessage method.
status - The status of the host connection, which is one of the following values.
  0    :  The session is connected.
  1    :  The session is not connected
  2    :  NOT SUPPORTED: The session is connected but the presentation space (PS) is busy.
  3    :  NOT SUPPORTED: The connection is inhibited.
  4    :  NOT SUPPORTED: The host is in an unknown state.
 
Method Detail

getReturnCode

public int getReturnCode()
Returns zero for success. For possible failure values, see the getReturnCodeMessage method.

Returns:
int value

getStatus

public int getStatus()
Returns the status of the host connection, which is one of the following values.
  0    :  The session is connected.
  1    :  The session is not connected
  2    :  NOT SUPPORTED: The session is connected but the presentation space (PS) is busy.
  3    :  NOT SUPPORTED: The connection is inhibited.
  4    :  NOT SUPPORTED: The host is in an unknown state.
 

Returns:
int value

Services Builder for CICS(R) 3270 Bridge v2.0.0.0