Class CollectedInfo
java.lang.Object
org.apache.catalina.ha.backend.CollectedInfo
Listener to provide information to mod_heartbeat.c. Collects connector thread pool
information via JMX to report ready and busy thread counts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MBeanServerThe MBean server used to collect information.protected ObjectNameThe object name of the thread pool MBean. -
Constructor Summary
ConstructorsConstructorDescriptionCollectedInfo(String host, int port) Creates a new CollectedInfo instance and initializes it with the specified host and port. -
Method Summary
-
Field Details
-
mBeanServer
The MBean server used to collect information. -
objName
The object name of the thread pool MBean.
-
-
Constructor Details
-
CollectedInfo
-
-
Method Details
-
init
Initializes the collected info by looking up the thread pool MBean for the given host and port.- Parameters:
host- the host (may be null to match any host)port- the port (0 to match any port)- Throws:
Exception- if no matching connector is found
-
refresh
-