com.antiaction.mayhem
Class Server

java.lang.Object
  extended by com.antiaction.mayhem.Server
All Implemented Interfaces:
IServiceManager

public class Server
extends java.lang.Object
implements IServiceManager

Bootstrap loader for the Mayhem Server framework. Configured services are loaded dynamically. Configuration files should be located in the relative conf/ directory.

Version:
1.00
Author:
Nicholas Clarke
To do:
classloader for each service..

Constructor Summary
Server()
           
 
Method Summary
 IBinder bind(IService service, IBindDatagramSocketFactory bindDatagramSocketFactory, java.lang.String interf, int port, IObjectBroker objectBroker)
           
 IBinder bind(IService service, IBindSocketFactory bindSocketFactory, java.lang.String interf, int port, int backlog, IObjectBroker objectBroker)
           
 void Main(java.lang.String[] args)
          Non static main method to start the services.
 void runService(java.lang.String className, java.lang.String configname)
          Use a classloader to load a service and call its init method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

Main

public void Main(java.lang.String[] args)
Non static main method to start the services.

Parameters:
args - console arguments.

runService

public void runService(java.lang.String className,
                       java.lang.String configname)
Use a classloader to load a service and call its init method.

Parameters:
className - service class name.
configname - service config filename.

bind

public IBinder bind(IService service,
                    IBindDatagramSocketFactory bindDatagramSocketFactory,
                    java.lang.String interf,
                    int port,
                    IObjectBroker objectBroker)
Specified by:
bind in interface IServiceManager

bind

public IBinder bind(IService service,
                    IBindSocketFactory bindSocketFactory,
                    java.lang.String interf,
                    int port,
                    int backlog,
                    IObjectBroker objectBroker)
Specified by:
bind in interface IServiceManager


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.