|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.embedded.EmbeddedXVM
com.neeve.server.embedded.EmbeddedServer
public class EmbeddedServer
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 |
---|
public static final EmbeddedServer create(SrvConfigDescriptor configDescriptor) throws Exception
SrvConfigDescriptor
.
Exception
- If there is an error creating the embedded server.public static final EmbeddedServer create(String... args) throws Exception
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:
Configurer
via Main.loadBootstrapConfigurer()
Configurer
is found invoke the Configurer.configure(String[])
method with the supplied arguments
to allow it to seed the configuration repository via VMConfigurer
.
SrvController
using the embedded
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.
Exception
- If there is an error creating the embedded server.Main
,
SrvController
public static final EmbeddedServer create(Configurer configurer, String... args) throws Exception
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.
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.
Exception
- If there is an error creating the embedded server.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |