public abstract class JMXAccessorConditionBase
extends org.apache.tools.ant.ProjectComponent
implements org.apache.tools.ant.taskdefs.condition.Condition
Constructor and Description |
---|
JMXAccessorConditionBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
accessJMXValue()
Get value from MBeans attribute.
|
String |
getAttribute() |
String |
getHost() |
protected MBeanServerConnection |
getJMXConnection()
Get JMXConnection (default look at jmx.server project reference
from jmxOpen Task).
|
String |
getName() |
String |
getPassword() |
String |
getPort() |
String |
getRef() |
String |
getUrl() |
String |
getUsername() |
String |
getValue() |
void |
setAttribute(String attribute) |
void |
setHost(String host) |
void |
setName(String objectName) |
void |
setPassword(String password) |
void |
setPort(String port) |
void |
setRef(String refId) |
void |
setUrl(String url) |
void |
setUsername(String username) |
void |
setValue(String value) |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public String getAttribute()
public void setAttribute(String attribute)
attribute
- The attribute to set.public String getHost()
public void setHost(String host)
host
- The host to set.public String getName()
public void setName(String objectName)
objectName
- The name to set.public String getPassword()
public void setPassword(String password)
password
- The password to set.public String getPort()
public void setPort(String port)
port
- The port to set.public String getUrl()
public void setUrl(String url)
url
- The url to set.public String getUsername()
public void setUsername(String username)
username
- The username to set.public String getValue()
public void setValue(String value)
public String getRef()
public void setRef(String refId)
refId
- The ref to set.protected MBeanServerConnection getJMXConnection() throws MalformedURLException, IOException
MalformedURLException
IOException
protected String accessJMXValue()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.