synapsi.net
Class UpdateThread


java.lang.Object

  |

  +--java.lang.Thread

        |

        +--synapsi.net.UpdateThread


public class UpdateThread
extends java.lang.Thread

Implements a thread to handle updating one client. Uses PUP-protocol.


Field Summary
 boolean stop
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UpdateThread(MainForNet main, java.lang.String client, java.lang.String version, java.lang.String sPackage)
          Constructs and initializes UpdateThread
 
Method Summary
 void run()
          Main loop does updating using PUP-protocol
 void setDebug(int debug)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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
 

Field Detail

stop


public boolean stop
Constructor Detail

UpdateThread


public UpdateThread(MainForNet main,
                    java.lang.String client,
                    java.lang.String version,
                    java.lang.String sPackage)
Constructs and initializes UpdateThread
Parameters:
main - ServerMain -class creating this instance
client - client to be updated
version - version id of the package to be updated
sPackage - path to the package file to be uloaded
Method Detail

setDebug


public void setDebug(int debug)

run


public void run()
Main loop does updating using PUP-protocol
Overrides:
run in class java.lang.Thread