public interface IServerModule<OBJECT>
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of this server module.
|
String |
getModuleDescripion()
Gets the description.
|
String |
getModuleName()
Gets the name of the module.
|
IEndPointConstructor<OBJECT> |
initialize(IServer server)
Initializes the module end point constructor.
|
void |
onServerReady(IServer server)
Called when the server is ready.
|
default int |
processServerArg(String[] args,
String param,
int index)
Processes command line arguments for the module in question.
|
default int processServerArg(String[] args, String param, int index)
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 )
.String getModuleName()
String getModuleDescripion()
IEndPointConstructor<OBJECT> initialize(IServer server) throws Exception
server
- The server instance.Exception
- For failures: the module will not be used...void onServerReady(IServer server)
IServer.addDisposeListener(com.iizix.server.IServerDisposeListener)
at this stage.server
- The server instance.void dispose()
dispose()
has been called,
the end point constructor is automatically removed and disposed of.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.