public abstract class AbstractJBIAntTask
extends org.apache.tools.ant.Task
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_JMX_HOST |
static String |
DEFAULT_JMX_PORT |
protected boolean |
failOnError
Fail on error
|
protected String |
host
Host jmx
|
protected String |
password
Password for security
|
protected String |
port
Port jmx
|
static Pattern |
saNamepattern
Pattern of a service-assembly (un)deployment report about a failed service-assembly (un)deployment because of the
service-assembly, not because of its service-units.
|
static Pattern |
suResultpattern
Pattern of the service-assembly (un)deployment report about a failed service-unit (un)deployment.
|
protected String |
username
User name for security
|
| Constructor and Description |
|---|
AbstractJBIAntTask() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doTask()
Do the task job
|
void |
execute() |
String |
getHost() |
org.ow2.petals.jmx.api.api.JMXClient |
getJMXClient()
Get a connection to JMX
|
String |
getPassword() |
String |
getPort() |
String |
getUsername() |
boolean |
isFailOnError() |
void |
setFailOnError(boolean failOnError) |
void |
setHost(String host) |
void |
setPassword(String password) |
void |
setPort(String port) |
void |
setUsername(String username) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic static final String DEFAULT_JMX_HOST
public static final String DEFAULT_JMX_PORT
public static final Pattern saNamepattern
public static final Pattern suResultpattern
protected boolean failOnError
protected String host
protected String password
protected String port
protected String username
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic String getHost()
public org.ow2.petals.jmx.api.api.JMXClient getJMXClient()
throws NumberFormatException,
org.ow2.petals.jmx.api.api.exception.ConnectionErrorException,
org.ow2.petals.jmx.api.api.exception.DuplicatedServiceException,
org.ow2.petals.jmx.api.api.exception.MissingServiceException
org.ow2.petals.jmx.api.api.exception.ConnectionErrorExceptionNumberFormatExceptionorg.ow2.petals.jmx.api.api.exception.MissingServiceExceptionorg.ow2.petals.jmx.api.api.exception.DuplicatedServiceExceptionpublic String getPassword()
public String getPort()
public String getUsername()
public boolean isFailOnError()
public void setFailOnError(boolean failOnError)
failOnError - the failOnError to setpublic void setHost(String host)
host - the host to setpublic void setPassword(String password)
password - the password to setpublic void setPort(String port)
port - the port to setpublic void setUsername(String username)
username - the username to setCopyright © 2005-2015 Linagora. All Rights Reserved.