Class StayOnlineSend

java.lang.Object
  extended by java.lang.Thread
      extended by StayOnlineSend
All Implemented Interfaces:
java.lang.Runnable

public class StayOnlineSend
extends java.lang.Thread

Implements functions to generate and send the data to Webkicks


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 boolean count
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StayOnlineSend(StayOnlineData data, StayOnlineGui gui)
          Starts the sending thread
 
Method Summary
 void continueSending()
          continues the sending thread
 void halt()
          Stops the sending thread
 java.lang.String replace(int i)
          Replaces the variables in the String that should be send
 void run()
          sending thread with waiting functionality Waits number of seconds then sends alive String
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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
 

Field Detail

count

public boolean count
Constructor Detail

StayOnlineSend

public StayOnlineSend(StayOnlineData data,
                      StayOnlineGui gui)
Starts the sending thread

Parameters:
data - the array of Strings with required values
Method Detail

halt

public void halt()
Stops the sending thread


continueSending

public void continueSending()
continues the sending thread


run

public void run()
sending thread with waiting functionality Waits number of seconds then sends alive String

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

replace

public java.lang.String replace(int i)
Replaces the variables in the String that should be send

Parameters:
i - number of alivestrings send
Returns:
String with replaced values