org.opengroup.arm40.tranreport

Interface ArmSystemAddress

public interface ArmSystemAddress extends ArmToken

Encapsulates the network addressing information for a system. It may be used with ArmTranReport if the reported transaction executed on a different system.
Field Summary
static shortFORMAT_HOSTNAME
a hostname (characters, not null-terminated).
static shortFORMAT_IPV4
an IPv4 address.
static shortFORMAT_IPV4PORT
an IPv4 address and port number.
static shortFORMAT_IPV6
an IPv6 address.
static shortFORMAT_IPV6PORT
an IPv6 address and port number.
static shortFORMAT_SNA
an SNA address.
static shortFORMAT_UUID
a Universally-unique ID.
static shortFORMAT_X25
an X.25 address.
Method Summary
byte[]getAddress()
shortgetFormat()
ArmIDgetID()

Field Detail

FORMAT_HOSTNAME

public static final short FORMAT_HOSTNAME
a hostname (characters, not null-terminated).

Bytes 0:?? = hostname

FORMAT_IPV4

public static final short FORMAT_IPV4
an IPv4 address.

Bytes 0:3 = 4-byte IP address.

FORMAT_IPV4PORT

public static final short FORMAT_IPV4PORT
an IPv4 address and port number.

Bytes 0:3 = 4-byte IP address
Bytes 4:5 = 2-byte IP port number

FORMAT_IPV6

public static final short FORMAT_IPV6
an IPv6 address.

Bytes 0:15 = 16-byte IP address

FORMAT_IPV6PORT

public static final short FORMAT_IPV6PORT
an IPv6 address and port number.

Bytes 0:15 = 16-byte IP address
Bytes 16:17 = 2-byte IP port number

FORMAT_SNA

public static final short FORMAT_SNA
an SNA address.

Bytes 0:7 = EBCDIC-encoded network ID
Bytes 8:15 = EBCDIC-encoded network accessible unit (control point or LU)

FORMAT_UUID

public static final short FORMAT_UUID
a Universally-unique ID.

Bytes 0:15 = UUID in binary. This is useful for applications that define their system by a UUID rather than a network address or hostname or some other address form.

FORMAT_X25

public static final short FORMAT_X25
an X.25 address.

Bytes 0:15 = The X.25 address (also referred to as an X.121 address). This is up to 16 ASCII character digits ranging from 0-9.

Method Detail

getAddress

public byte[] getAddress()

Returns: a byte array containing the address. The returned value is the same value passed to the newArmSystemAddress() method of ArmTranReportFactory.

getFormat

public short getFormat()

Returns: a short containing the format. The returned value is the same value passed to the newArmSystemAddress() method of ArmTranReportFactory.

getID

public ArmID getID()

Returns: the optional 16-byte ID associated with the format and address, if any. The returned value, which could be null, is the same value passed to the newArmSystemAddress() method of ArmTranReportFactory.