public abstract class AbstractHostPortTask
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
AbstractHostPortTask()
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
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic 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.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - If the build failsCopyright © 2021 JBoss by Red Hat. All rights reserved.