|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.testremote.server.MockServer
public class MockServer
MockServer Launches a new MC Bootstrap, EJB Containers, and performs all initialization to mock a remote server environment
Nested Class Summary | |
---|---|
static class |
MockServer.MockServerRequest
Various possible server requests |
static class |
MockServer.MockServerStatus
Various possible server status |
Constructor Summary | |
---|---|
MockServer()
Required no-arg Constructor |
Method Summary | |
---|---|
protected void |
acceptRequests()
Start accepting requests This is a blocking call and will wait for clients to connect |
org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap |
getBootstrap()
|
protected String[] |
getCommandLineArgs()
|
MockServer.MockServerStatus |
getStatus()
|
protected void |
initialize()
Initializes the instance by starting up an MC Bootstrap, deploying relevant *-beans.xml, creating and installing EJB Containers |
static void |
main(String... args)
Runtime Entry Point |
void |
setBootstrap(org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap bootstrap)
|
protected void |
setCommandLineArgs(String[] commandLineArgs)
|
void |
start()
Starts the server |
void |
stop()
Stops the server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockServer()
Method Detail |
---|
public static void main(String... args) throws Throwable
args
-
Throwable
protected void initialize() throws Throwable
Throwable
public void start() throws Throwable
IllegalStateException
- If the server is not in MockServerStatus.STOPPED
state
Throwable
public void stop()
IllegalStateException
- If the server is not in MockServerStatus.STARTED
statepublic MockServer.MockServerStatus getStatus()
protected void acceptRequests() throws Throwable
Throwable
Connector#start()}
public org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap getBootstrap()
public void setBootstrap(org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap bootstrap)
protected String[] getCommandLineArgs()
protected void setCommandLineArgs(String[] commandLineArgs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |