org.codehaus.mojo.jboss
Class StartAndWaitMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.jboss.AbstractJBossMojo
org.codehaus.mojo.jboss.StartMojo
org.codehaus.mojo.jboss.StartAndWaitMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class StartAndWaitMojo
- extends StartMojo
Starts JBoss and waits until the server is started.
- Author:
- J-C
Field Summary |
protected java.lang.String |
hostName
The host JBoss is running on. |
protected java.lang.String |
namingPort
The port for the naming service. |
protected int |
retry
Maximum number of retries to JBoss JMX MBean connection. |
protected int |
timeout
Timeout in ms to start the application server (once JMX MBean connection
has been reached). |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
retry
protected int retry
- Maximum number of retries to JBoss JMX MBean connection.
timeout
protected int timeout
- Timeout in ms to start the application server (once JMX MBean connection
has been reached).
namingPort
protected java.lang.String namingPort
- The port for the naming service.
hostName
protected java.lang.String hostName
- The host JBoss is running on.
StartAndWaitMojo
public StartAndWaitMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Overrides:
execute
in class StartMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
isStarted
protected boolean isStarted(javax.management.MBeanServerConnection s)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInitialContext
protected javax.naming.InitialContext getInitialContext()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2005-2009. All Rights Reserved.