Each broker has a single service manager monitor MBean, used for managing all of the broker's service monitor MBeans.
The service manager monitor MBean has the following object name:
com.sun.messaging.jms.server:type=ServiceManager,subtype=Monitor
A string representing this object name is defined as a static constant SERVICE_MANAGER_MONITOR_MBEAN_NAME in the utility class MQObjectName.
The service manager monitor MBean has the attributes shown in Table 3–19. The names of these attributes are defined as static constants in the utility class ServiceAttributes.
Table 3–19 Service Manager Monitor Attributes
Name |
Type |
Settable? |
Description |
---|---|---|---|
Integer |
No |
Number of connection services |
|
Integer |
No |
Total current number of threads actively handling connections for all services |
|
Long |
No |
Total cumulative number of messages received by all services since broker started |
|
Long |
No |
Total cumulative number of messages sent by all services since broker started |
|
Long |
No |
Total cumulative size in bytes of messages received by all services since broker started |
|
Long |
No |
Total cumulative size in bytes of messages sent by all services since broker started |
|
Long |
No |
Total cumulative number of packets received by all services since broker started |
|
Long |
No |
Total cumulative number of packets sent by all services since broker started |
|
Long |
No |
Total cumulative size in bytes of packets received by all services since broker started |
|
Long |
No |
Total cumulative size in bytes of packets sent by all services since broker started |
The service manager monitor MBean supports the operation shown in Table 3–20. The name of this operation is defined as a static constant in the utility class ServiceOperations.
Table 3–20 Service Manager Monitor Operation
Name |
Parameters |
Result Type |
Description |
---|---|---|---|
None |
ObjectName[] |
Object names of all service monitor MBeans |
The service manager monitor MBean supports the notifications shown in Table 3–21. These notifications are instances of the Message Queue JMX class ServiceNotification, and their names are defined as static constants in that class.
Table 3–21 Service Manager Monitor Notifications
Name |
Utility Constant |
Description |
---|---|---|
Service paused |
||
Service resumed |
Table 3–22 shows the method defined in class ServiceNotification for obtaining details about a service manager monitor notification.
Table 3–22 Data Retrieval Method for Service Manager Monitor Notifications
Method |
Result Type |
Description |
---|---|---|
String |
Service name See Table 3–11 for possible values. |