|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.maxiq.tools.jboss.JMXBean
Main generic bean for JMX access.
Note that the system property com.maxiq.tools.jboss.home"
should be properly set to the home of a running JBoss installation.
Constructor Summary | |
JMXBean()
Plain bean constructor. |
Method Summary | |
void |
addArgument(java.lang.Object arg)
Adds a new argument. |
void |
addArgument(java.lang.Object arg,
java.lang.String typename)
Adds a new typed argument. |
void |
clearArguments()
Reset/clears the argument list. |
protected void |
doExecute()
Internal method to perform the actual call |
void |
execute()
"execute" method allows using this as Ant task via Ant's proxy. |
java.lang.String |
getJbhome()
Gets the JBoss home as set in system property "com.maxiq.tools.jboss.home". |
java.lang.String |
getJndiurl()
Gets the JNDI URL of target server. |
java.lang.Object |
getLastReturnValue()
Get the returned value (if any) from the last successful call to execute(). |
java.lang.String |
getMbean()
Gets the target MBean name. |
java.lang.String |
getMethod()
Gets the target method name. |
java.lang.String |
getRmijndiname()
Gets the JNDI name of RMI adapter. |
java.lang.String |
getServerName()
Gets the server name. |
boolean |
isServerAlive()
Finds out if the server is responding. |
void |
setetRmijndiname(java.lang.String aRmiJndiName)
Sets the JNDI URL of target server. |
void |
setJbhome(java.lang.String newJBHome)
Gets the JBoss home directly into system property "com.maxiq.tools.jboss.home". |
void |
setJndiurl(java.lang.String aJndiUrl)
Sets the JNDI URL of target server. |
void |
setMbean(java.lang.String newMbean)
Sets the target MBean name. |
void |
setMethod(java.lang.String newMethod)
Sets the target method name. |
void |
setServerName(java.lang.String newServerName)
Sets the server name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JMXBean()
Method Detail |
public java.lang.String getServerName()
public void setServerName(java.lang.String newServerName)
newServerName
- New server name.public java.lang.String getJndiurl()
public void setJndiurl(java.lang.String aJndiUrl)
public java.lang.String getRmijndiname()
public void setetRmijndiname(java.lang.String aRmiJndiName)
public java.lang.String getMbean()
public void setMbean(java.lang.String newMbean)
newMbean
- New target MBean name.public java.lang.String getMethod()
public void setMethod(java.lang.String newMethod)
newMethod
- New target method name.public java.lang.String getJbhome()
public void setJbhome(java.lang.String newJBHome)
newMbean
- New JBoss home.public void clearArguments()
public void addArgument(java.lang.Object arg)
arg
- The argument to add.public void addArgument(java.lang.Object arg, java.lang.String typename)
arg
- The argument valuetypename
- The argument type (class name) as a Stringpublic java.lang.Object getLastReturnValue()
public void execute() throws JBossNotAvailable
JBossNotAvailable
- when it seems there's no JBoss to talk withpublic boolean isServerAlive()
true
if the server seems to be available.protected void doExecute() throws JBossNotAvailable
JBossNotAvailable
- when it seems there's no JBoss to talk with
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |