com.neeve.server.embedded
Class EmbeddedServer

java.lang.Object
  extended by com.neeve.server.embedded.EmbeddedXVM
      extended by com.neeve.server.embedded.EmbeddedServer

public class EmbeddedServer
extends EmbeddedXVM

This class extends EmbeddedXVM and is provided for backwards compatibility. Use EmbeddedXVM instead. This class is not intended for use in production and is provided for use in testing situations. It may be removed or altered in future releases.


Nested Class Summary
static class EmbeddedServer.State
          Enumerates the various EmbeddedServer states.
 
Method Summary
static EmbeddedServer create(Configurer configurer, String... args)
          Creates an embedded controller using the provided configurer and optional arguments.
static EmbeddedServer create(SrvConfigDescriptor configDescriptor)
          Creates an embedded talon xvm using the provided SrvConfigDescriptor.
static EmbeddedServer create(String... args)
          Bootstraps and creates an embedded talon xvm using the provided command line arguments.
 
Methods inherited from class com.neeve.server.embedded.EmbeddedXVM
create, create, getApplication, getServerController, getStartupError, getState, shutdown, shutdown, start, start, waitForStart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final EmbeddedServer create(SrvConfigDescriptor configDescriptor)
                                   throws Exception
Creates an embedded talon xvm using the provided SrvConfigDescriptor.

Returns:
A new EmbeddedServer.
Throws:
Exception - If there is an error creating the embedded server.
Threading:
this call is safe for concurrent access by multiple threads.

create

public static final EmbeddedServer create(String... args)
                                   throws Exception
Bootstraps and creates an embedded talon xvm using the provided command line arguments.

This method allows creation of a Talon server using the same arguments that would be used to launch a non embedded server using the Talon Server Main. Specifically this method:


create

public static final EmbeddedServer create(Configurer configurer,
                                          String... args)
                                   throws Exception
Creates an embedded controller using the provided configurer and optional arguments.

This method is equivalent to create(String...) except that the bootstrap Configurer invoked is the one supplied here. If the Configurer is null, no bootstrap configuration is performed.

Parameters:
configurer - The Bootstrap Configurer to use for seeding the server configuration.
args - The same arguments that would be passed on the command line when launching Main.main(String[]). It is possible to pass in "--help" to pring a listing of valid arguments.
Returns:
A new EmbeddedServer.
Throws:
Exception - If there is an error creating the embedded server.
Threading:
this call is not safe for access by multiple threads concurrently.


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