com.neeve.server
Class Main

java.lang.Object
  extended by com.neeve.daemon.DmnMain
      extended by com.neeve.server.Main

public final class Main
extends com.neeve.daemon.DmnMain

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

loadBootstrapConfigurer

public static final Configurer loadBootstrapConfigurer()
                                                throws ServiceConfigurationError
Attempts to load find and load a single bootstrap Configurer using ServiceLoader.

Returns:
The single Configurer or null if none is found.
Throws:
ServiceConfigurationError - if there is an error resolving the Configurer or more than one Configurers are found.
Threading:
this call is safe for access by multiple threads concurrently.

seedServerConfig

public static final SrvConfigDescriptor seedServerConfig(Configurer configurer,
                                                         String[] args)
                                                  throws Exception,
                                                         jargs.gnu.CmdLineParser.OptionException
Seeds server configuration using the provided 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.

Parameters:
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.
Returns:
The seeded SrvConfigDescriptor.
Throws:
Exception - If there is an error seeding configuration.
CmdLineParser.OptionException - If there is an error parsing arguments.
Threading:
this call is not safe for access by multiple threads concurrently.

main

public static final void main(String[] args)
Main entry point


getProductInfo

public static final ProductInfo getProductInfo()
This method can be used to retrieve the ProductInfo which contains the version of the platform being used.

Returns:
The ProductInfo.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.