Sun GlassFish Message Queue 4.4 Developer's Guide for JMX Clients

Service Manager Monitor

Each broker has a single service manager monitor MBean, used for managing all of the broker's service monitor MBeans.

Object Name

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.

Attributes

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 

NumServices

Integer

No 

Number of connection services 

NumActiveThreads

Integer

No 

Total current number of threads actively handling connections for all services 

NumMsgsIn

Long

No 

Total cumulative number of messages received by all services since broker started 

NumMsgsOut

Long

No 

Total cumulative number of messages sent by all services since broker started 

MsgBytesIn

Long

No 

Total cumulative size in bytes of messages received by all services since broker started 

MsgBytesOut

Long

No 

Total cumulative size in bytes of messages sent by all services since broker started 

NumPktsIn

Long

No 

Total cumulative number of packets received by all services since broker started 

NumPktsOut

Long

No 

Total cumulative number of packets sent by all services since broker started 

PktBytesIn

Long

No 

Total cumulative size in bytes of packets received by all services since broker started 

PktBytesOut

Long

No 

Total cumulative size in bytes of packets sent by all services since broker started 

Operation

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 

getServices

None 

ObjectName[]

Object names of all service monitor MBeans 

Notifications

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 

mq.service.pause

ServiceNotification.SERVICE_PAUSE

Service paused 

mq.service.resume

ServiceNotification.SERVICE_RESUME

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 

getServiceName

String

Service name 

See Table 3–11 for possible values.