DBAbstract API Documentation

ro.raducora.connection.server
Class ServerLauncher

java.lang.Object
  |
  +--ro.raducora.connection.server.ServerLauncher

public class ServerLauncher
extends java.lang.Object

Author:
Radu Coravu
A Server Launcher which registers ,unregisters Server Implementators

Method Summary
static boolean deRegisterAll()
          De-register all Servers
static boolean deRegisterServer(Server server)
          Deregisters a Server
static boolean registerServer(Server server)
          Registers a Server
static boolean registerServers(Server[] serverArray)
          Registers an array of servers
static boolean reloadAll()
          Tries to reload properties for all servers.
static void startAll()
          Starts all registered Servers
static void startServer(Server server)
          Starts a certain registered Server
static void startServersExcept(Server server)
          Starts all registered Servers except the one sent as parameter
static void stopAll()
          Stops all registered Servers
static void stopServer(Server server)
          Stops a certain registered Server
static void stopServersExcept(Server server)
          Stops registered Servers except the one sent as parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reloadAll

public static boolean reloadAll()
Tries to reload properties for all servers.


registerServer

public static boolean registerServer(Server server)
Registers a Server

Parameters:
server - The server to register
Returns:
true If the server was registered false otherwise

registerServers

public static boolean registerServers(Server[] serverArray)
Registers an array of servers

Parameters:
serverArray - the server array to register
Returns:
true if the servers were registered

deRegisterServer

public static boolean deRegisterServer(Server server)
Deregisters a Server

Parameters:
server - the server to de-register
Returns:
true if the server was de-registered

deRegisterAll

public static boolean deRegisterAll()
De-register all Servers

Returns:
true

startAll

public static void startAll()
Starts all registered Servers


stopAll

public static void stopAll()
Stops all registered Servers


startServer

public static void startServer(Server server)
Starts a certain registered Server


stopServer

public static void stopServer(Server server)
Stops a certain registered Server


startServersExcept

public static void startServersExcept(Server server)
Starts all registered Servers except the one sent as parameter

Parameters:
server - the exception

stopServersExcept

public static void stopServersExcept(Server server)
Stops registered Servers except the one sent as parameter

Parameters:
server - the exception

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.