com.javageeks.client
Class LogListener

java.lang.Object
  |
  +--com.javageeks.client.LogListener
All Implemented Interfaces:
HeartbeatListener

public class LogListener
extends java.lang.Object
implements HeartbeatListener


Constructor Summary
LogListener(java.lang.String filename, boolean verbose)
          Constructor
 
Method Summary
 boolean getVerbose()
          Return the verbosity of the Listener; if set to true, the LogListener will write out onHeartbeatPing messages to the log
 void onHeartbeatFail(java.lang.String msg)
          HeartbeatListener method.
 void onHeartbeatPing(java.lang.String msg)
          HeartbeatListener method.
 void setVerbose(boolean verbose)
          Set the verbosity of the Listener; if set to true, the LogListener will write out onHeartbeatPing messages to the log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogListener

public LogListener(java.lang.String filename,
                   boolean verbose)
            throws java.io.IOException
Constructor
Method Detail

getVerbose

public boolean getVerbose()
Return the verbosity of the Listener; if set to true, the LogListener will write out onHeartbeatPing messages to the log

setVerbose

public void setVerbose(boolean verbose)
Set the verbosity of the Listener; if set to true, the LogListener will write out onHeartbeatPing messages to the log

onHeartbeatPing

public void onHeartbeatPing(java.lang.String msg)
HeartbeatListener method. Received each time a 'ping' is received from the HeartbeatService
Specified by:
onHeartbeatPing in interface HeartbeatListener

onHeartbeatFail

public void onHeartbeatFail(java.lang.String msg)
HeartbeatListener method. Called when the HeartbeatListenerClient determines the heartbeat has failed
Specified by:
onHeartbeatFail in interface HeartbeatListener