com.voicent.webalert
Class BroadcastThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.voicent.webalert.BroadcastThread
All Implemented Interfaces:
java.lang.Runnable

public class BroadcastThread
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BroadcastThread()
           
 
Method Summary
 int getCallsFailed()
          get current total calls failed
 int getCallsInProgress()
          get current total calls in progress
 int getCallsMade()
          get current total calls made
 int getCallsToBeMade()
          get current total calls to be made
 boolean isOngoing()
           
 void run()
          this is a simple call dispatcher, there is no need to schedule the call since the gateway has a call scheduler.
 boolean startBroadcast(BroadcastList list, java.lang.String notes)
           
 boolean stopBroadcast()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BroadcastThread

public BroadcastThread()
Method Detail

startBroadcast

public boolean startBroadcast(BroadcastList list,
                              java.lang.String notes)

stopBroadcast

public boolean stopBroadcast()

run

public void run()
this is a simple call dispatcher, there is no need to schedule the call since the gateway has a call scheduler. for client, it needs to send the call request, poll the call status, wait if the call is not finished, or remove the call record if the call is completed. if you send more calls than the available phone lines on the gateway, the extra calls will be queued by the gateway scheduler.


getCallsMade

public int getCallsMade()
get current total calls made


getCallsFailed

public int getCallsFailed()
get current total calls failed


getCallsInProgress

public int getCallsInProgress()
get current total calls in progress


getCallsToBeMade

public int getCallsToBeMade()
get current total calls to be made


isOngoing

public boolean isOngoing()