Interface IServerModule<OBJECT>

  • All Known Implementing Classes:

    public interface IServerModule<OBJECT>
    Interface implemented by a server module that wish to implement an end-point and act as a remote party accepter. Typical use for modules are e.g. load balancing and license manager.
    Christopher Mindus
    • Method Detail

      • processServerArg

        default int processServerArg​(java.lang.String[] args,
                                     java.lang.String param,
                                     int index)
        Processes command line arguments for the module in question.
        args - The arguments on the command line.
        param - The parameter is lower case, generally starting with "-" or "/".
        index - The next argument to read, might not be present if ( ii >= args.length ).
        The number of arguments processed, zero for none.
      • getModuleName

        java.lang.String getModuleName()
        Gets the name of the module.
        A name such as "Load Balancer" or "License Manager".
      • getModuleDescripion

        java.lang.String getModuleDescripion()
        Gets the description.
        A descriptive text of the module such a "Load Balancer for servers in the co.iizi.* domain" or "Backup License Manager for com.domain.LicMan".
      • initialize

        IEndPointConstructor<OBJECT> initialize​(IServer server)
                                         throws java.lang.Exception
        Initializes the module end point constructor.
        server - The server instance.
        The end point constructor.
        java.lang.Exception - For failures: the module will not be used...
      • dispose

        void dispose()
        Disposes of this server module. After dispose is called and dispose() has been called, the end point constructor is automatically removed and disposed of.