Package com.iizix.server.loadbalancer
Class LoadBalancer
- java.lang.Object
- com.iizix.server.loadbalancer.LoadBalancer
 
- All Implemented Interfaces:
- IServerModule<java.lang.Object>
 - public class LoadBalancer extends java.lang.Object implements IServerModule<java.lang.Object> The Load Balancer running as an iiziServer Module. 0 *- Author:
- Christopher Mindus
 
- Field Summary- Fields - Modifier and Type - Field - Description - static boolean- DEBUGDebug mode.
 - Constructor Summary- Constructors - Constructor - Description - LoadBalancer()Public constructor.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- dispose()Disposes of this server module.- java.lang.String- getModuleDescripion()Gets the description.- java.lang.String- getModuleName()Gets the name of the module.- IEndPointConstructor<java.lang.Object>- 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
 
 
- Method Detail- getModuleName- public java.lang.String getModuleName() Gets the name of the module.- Specified by:
- getModuleNamein interface- IServerModule<java.lang.Object>
- Returns:
- The name "LoadBalancer".
 
 - getModuleDescripion- public java.lang.String getModuleDescripion() Gets the description.- Specified by:
- getModuleDescripionin interface- IServerModule<java.lang.Object>
- Returns:
- A descriptive text of the module such a "Load Balancer for servers in the co.iizi.* domain".
 
 - initialize- public IEndPointConstructor<java.lang.Object> initialize(IServer server) throws java.lang.Exception Initializes the module end point constructor.- Specified by:
- initializein interface- IServerModule<java.lang.Object>
- Parameters:
- server- The server instance.
- Returns:
- The end point constructor.
- Throws:
- java.lang.Exception- For failures: the module will not be used...
 
 - onServerReady- public void onServerReady(IServer server) 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 using- IServer.addDisposeListener(com.iizix.server.IServerDisposeListener)at this stage.- Specified by:
- onServerReadyin interface- IServerModule<java.lang.Object>
- Parameters:
- server- The server instance.
 
 - dispose- public 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<java.lang.Object>