public class Server extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PORT |
| Modifier and Type | Method and Description |
|---|---|
protected Serializable |
checkDeployment() |
static Server |
create(String bindAddress,
int bindPort) |
protected Serializable |
executeTest(String testClassName,
String methodName) |
protected InetSocketAddress |
getBindAddress()
The address configured to which we should bind
|
protected ConcurrentMap<String,org.jboss.shrinkwrap.api.GenericArchive> |
getDeployedArchives() |
protected org.jboss.shrinkwrap.api.Domain |
getShrinkwrapDomain() |
boolean |
isRunning() |
void |
setDeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) |
void |
setError(Throwable error) |
void |
start() |
void |
stop() |
protected void |
stopAsync()
Asynchronously calls upon
stop() |
public static final int MAX_PORT
public static Server create(String bindAddress, int bindPort) throws IllegalArgumentException
IllegalArgumentExceptionpublic final void start()
throws ServerLifecycleException,
IllegalStateException
public final void stop()
throws ServerLifecycleException,
IllegalStateException
public final boolean isRunning()
protected final InetSocketAddress getBindAddress()
protected final ConcurrentMap<String,org.jboss.shrinkwrap.api.GenericArchive> getDeployedArchives()
protected final org.jboss.shrinkwrap.api.Domain getShrinkwrapDomain()
public void setDeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
public void setError(Throwable error)
protected final Serializable executeTest(String testClassName, String methodName)
protected Serializable checkDeployment()
protected final void stopAsync()
stop()Copyright © 2018 JBoss by Red Hat. All rights reserved.