|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.util.jmx.MBeanServerConnectionSource
public final class MBeanServerConnectionSource
A ConnectionSource for in-process access where the MBeanServer is actually known and where later access to it may be desired.
| Field Summary | |
|---|---|
protected MBeanServer |
mServer
|
| Constructor Summary | |
|---|---|
MBeanServerConnectionSource(MBeanServer server)
Create a new instance for the specified MBeanServer |
|
| Method Summary | |
|---|---|
MBeanServerConnection |
getExistingMBeanServerConnection()
|
JMXConnector |
getJMXConnector(boolean forceNew)
|
MBeanServer |
getMBeanServer()
Return the internal MBeanServer |
MBeanServerConnection |
getMBeanServerConnection(boolean forceNew)
Return a valid MBeanServerConnection, making a new connection if necessary, or returning an existing one if still valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MBeanServer mServer
| Constructor Detail |
|---|
public MBeanServerConnectionSource(MBeanServer server)
| Method Detail |
|---|
public MBeanServer getMBeanServer()
public MBeanServerConnection getExistingMBeanServerConnection()
getExistingMBeanServerConnection in interface ConnectionSourcepublic MBeanServerConnection getMBeanServerConnection(boolean forceNew)
ConnectionSourceShould not be called frequently, as the check for validity will make a remote call.
An implementation may choose to ignore the 'forceNew' parameter and always return the same connection.
getMBeanServerConnection in interface ConnectionSourceforceNew - creates a new connection instead of reusing an existing one
public JMXConnector getJMXConnector(boolean forceNew)
getJMXConnector in interface ConnectionSource
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.