Class Heartbeat
- java.lang.Object
-
- com.martiansoftware.nailgun.examples.Heartbeat
-
public class Heartbeat extends java.lang.Object
Print 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 void
nailMain(NGContext context)
Registers aNGClientListener
with 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 aNGClientListener
with 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
-
-