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

Constructor Index

 o KillLocalServer()
Creates an Instance of this server.

Method Index

 o join()
provided to support the interface.
 o run()
Creates a socket and make a connection to the local server.
 o start()
Starts the thread by creating a thread at normal priority
 o stop()
Stops the current thread

Constructors

 o KillLocalServer
  public KillLocalServer()
Creates an Instance of this server. Could have used the compiler supplied constructor.

Methods

 o start
  public void start()
Starts the thread by creating a thread at normal priority
 o stop
  public void stop()
Stops the current thread
 o 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)
 o 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