org.jadv.events
Class HeartBeatEvent

java.lang.Object
  |
  +--org.jadv.events.Event
        |
        +--org.jadv.events.HeartBeatEvent

public class HeartBeatEvent
extends Event

This is the Event, that handles the HeartBeat of one object.
The HeartBeatEvent simply calles the function HeartBeat() of the given object. If the Event didn't finish in time, the markBad() Function disables the HeartBeat of the object.

Author:
neitzel

Field Summary
private  JAdvObject _obj
           
 
Fields inherited from class org.jadv.events.Event
_NEXT
 
Constructor Summary
HeartBeatEvent(JAdvObject obj)
          The constructor just gets the Objects, in which it should call the HeartBeat.
 
Method Summary
 void doEvent()
          doEvent() This is the function, that will be called by the EventThread.
 void markBad()
          markBad() Mark an Event as bad.
 
Methods inherited from class org.jadv.events.Event
findObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_obj

private JAdvObject _obj
Constructor Detail

HeartBeatEvent

public HeartBeatEvent(JAdvObject obj)
The constructor just gets the Objects, in which it should call the HeartBeat.

Parameters:
obj - The Object, in which we want to call the HeartBeat.
Method Detail

doEvent

public void doEvent()
doEvent() This is the function, that will be called by the EventThread.
It simply calles HeartBeat() in the given object.

Specified by:
doEvent in class Event

markBad

public void markBad()
markBad() Mark an Event as bad.
This function simply disabled the HeartBeat of the object.

Specified by:
markBad in class Event