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 void
Registers aNGClientListener
with the session then loops forever printing hashes untilNGClientListener.clientDisconnected()
is called.
-
Constructor Details
-
Heartbeat
public Heartbeat()
-
-
Method Details
-
nailMain
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:
IOException
-