Class CloseOfficeFloorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.officefloor.maven.CloseOfficeFloorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
StopGoogleFunctionMojo

@Mojo(name="close", defaultPhase=POST_INTEGRATION_TEST) public class CloseOfficeFloorMojo extends org.apache.maven.plugin.AbstractMojo
Open OfficeFloor Mojo.
Author:
Daniel Sagenschneider
  • Constructor Details

    • CloseOfficeFloorMojo

      public CloseOfficeFloorMojo()
  • Method Details

    • closeOfficeFloor

      public static void closeOfficeFloor(int jmxPort) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Closes the OfficeFloor.
      Parameters:
      jmxPort - JMX port.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If fails to close.
      org.apache.maven.plugin.MojoFailureException - If fails to close.
    • getOfficeFloorBean

      public static OfficeFloorMBean getOfficeFloorBean(int port) throws Exception
      Obtains the OfficeFloorMBean.
      Parameters:
      port - Port that JMX is running on for OfficeFloor.
      Returns:
      OfficeFloorMBean.
      Throws:
      Exception - If failure to connect and obtain OfficeFloorMBean.
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException