com.javageeks.client
Class OutputStreamListener
java.lang.Object
|
+--com.javageeks.client.OutputStreamListener
- All Implemented Interfaces:
- HeartbeatListener
- public class OutputStreamListener
- extends java.lang.Object
- implements HeartbeatListener
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 |
OutputStreamListener
public OutputStreamListener(java.io.OutputStream out,
boolean verbose)
throws java.io.IOException
- Constructor
OutputStreamListener
public OutputStreamListener(java.io.PrintStream outStream,
boolean verbose)
throws java.io.IOException
- Constructor
OutputStreamListener
public OutputStreamListener(java.io.PrintWriter writer,
boolean verbose)
throws java.io.IOException
- Constructor
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