FileDocCategorySizeDatePackage
ConnectionSource.javaAPI DocGlassfish v2 API3367Fri May 04 22:30:32 BST 2007com.sun.appserv.management.client

ConnectionSource

public interface ConnectionSource
A source of an MBeanServerConnection.
see
AppserverConnectionSource
see
com.sun.appserv.management.util.jmx.MBeanServerConnectionConnectionSource
see
com.sun.appserv.management.util.jmx.MBeanServerConnectionSource

Fields Summary
Constructors Summary
Methods Summary
public javax.management.MBeanServerConnectiongetExistingMBeanServerConnection()

return
existing connection, valid or not, may be null

public javax.management.remote.JMXConnectorgetJMXConnector(boolean forceNew)

return
a JMXConnector or null if not appropriate

public javax.management.MBeanServerConnectiongetMBeanServerConnection(boolean forceNew)
Return a valid MBeanServerConnection, making a new connection if necessary, or returning an existing one if still valid. Some implementations may choose to not allow creation of a new connection (when 'forceNew' is specified).

Should 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.

param
forceNew creates a new connection instead of reusing an existing one
return
the connection, or null if a new one is not possible