Listener Class
The Listener object is used to listen for connections from Managers. The application
should only create one Listener which must exist for the lifetime of the application.
Once a Listener has been created, Event, Meter,
Accumulator, and Duration
objects can be used by the Listener to automatically gather performance data.
Container objects may also be created to group
together the performance gathering objects and Custom Messages may be used to
communicate with the Managers. In addition, the application can add
and remove Microsoft® Windows® performance counters
for monitoring.
For more information about creating and using the Listener, see the topics
in the section Getting Started with the System
Manager Listener Java™ API.
- Constructor
- listener - Creates the Listener object.
- Methods
- addCounter - Adds a new counter to the
set being monitored automatically by the Listener.
- durationFactory - Creates a Duration
object for the Listener.
- lookupContainer - Creates a Container
object at the top-level of the Listener, the methods of which can be used
to create subordinate Event objects and Meter
objects.
- lookupEvent - Creates an Event object
at the top-level of the Listener.
- recordCustomMessage - Sends a
Custom Message to all connected Managers.
- removeCounter - Removes a counter from
the set currently being monitored.
- setInterval - Controls the aggregation
interval.
- shutdown - Advises any connected Managers
that shutdown of the application is imminent.
- See Also
- Accumulator Class
- Container Class
- Duration Class
- Event Class
- Meter Class