|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.servicemix.jbi.deployer.task.JbiTask
public abstract class JbiTask
A bean for connecting to a remote JMX MBeanServer
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
JbiTask()
|
|
| Method Summary | |
|---|---|
void |
close()
close any internal remote connections |
void |
connect()
initialize the connection |
protected abstract void |
doExecute(AdminCommandsService acs)
|
void |
execute()
execute the task |
AdminCommandsService |
getAdminCommandsService()
Get the AdminCommandsService |
String |
getContainerName()
|
String |
getHost()
|
JMXConnector |
getJMXConnector(JMXServiceURL url)
Get a JMXConnector from a url |
String |
getJmxDomainName()
|
String |
getJndiPath()
|
String |
getNamingStrategy()
|
String |
getPassword()
|
int |
getPort()
|
String |
getServerProtocol()
|
JMXServiceURL |
getServiceURL()
Get the JMXServiceURL - built from the protocol used and host names |
String |
getUsername()
|
boolean |
isFailOnError()
|
void |
setContainerName(String containerName)
|
void |
setFailOnError(boolean failOnError)
|
void |
setHost(String host)
|
void |
setJmxDomainName(String jmxDomainName)
|
void |
setJndiPath(String jndiPath)
|
void |
setNamingStrategy(String namingStrategy)
|
void |
setPassword(String password)
|
void |
setPort(int port)
|
void |
setServerProtocol(String serverProtocol)
|
void |
setUsername(String username)
|
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbiTask()
| Method Detail |
|---|
public JMXServiceURL getServiceURL()
throws MalformedURLException
MalformedURLException
public JMXConnector getJMXConnector(JMXServiceURL url)
throws IOException
url -
IOException
public void connect()
throws IOException
org.apache.tools.ant.BuildException
IOExceptionpublic void close()
public AdminCommandsService getAdminCommandsService()
throws Exception
Exceptionpublic String getContainerName()
public void setContainerName(String containerName)
containerName - The containerName to set.public String getJmxDomainName()
public void setJmxDomainName(String jmxDomainName)
jmxDomainName - The jmxDomainName to set.public String getJndiPath()
public void setJndiPath(String jndiPath)
jndiPath - The jndiPath to set.public String getHost()
public void setHost(String host)
host - The namingHost to set.public int getPort()
public void setPort(int port)
port - The namingPort to set.public String getServerProtocol()
public void setServerProtocol(String serverProtocol)
serverProtocol - The serverProtocol to set.public String getPassword()
public void setPassword(String password)
password - The passwd to set.public String getUsername()
public void setUsername(String username)
username - The username to set.public boolean isFailOnError()
public void setFailOnError(boolean failOnError)
failOnError - The failOnError to set.public String getNamingStrategy()
public void setNamingStrategy(String namingStrategy)
strategy - The namingStrategy to set.
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
protected abstract void doExecute(AdminCommandsService acs)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||