Sun Java System Message Queue 4.3 Developer's Guide for JMX Clients

Attributes

The service monitor MBean has the attributes shown in Table 3–12. The names of these attributes are defined as static constants in the utility class ServiceAttributes.

Table 3–12 Service Monitor Attributes

Name 

Type 

Settable? 

Description 

Name

String

No 

Service name 

See Table 3–11 for possible values.

Port

Integer

No 

Port number currently used by service 

State

Integer

No 

Current state 

See Table 3–13 for possible values.

StateLabel

String

No 

String representation of current state:  

Useful for displaying the state in human-readable form, such as in the Java Monitoring and Management Console (jconsole).

See Table 3–13 for possible values.

NumConnections

Integer

No 

Current number of connections 

NumConnectionsOpened

Long

No 

Cumulative number of connections opened since broker started 

NumConnectionsRejected

Long

No 

Cumulative number of connections rejected since broker started 

NumActiveThreads

Integer

No 

Current number of threads actively handling connections 

NumProducers

Integer

No 

Current number of message producers 

NumConsumers

Integer

No 

Current number of message consumers 

NumMsgsIn

Long

No 

Cumulative number of messages received since broker started 

NumMsgsOut

Long

No 

Cumulative number of messages sent since broker started 

MsgBytesIn

Long

No 

Cumulative size in bytes of messages received since broker started 

MsgBytesOut

Long

No 

Cumulative size in bytes of messages sent since broker started 

NumPktsIn

Long

No 

Cumulative number of packets received since broker started 

NumPktsOut

Long

No 

Cumulative number of packets sent since broker started 

PktBytesIn

Long

No 

Cumulative size in bytes of packets received since broker started 

PktBytesOut

Long

No 

Cumulative size in bytes of packets sent since broker started 

Table 3–13 shows the possible values for the State and StateLabel attributes. These values are defined as static constants in the utility class ServiceState.

Table 3–13 Connection Service State Values

Value 

Utility Constant 

String Representation 

Meaning 

0

ServiceState.RUNNING

RUNNING

Service running 

1

ServiceState.PAUSED

PAUSED

Service paused 

2

ServiceState.QUIESCED

QUIESCED

Service quiesced 

-1

ServiceState.UNKNOWN

UNKNOWN

Service state unknown