|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.context.JmxContext
public abstract class JmxContext
Main context for jmx environment.
| Field Summary | |
|---|---|
protected boolean |
adminNaming
If true, the target name is used to identify the server instead of using server. |
protected String |
cmdid
cmd id |
protected String |
domain
Server domain. |
protected JmxAp |
jmxap
JMX Access Point. |
protected String |
jmxUrl
JMX URL to connect to. |
protected org.ow2.util.log.Log |
logger
|
protected String |
name
Name set for the target in probe-config.xml file. |
protected Set<ObjectName> |
onames
Targeted names. |
protected String |
server
Server name. |
| Constructor Summary | |
|---|---|
JmxContext()
Create a context for a target to be monitored via a JMX connection. |
|
| Method Summary | |
|---|---|
String |
getCmdId()
|
String |
getDomain()
|
JmxAp |
getJmxap()
|
String |
getJmxUrl()
|
MBeanServerConnection |
getMBeanServerConnection()
|
String |
getName()
|
Set<ObjectName> |
getObjectNames(ObjectName onPattern)
Return a set of ObjectNames corresponding to a given ON pattern. |
Set<ObjectName> |
getObjectNames(String onPattern)
Return a set of ObjectNames corresponding to a given ON pattern. |
Set<ObjectName> |
getOnames()
|
String |
getServer()
|
boolean |
isAdminNaming()
|
boolean |
isStarted()
|
void |
setAdminNaming(boolean adminNaming)
|
void |
setCmdId(String c)
|
void |
setDomain(String domain)
|
void |
setJmxap(JmxAp jmxap)
|
void |
setJmxUrl(String jmxUrl)
|
void |
setName(String name)
|
void |
setOnames(Set<ObjectName> onames)
|
void |
setServer(String server)
|
void |
setStarted(boolean started)
|
void |
setUpManagentInfos()
Connect to the target in order to get management information allowing to identify the target : - management domain name - server name Here we suppose that the target is a J2eeServer that exposes standard MBeans like JVM MBean. |
void |
updateOnames(ObjectName onPattern)
Connect to the target and get the list of MBeans corresponding to a given ObjectName pattern. |
void |
updateOnames(String onPattern)
Connect to the target and get the list of MBeans corresponding to a given ObjectName pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.util.log.Log logger
protected String name
protected String server
protected String domain
protected String jmxUrl
protected JmxAp jmxap
protected Set<ObjectName> onames
protected String cmdid
protected boolean adminNaming
server.
Otherwise, getServer() will return the value of server.
| Constructor Detail |
|---|
public JmxContext()
adminNaming value (default value) means that the target name
is used instead the server name in the resulted monitoring data.
| Method Detail |
|---|
public boolean isAdminNaming()
public void setAdminNaming(boolean adminNaming)
public String getName()
public void setName(String name)
name - target namepublic String getServer()
public void setServer(String server)
server - the server namepublic String getDomain()
public void setDomain(String domain)
public String getJmxUrl()
public void setJmxUrl(String jmxUrl)
public JmxAp getJmxap()
public void setJmxap(JmxAp jmxap)
public String getCmdId()
public void setCmdId(String c)
public Set<ObjectName> getOnames()
public void setOnames(Set<ObjectName> onames)
public MBeanServerConnection getMBeanServerConnection()
public void updateOnames(String onPattern)
throws Exception
onPattern - the given ObjectName pattern.
Exception - could not get the MBean's list at this moment.
public void updateOnames(ObjectName onPattern)
throws Exception
onPattern - the given ObjectName pattern.
Exception - could not get the MBean's list at this moment.
public Set<ObjectName> getObjectNames(String onPattern)
throws Exception
onPattern - the given ON pattern
Exception
public Set<ObjectName> getObjectNames(ObjectName onPattern)
throws Exception
onPattern - the given ON pattern
Exceptionpublic boolean isStarted()
public void setStarted(boolean started)
public void setUpManagentInfos()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||