Package net.officefloor.maven
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
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseOfficeFloor(int jmxPort) Closes theOfficeFloor.voidexecute()static OfficeFloorMBeangetOfficeFloorBean(int port) Obtains theOfficeFloorMBean.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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 theOfficeFloor.- Parameters:
jmxPort- JMX port.- Throws:
org.apache.maven.plugin.MojoExecutionException- If fails to close.org.apache.maven.plugin.MojoFailureException- If fails to close.
-
getOfficeFloorBean
Obtains theOfficeFloorMBean.- Parameters:
port- Port that JMX is running on forOfficeFloor.- Returns:
OfficeFloorMBean.- Throws:
Exception- If failure to connect and obtainOfficeFloorMBean.
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-