org.alicebot.server.core.util
Class Heart

java.lang.Object
  extended by org.alicebot.server.core.util.Heart

public class Heart
extends java.lang.Object

A Heart beats. At a configurable interval, it calls pulse() methods on some objects (currently only the parent static Multiplexor) in order to provide assurance that the bot server is alive.

Author:
Noel Bush

Nested Class Summary
(package private)  class Heart.HeartBeat
           
 
Method Summary
protected  java.lang.Object clone()
          Do not allow anyone to clone a Heart.
static void start()
          Starts the heart (if the pulse is greater than zero).
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Do not allow anyone to clone a Heart.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

start

public static void start()
Starts the heart (if the pulse is greater than zero).