Package org.apache.catalina.ant.jmx
Class JMXAccessorConditionBase
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.catalina.ant.jmx.JMXAccessorConditionBase
- All Implemented Interfaces:
Cloneable
,org.apache.tools.ant.taskdefs.condition.Condition
- Direct Known Subclasses:
JMXAccessorCondition
,JMXAccessorEqualsCondition
public abstract class JMXAccessorConditionBase
extends org.apache.tools.ant.ProjectComponent
implements org.apache.tools.ant.taskdefs.condition.Condition
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get value from MBeans attribute.getHost()
protected MBeanServerConnection
Get JMXConnection (default look at jmx.server project reference from jmxOpen Task).getName()
getPort()
getRef()
getUrl()
getValue()
void
setAttribute
(String attribute) void
void
void
setPassword
(String password) void
void
void
void
setUsername
(String username) void
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.tools.ant.taskdefs.condition.Condition
eval
-
Constructor Details
-
JMXAccessorConditionBase
public JMXAccessorConditionBase()
-
-
Method Details
-
getAttribute
- Returns:
- Returns the attribute.
-
setAttribute
- Parameters:
attribute
- The attribute to set.
-
getHost
- Returns:
- Returns the host.
-
setHost
- Parameters:
host
- The host to set.
-
getName
- Returns:
- Returns the name.
-
setName
- Parameters:
objectName
- The name to set.
-
getPassword
- Returns:
- Returns the password.
-
setPassword
- Parameters:
password
- The password to set.
-
getPort
- Returns:
- Returns the port.
-
setPort
- Parameters:
port
- The port to set.
-
getUrl
- Returns:
- Returns the url.
-
setUrl
- Parameters:
url
- The url to set.
-
getUsername
- Returns:
- Returns the username.
-
setUsername
- Parameters:
username
- The username to set.
-
getValue
- Returns:
- Returns the value.
-
setValue
-
getRef
- Returns:
- Returns the ref.
-
setRef
- Parameters:
refId
- The ref to set.
-
getJMXConnection
Get JMXConnection (default look at jmx.server project reference from jmxOpen Task).- Returns:
- active JMXConnection
- Throws:
MalformedURLException
- Invalid URL for JMX serverIOException
- Connection error
-
accessJMXValue
-