dsnserver
Class ThreadCommand

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

public class ThreadCommand
extends java.lang.Thread

This class is used to create a new thread which continuously sends a command out to the DSN.

Author:
kaltt

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  Communication myComm
           
(package private)  java.lang.String threadCommand
           
(package private)  int threadSleepingTime
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadCommand(Communication myComm, int threadSleepingTime, java.lang.String threadCommand)
           
 
Method Summary
 void run()
           
 
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

myComm

private Communication myComm

threadSleepingTime

int threadSleepingTime

threadCommand

java.lang.String threadCommand
Constructor Detail

ThreadCommand

public ThreadCommand(Communication myComm,
                     int threadSleepingTime,
                     java.lang.String threadCommand)
Parameters:
myComm - a reference to Communication
threadSleepTime the time the thread will sleep
threadCommand the command that will be sent
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread