Class Heartbeat
- java.lang.Object
-
- com.martiansoftware.nailgun.examples.Heartbeat
-
public class Heartbeat extends java.lang.ObjectPrint one hash per second to standard out while the client is running.
-
-
Constructor Summary
Constructors Constructor Description Heartbeat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnailMain(NGContext context)Registers aNGClientListenerwith the session then loops forever printing hashes untilNGClientListener.clientDisconnected()is called.
-
-
-
Method Detail
-
nailMain
public static void nailMain(NGContext context) throws java.io.IOException
Registers aNGClientListenerwith the session then loops forever printing hashes untilNGClientListener.clientDisconnected()is called.- Parameters:
context- the Nailgun context used to register the nail as aNGClientListener.- Throws:
java.io.IOException
-
-