public abstract class AbstractHostPortMojo
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
AbstractHostPortMojo()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute()
Execute
|
protected Serializable |
executeCommand(String command)
Execute command
|
protected Serializable |
executeCommand(String command,
Serializable[] arguments)
Execute command
|
String |
getHost()
Get the host
|
int |
getPort()
Get the port
|
protected boolean |
isCommandAvailable(String command)
Is a command available
|
protected boolean |
isLocal()
Is local
|
void |
setHost(String v)
Set the host
|
void |
setPort(int v)
Set the port
|
public String getHost()
public void setHost(String v)
v - The valuepublic int getPort()
public void setPort(int v)
v - The valueprotected boolean isLocal()
protected boolean isCommandAvailable(String command) throws Throwable
command - The command nameThrowable - If an error occursprotected Serializable executeCommand(String command) throws Throwable
command - The commandThrowable - If an error occursprotected Serializable executeCommand(String command, Serializable[] arguments) throws Throwable
command - The commandarguments - The argumentsThrowable - If an error occurspublic abstract void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - Thrown if the plugin cant be executedorg.apache.maven.plugin.MojoFailureException - Thrown if there is an errorCopyright © 2021 JBoss by Red Hat. All rights reserved.