Class 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 Detail

      • DEBUG

        public static final boolean DEBUG
        Debug mode.
    • Constructor Detail

      • LoadBalancer

        public LoadBalancer()
        Public constructor.
    • Method Detail

      • getModuleName

        public java.lang.String getModuleName()
        Gets the name of the module.
        Specified by:
        getModuleName in interface IServerModule<java.lang.Object>
        Returns:
        The name "LoadBalancer".
      • getModuleDescripion

        public java.lang.String getModuleDescripion()
        Gets the description.
        Specified by:
        getModuleDescripion in 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:
        initialize in 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...
      • 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:
        dispose in interface IServerModule<java.lang.Object>