Class Heartbeat
java.lang.Object
com.martiansoftware.nailgun.examples.Heartbeat
Print one hash per second to standard out while the client is running.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegisters aNGClientListenerwith the session then loops forever printing hashes untilNGClientListener.clientDisconnected()is called.
-
Constructor Details
-
Heartbeat
public Heartbeat()
-
-
Method Details
-
nailMain
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:
IOException
-