Creates the Listener object.
Listener(String appName, String appVersion,
[optional] PCHcallable heartbeatObject, [optional] boolean
enabled);
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.Listener listener = new Listener("sampleApp", "4.0");
...