beautypg.com

Setstring, Attributes names for get and set methods – HP NonStop G-Series User Manual

Page 104

background image

Usage Sets the value of the item specified in the name parameter to the short (16-bit) integer value specified in the value
parameter.

Throws

java.lang.IllegalAccessError.

Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.

java.lang.NoSuchFieldError.

Occurs when the user tries to set an attribute which is not one of the predefined attributes.

setString

Sets the string value of a specified item.

void setString( String name, String value );

Usage Sets the value of the item specified in the name parameter to the string value specified in the value parameter.

Throws

java.lang.IllegalAccessError.

Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.

java.lang.NoSuchFieldError.

Occurs when the user tries to set an attribute which is not one of the predefined attributes.

Attributes Names for Get and Set Methods

The attribute names for the JoltSessionAttributes class include static final variables (essentially predefined constants) for
setting the application address, and for setting and getting timeouts. The predefined attribute names listed in

Table 7-2

are

used for specifying the String name parameter of the JoltSessionAttributes get and set methods.

Note

The get methods are unrestricted. That is, the programmer can define names in addition to
using the predefined ones. The set methods are currently restricted to the use of the
predefined names listed in

Table 7-2

.

Table 7-2. Predefined Attribute Names

Attribute Name

Description

APPADDRESS

Defines the location of the machine where the application resides.
The format is as follows:

String "//host:port"

Host is the host machine name or IP address and port is the TCP port
number for the Jolt JSL or Jolt Relay. Use setString() to set the value
of this attribute.