|
||||||||
| 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 java.lang.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(java.lang.String... args)
Runtime Entry Point |
void |
setBootstrap(org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap bootstrap)
|
protected void |
setCommandLineArgs(java.lang.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(java.lang.String... args)
throws java.lang.Throwable
args -
java.lang.Throwable
protected void initialize()
throws java.lang.Throwable
java.lang.Throwable
public void start()
throws java.lang.Throwable
java.lang.IllegalStateException - If the server is not in MockServerStatus.STOPPED
state
java.lang.Throwablepublic void stop()
java.lang.IllegalStateException - If the server is not in MockServerStatus.STARTED
statepublic MockServer.MockServerStatus getStatus()
protected void acceptRequests()
throws java.lang.Throwable
java.lang.ThrowableConnector#start()}public org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap getBootstrap()
public void setBootstrap(org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap bootstrap)
protected java.lang.String[] getCommandLineArgs()
protected void setCommandLineArgs(java.lang.String[] commandLineArgs)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||