Methods Summary |
---|
protected java.lang.String | accessJMXValue()
try {
Object result = getJMXConnection().getAttribute(
new ObjectName(name), attribute);
if(result != null)
return result.toString();
} catch (Exception e) {
// ignore access or connection open errors
}
return null;
|
public boolean | eval()
if (value == null) {
throw new BuildException("value attribute is not set");
}
if ((name == null || attribute == null)) {
throw new BuildException(
"Must specify a 'attribute', name for equals condition");
}
//FIXME check url or host/parameter
String jmxValue = accessJMXValue();
if(jmxValue != null)
return jmxValue.equals(value);
return false;
|
public java.lang.String | getAttribute()
return attribute;
|
public java.lang.String | getHost()
return host;
|
public java.lang.String | getInfo()Return descriptive information about this implementation and the
corresponding version number, in the format
<description>/<version> .
return (info);
|
protected javax.management.MBeanServerConnection | getJMXConnection()
return JMXAccessorTask.accessJMXConnection(
getProject(),
getUrl(), getHost(),
getPort(), getUsername(), getPassword(), ref);
|
public java.lang.String | getName()
return name;
|
public java.lang.String | getPassword()
return password;
|
public java.lang.String | getPort()
return port;
|
public java.lang.String | getRef()
return ref;
|
public java.lang.String | getUrl()
return url;
|
public java.lang.String | getUsername()
return username;
|
public java.lang.String | getValue()
return value;
|
public void | setAttribute(java.lang.String attribute)
this.attribute = attribute;
|
public void | setHost(java.lang.String host)
this.host = host;
|
public void | setName(java.lang.String objectName)
this.name = objectName;
|
public void | setPassword(java.lang.String password)
this.password = password;
|
public void | setPort(java.lang.String port)
this.port = port;
|
public void | setRef(java.lang.String refId)
this.ref = refId;
|
public void | setUrl(java.lang.String url)
this.url = url;
|
public void | setUsername(java.lang.String username)
this.username = username;
|
public void | setValue(java.lang.String value)
this.value = value;
|