Listener Method

Creates the Listener object.

Syntax
Listener(String appName, String appVersion, [optional] PCHcallable heartbeatObject, [optional] boolean enabled);
Parameters
appName - [in] Required String, which provides the name of the application to be monitored for performance. The string may be passed as Unicode that contains any printable characters, excluding the newline character.
appVersion - [in] Required String, which specifies the version of the application. The string may be passed as Unicode that contains any printable characters, excluding the newline character.
heartbeatObject - [in] Optional object which must be null or an object implementing the PCHcallable interface. If it is null or unspecified, then an instance of the defaultCallable class, which is a stubbed-out implementation of the PCHcallable interface, will be used.
enabled - [in] Optional Boolean value (default is true) that indicates whether the Listener should actually be enabled or "turned on". When set to false, the Listener is created yet not enabled. As a result, the Listener will not start its background thread, listen on its port, or write to log files. However, even when the Listener is not enabled, objects are still created and can be accessed in the usual manner from the Listener APIs.
Example
Listener listener = new Listener("sampleApp", "4.0");
...
See Also
defaultCallable Class
Listener Class