IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.recorder.core.packet.connection
Interface IOpenConnectionPacket

All Superinterfaces:
IConnectionPacket, IRecorderPacket, Serializable

public interface IOpenConnectionPacket
extends IConnectionPacket

A packet indicating that a connection was opened.


Field Summary
static int DIRECT_CONNECTION
          Designates a direct connection.
 
Fields inherited from interface com.ibm.rational.test.lt.recorder.core.packet.connection.IConnectionPacket
DEFAULT_DOMAIN, ID, NO_CONNECTION
 
Method Summary
 int getConnectionTypeId()
          If the connection was opened through a specific mean (e.g. a proxy), returns the ID of the connection type that was used to open the connection.
 String getLocalHost()
          Returns the local host, either in the form of a host name, or as an IP (v4 or V6) address.
 int getLocalPort()
          Returns the local port.
 String getRemoteHost()
          Returns the remote host, either in the form of a host name, or as IP (v4 or v6) address.
 int getRemotePort()
          Returns the remote port.
 boolean isIncoming()
          Whether the connection was initiated by the client (false, or received as an incoming connection to the client (true).
 
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.packet.connection.IConnectionPacket
getConnectionId, getDomainId
 
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.packet.IRecorderPacket
getEndTimestamp, getPacketType, getPacketVersion, getRecorderId, getSize, getStartTimestamp
 

Field Detail

DIRECT_CONNECTION

static final int DIRECT_CONNECTION
Designates a direct connection. This constant can be used as the return value for IOpenConnectionPacket.getConnectionTypeId().

See Also:
Constant Field Values
Method Detail

getRemoteHost

String getRemoteHost()
Returns the remote host, either in the form of a host name, or as IP (v4 or v6) address.

Returns:
the remote host, either in the form of a host name, or as IP (v4 or v6) address.

getRemotePort

int getRemotePort()
Returns the remote port.

Returns:
the remote port.

getLocalHost

String getLocalHost()
Returns the local host, either in the form of a host name, or as an IP (v4 or V6) address.

Returns:
the local host, either in the form of a host name, or as an IP (v4 or V6) address.

getLocalPort

int getLocalPort()
Returns the local port.

Returns:
the local port.

isIncoming

boolean isIncoming()
Whether the connection was initiated by the client (false, or received as an incoming connection to the client (true).

Returns:

getConnectionTypeId

int getConnectionTypeId()
If the connection was opened through a specific mean (e.g. a proxy), returns the ID of the connection type that was used to open the connection. The corresponding IConnectionType packet with this ID always occur before the first open packet that references it.

Returns:
The connection type ID used to perform the connection, or the constant IOpenConnectionPacket.DIRECT_CONNECTION if the connection is direct.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.