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 SummaryFields
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- 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- DEBUGpublic static final boolean DEBUGDebug mode.
 
- Constructor Details- LoadBalancerpublic LoadBalancer()Public constructor.
 
- Method Details- getModuleNameGets the name of the module.- Specified by:
- getModuleNamein interface- IServerModule<Object>
- Returns:
- The name "LoadBalancer".
 
- getModuleDescripionGets the description.- Specified by:
- getModuleDescripionin interface- IServerModule<Object>
- Returns:
- A descriptive text of the module such a "Load Balancer for servers in the co.iizi.* domain".
 
- initializeInitializes the module end point constructor.- Specified by:
- initializein interface- IServerModule<Object>
- Parameters:
- server- The server instance.
- Returns:
- The end point constructor.
- Throws:
- Exception- For failures: the module will not be used...
 
- onServerReadyCalled when the server is ready. A server module that wishes to listen to when the server is going to be disposed can do so using- IServer.addDisposeListener(com.iizix.server.IServerDisposeListener)at this stage.- Specified by:
- onServerReadyin interface- IServerModule<Object>
- Parameters:
- server- The server instance.
 
- disposepublic void dispose()Disposes of this server module. After dispose is called and- initialize(IServer)has been called, the end point constructor is automatically removed and disposed of.- Specified by:
- disposein interface- IServerModule<Object>