Package com.iizix.server.loadbalancer
Class LoadBalancer
java.lang.Object
com.iizix.server.loadbalancer.LoadBalancer
- All Implemented Interfaces:
IServerModule<Object>
The Load Balancer running as an iiziServer Module. 0 *
- Author:
- Christopher Mindus
Field Summary
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of this server module.Gets the description.Gets the name of the module.initialize
(IServer server) Initializes the module end point constructor.void
onServerReady
(IServer server) Called when the server is ready.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizix.server.modules.IServerModule
processServerArg
Field Details
DEBUG
public static final boolean DEBUGDebug mode.
Constructor Details
LoadBalancer
public LoadBalancer()Public constructor.
Method Details
getModuleName
Gets the name of the module.- Specified by:
getModuleName
in interfaceIServerModule<Object>
- Returns:
- The name "LoadBalancer".
getModuleDescripion
Gets the description.- Specified by:
getModuleDescripion
in interfaceIServerModule<Object>
- Returns:
- A descriptive text of the module such a "Load Balancer for servers in the co.iizi.* domain".
initialize
Initializes the module end point constructor.- Specified by:
initialize
in interfaceIServerModule<Object>
- Parameters:
server
- The server instance.- Returns:
- The end point constructor.
- Throws:
Exception
- For failures: the module will not be used...
onServerReady
Called when the server is ready. A server module that wishes to listen to when the server is going to be disposed can do so usingIServer.addDisposeListener(com.iizix.server.IServerDisposeListener)
at this stage.- Specified by:
onServerReady
in interfaceIServerModule<Object>
- Parameters:
server
- The server instance.
dispose
public void dispose()Disposes of this server module. After dispose is called andinitialize(IServer)
has been called, the end point constructor is automatically removed and disposed of.- Specified by:
dispose
in interfaceIServerModule<Object>