net.jetrix
Class Server

java.lang.Object
  extended by net.jetrix.Server
All Implemented Interfaces:
Runnable, Destination

public class Server
extends Object
implements Runnable, Destination

Main class, starts server components.

Version:
$Revision: 567 $, $Date: 2005-01-10 17:45:19 +0100 (lun., 10 janv. 2005) $
Author:
Emmanuel Bourg

Method Summary
 ServerConfig getConfig()
          Return the server configuration.
static Server getInstance()
          Return the unique instance of the server.
static void main(String[] args)
          Server entry point.
 void run()
           
 void send(Message message)
          Add a message to the server message queue.
 void start()
          Start the server.
 void stop()
          Stop the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Server getInstance()
Return the unique instance of the server.


start

public void start()
Start the server.


stop

public void stop()
Stop the server.


run

public void run()
Specified by:
run in interface Runnable

send

public void send(Message message)
Add a message to the server message queue.

Specified by:
send in interface Destination
Parameters:
message - the message

getConfig

public ServerConfig getConfig()
Return the server configuration.


main

public static void main(String[] args)
Server entry point.

Parameters:
args - start parameters


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.