|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.daemon.DmnMain
com.neeve.server.Main
public final class Main
The Neeve server entry point.
This class forms the main entry point of a Neeve server. Upon startup, this class performs basic server initialization, prints the server banner and hands over control to the server controller.
Method Summary | |
---|---|
static ProductInfo |
getProductInfo()
This method can be used to retrieve the ProductInfo which contains
the version of the platform being used. |
static Configurer |
loadBootstrapConfigurer()
Attempts to load find and load a single bootstrap Configurer using ServiceLoader . |
static void |
main(String[] args)
Main entry point |
static SrvConfigDescriptor |
seedServerConfig(Configurer configurer,
String[] args)
Seeds server configuration using the provided Configurer and command line arguments. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Configurer loadBootstrapConfigurer() throws ServiceConfigurationError
Configurer
using ServiceLoader
.
Configurer
or null if none is found.
ServiceConfigurationError
- if there is an error resolving the Configurer
or more than one Configurer
s are found.public static final SrvConfigDescriptor seedServerConfig(Configurer configurer, String[] args) throws Exception, jargs.gnu.CmdLineParser.OptionException
Configurer
and command line arguments.
Important Note:
Multiple invocations of seedServerConfig(Configurer, String[])
or invocation of
seedServerConfig(Configurer, String[])
after any other platform class has
been loaded is inherently unreliable as by nature the intent of the Configurer is to
perform environment wide configuration that is used throughout the platform during static
singleton initialization of shared components.
configurer
- The Configurer
. If non null, then this method will call Configurer.configure(String[])
with the provided args.args
- The arguments used to seed server configuration.
SrvConfigDescriptor
.
Exception
- If there is an error seeding configuration.
CmdLineParser.OptionException
- If there is an error parsing arguments.public static final void main(String[] args)
public static final ProductInfo getProductInfo()
ProductInfo
which contains
the version of the platform being used.
ProductInfo
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |