org.codehaus.mojo.jboss
Class StartAndWaitMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jboss.AbstractJBossMojo
          extended by org.codehaus.mojo.jboss.StartMojo
              extended by 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 class org.codehaus.mojo.jboss.AbstractJBossMojo
jbossHome, outputDirectory, serverName
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
StartAndWaitMojo()
           
 
Method Summary
 void execute()
           
protected  javax.naming.InitialContext getInitialContext()
           
protected  boolean isStarted(javax.management.MBeanServerConnection s)
           
 
Methods inherited from class org.codehaus.mojo.jboss.AbstractJBossMojo
checkConfig, dump, launch
 
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

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.

Constructor Detail

StartAndWaitMojo

public StartAndWaitMojo()
Method Detail

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-2010. All Rights Reserved.