|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.jboss.AbstractJBossServerMojo
org.codehaus.mojo.jboss.StartMojo
org.codehaus.mojo.jboss.StartAndWaitMojo
public class StartAndWaitMojo
Starts JBoss and waits until the server is started.
| Field Summary | |
|---|---|
protected String |
hostName
The host JBoss is running on. |
protected String |
namingPort
The port for the naming service. |
static long |
ONE_SECOND
One second in millis. |
protected int |
retry
Maximum number of retries to get JBoss JMX MBean connection. |
protected int |
retryWait
Wait in ms before each retry of the JBoss JMX MBean connection. |
protected int |
timeout
Time in ms to start the application server (once JMX MBean connection has been reached). |
| Fields inherited from class org.codehaus.mojo.jboss.StartMojo |
|---|
options, startOptions, STARTUP_COMMAND |
| Fields inherited from class org.codehaus.mojo.jboss.AbstractJBossServerMojo |
|---|
jbossHome, serverName |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
StartAndWaitMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
Main plugin execution. |
protected InitialContext |
getInitialContext()
Set up the context information for connecting the the jboss server. |
protected boolean |
isStarted(javax.management.MBeanServerConnection server)
Check if the server has finished startup. |
| Methods inherited from class org.codehaus.mojo.jboss.AbstractJBossServerMojo |
|---|
checkConfig, getPassword, getUsername, launch, launchUnixScript, launchWindowsBatch |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long ONE_SECOND
protected int retry
protected int retryWait
protected int timeout
protected String namingPort
protected String hostName
| Constructor Detail |
|---|
public StartAndWaitMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class StartMojoorg.apache.maven.plugin.MojoExecutionException
protected boolean isStarted(javax.management.MBeanServerConnection server)
throws Exception
s -
Exception
protected InitialContext getInitialContext()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||