appia.test.applflow
Class ApplTimer

java.lang.Object
  |
  +--appia.Event
        |
        +--appia.events.channel.ChannelEvent
              |
              +--appia.events.channel.Timer
                    |
                    +--appia.test.applflow.ApplTimer

public class ApplTimer
extends appia.events.channel.Timer

Timer of the aplication used to send messages periodically


Field Summary
 int[] dest
           
 java.lang.String msg
           
 int period
           
 int thisResend
           
 int totalResend
           
 
Fields inherited from class appia.events.channel.Timer
timerID, when
 
Constructor Summary
ApplTimer(appia.Channel c, ApplFlowSession gen, java.lang.String msg, int totalResend, int period, int[] dest)
          Constructor of the class.
 
Method Summary
 boolean hasMore()
          verifies if there are more messages to send
 void prepareNext()
          prepare timer to send another message later.
 
Methods inherited from class appia.events.channel.Timer
cloneEvent, getTimeout, setTimeout
 
Methods inherited from class appia.events.channel.ChannelEvent
getQualifier, setQualifier
 
Methods inherited from class appia.Event
asyncGo, currentSession, debug, getChannel, getDirection, getSource, go, init, isAccepted, popSession, setChannel, setDirection, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msg

public java.lang.String msg

totalResend

public int totalResend

thisResend

public int thisResend

period

public int period

dest

public int[] dest
Constructor Detail

ApplTimer

public ApplTimer(appia.Channel c,
                 ApplFlowSession gen,
                 java.lang.String msg,
                 int totalResend,
                 int period,
                 int[] dest)
          throws appia.AppiaEventException,
                 appia.AppiaException
Constructor of the class.

Parameters:
c - channel.
gen - generator session.
msg - message.
totalResend - number of times to send the message.
period - interval between message sending.
dest - array of destination ranks (null for all members).
Method Detail

hasMore

public boolean hasMore()
verifies if there are more messages to send


prepareNext

public void prepareNext()
                 throws appia.AppiaEventException,
                        appia.AppiaException
prepare timer to send another message later.

appia.AppiaEventException
appia.AppiaException