Package org.jboss.jca.sjc.maven
Class AbstractHostPortMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.jboss.jca.sjc.maven.AbstractHostPortMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public abstract class AbstractHostPortMojo extends org.apache.maven.plugin.AbstractMojoAn abstract host / port mojo- Author:
- Jesper Pedersen
-
-
Constructor Summary
Constructors Constructor Description AbstractHostPortMojo()Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute()Executeprotected SerializableexecuteCommand(String command)Execute commandprotected SerializableexecuteCommand(String command, Serializable[] arguments)Execute commandStringgetHost()Get the hostintgetPort()Get the portprotected booleanisCommandAvailable(String command)Is a command availableprotected booleanisLocal()Is localvoidsetHost(String v)Set the hostvoidsetPort(int v)Set the port
-
-
-
Method Detail
-
getHost
public String getHost()
Get the host- Returns:
- The value
-
setHost
public void setHost(String v)
Set the host- Parameters:
v- The value
-
getPort
public int getPort()
Get the port- Returns:
- The value
-
setPort
public void setPort(int v)
Set the port- Parameters:
v- The value
-
isLocal
protected boolean isLocal()
Is local- Returns:
- True if local; otherwise false
-
isCommandAvailable
protected boolean isCommandAvailable(String command) throws Throwable
Is a command available- Parameters:
command- The command name- Returns:
- True if available; otherwise false
- Throws:
Throwable- If an error occurs
-
executeCommand
protected Serializable executeCommand(String command) throws Throwable
Execute command- Parameters:
command- The command- Returns:
- The result
- Throws:
Throwable- If an error occurs
-
executeCommand
protected Serializable executeCommand(String command, Serializable[] arguments) throws Throwable
Execute command- Parameters:
command- The commandarguments- The arguments- Returns:
- The result
- Throws:
Throwable- If an error occurs
-
execute
public abstract void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute- Throws:
org.apache.maven.plugin.MojoExecutionException- Thrown if the plugin cant be executedorg.apache.maven.plugin.MojoFailureException- Thrown if there is an error
-
-