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 |
---|---|---|---|
String |
No |
Service name See Table 3–11 for possible values. |
|
Integer |
No |
Port number currently used by service |
|
Integer |
No |
Current state See Table 3–13 for possible values. |
|
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. |
|
Integer |
No |
Current number of connections |
|
Long |
No |
Cumulative number of connections opened since broker started |
|
Long |
No |
Cumulative number of connections rejected since broker started |
|
Integer |
No |
Current number of threads actively handling connections |
|
Integer |
No |
Current number of message producers |
|
Integer |
No |
Current number of message consumers |
|
Long |
No |
Cumulative number of messages received since broker started |
|
Long |
No |
Cumulative number of messages sent since broker started |
|
Long |
No |
Cumulative size in bytes of messages received since broker started |
|
Long |
No |
Cumulative size in bytes of messages sent since broker started |
|
Long |
No |
Cumulative number of packets received since broker started |
|
Long |
No |
Cumulative number of packets sent since broker started |
|
Long |
No |
Cumulative size in bytes of packets received since broker started |
|
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 |
RUNNING |
Service running |
|
1 |
PAUSED |
Service paused |
|
2 |
QUIESCED |
Service quiesced |
|
-1 |
UNKNOWN |
Service state unknown |