Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mtpgsql.server
Class SimpleServer  view SimpleServer download SimpleServer.java

java.lang.Object
  extended byorg.mtpgsql.server.SimpleServer
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable

public class SimpleServer
extends java.lang.Object
implements java.lang.Runnable, java.awt.event.ActionListener


Field Summary
 java.lang.ThreadGroup connections
           
(package private)  boolean running
           
(package private)  java.net.ServerSocket server_socket
           
 
Constructor Summary
SimpleServer(java.net.ServerSocket server)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This method is invoked when an action occurs.
static void close()
           
 void connect()
           
static void init()
           
 boolean isRunning()
           
static void main(java.lang.String[] args)
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connections

public java.lang.ThreadGroup connections

server_socket

java.net.ServerSocket server_socket

running

boolean running
Constructor Detail

SimpleServer

public SimpleServer(java.net.ServerSocket server)
Method Detail

main

public static void main(java.lang.String[] args)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

connect

public void connect()
             throws java.io.IOException

init

public static void init()

close

public static void close()

isRunning

public boolean isRunning()

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable