Class wb.KillLocalServer
All Packages Class Hierarchy This Package Previous Next Index
Class wb.KillLocalServer
java.lang.Object
|
+----wb.KillLocalServer
- public class KillLocalServer
- extends Object
- implements Runnable, GTypes
KillLocalServer tries to open a Stream oriented Socket connection to the
localserver. This opening of socket forces the ServerSocket of Listen
thread to come out of the blocked accept call and hence the close of
Server Socket will be successful
-
KillLocalServer()
- Creates an Instance of this server.
-
join()
- provided to support the interface.
-
run()
- Creates a socket and make a connection to the local server.
-
start()
- Starts the thread by creating a thread at normal priority
-
stop()
- Stops the current thread
KillLocalServer
public KillLocalServer()
- Creates an Instance of this server. Could have used the compiler
supplied constructor.
start
public void start()
- Starts the thread by creating a thread at normal priority
stop
public void stop()
- Stops the current thread
run
public void run()
- Creates a socket and make a connection to the local server. This forces
the Listener thread to come out of its blocked accept call and Bang
goes the serversocket close. (Note: Listener is running at higher
priority). we should expect a Exception from the socket call.
Once the connection is made, it simply closes the connection and
the thread would exit (stop)
join
public final void join()
- provided to support the interface. does nothing but to stop the thread
All Packages Class Hierarchy This Package Previous Next Index