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
FieldsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of this server module.Gets the description.Gets the name of the module.initialize(IServer server) Initializes the module end point constructor.voidonServerReady(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, waitMethods 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:
getModuleNamein interfaceIServerModule<Object>- Returns:
- The name "LoadBalancer".
getModuleDescripion
Gets the description.- Specified by:
getModuleDescripionin 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:
initializein 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:
onServerReadyin 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:
disposein interfaceIServerModule<Object>