|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 2 (11.1.2.2.0) E17486-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.share.connection.jmx.JMXConnection
public class JMXConnection
ADF runtime class to manage instances of MBeanServerConnection. This class can be persisted using ADF Connection Architecture (ADF-CA) and is expected to execute in a container environment. December 2010 For 11gR1 we use different connection strategies for different containers, and keep an appserver_type attribute to record this. This class may also be used from DesignTime environments, and you may pass in the (transient) ClassLoader before building the MBeanServerConnection, in which case the PROTOCOL_PROVIDER_CLASS_LOADER property will be passed to the JMX framework.
Field Summary | |
---|---|
static java.lang.String |
APPSERVER_TYPE Name of attribute that specifies appserver type |
static java.lang.String |
DEFAULT_APPSERVER |
static java.lang.String |
HOST Name of the attribute that specifies host name. |
static java.lang.String |
JBOSS_APPSERVER |
static java.lang.String |
JMX_CONNECTION_NAME_PREFIX |
static java.lang.String |
JMXCONNECTION_CLASSNAME |
static java.lang.String |
JMXCONNECTIONFACTORY_CLASSNAME |
static java.lang.String |
PASSWORD Name of the attribute that specifies password. |
static java.lang.String |
PORT Name of the attribute that specifies port. |
static java.lang.String |
PROTOCOL Name of the attribute that specifies protocol. |
static java.lang.String |
URL_PATH Name of the attribute that specifies url path. |
static java.lang.String |
USERNAME Name of the attribute that specifies user name. |
static java.lang.String |
WAS_APPSERVER |
static java.lang.String |
WAS_DEFAULT_HOST |
static int |
WAS_DEFAULT_PORT |
static java.lang.String |
WAS_DEFAULT_PROTOCOL |
static java.lang.String |
WAS_DEFAULT_USER |
static java.lang.String |
WAS_INITIAL_CONTEXT_FACTORY |
static java.lang.String |
WAS_PROVIDER_URL_FORMAT |
static java.lang.String |
WAS_SERVICE_URL |
static java.lang.String |
WAS_URL_PACKAGE |
static java.lang.String |
WLS_APPSERVER |
static java.lang.String |
WLS_DEFAULT_HOST |
static int |
WLS_DEFAULT_PORT |
static java.lang.String |
WLS_DEFAULT_PROTOCOL |
static java.lang.String |
WLS_DEFAULT_USER |
static java.lang.String |
WLS_INSTALLATION_LOCATION |
static java.lang.String |
WLS_MBEANSERVER1 |
static java.lang.String |
WLS_MBEANSERVER2 |
static java.lang.String |
WLS_MBEANSERVER3 |
static java.lang.String |
WLS_PROTOCOL_PROVIDER_PACKAGE |
static java.lang.String |
WLS_URL_PROVIDER_PREFIX |
Constructor Summary | |
---|---|
protected |
JMXConnection() For internal use only: use the JMXConnectionFactory.createNew() method instead |
protected |
JMXConnection(javax.naming.Reference ref) Constructs a JMXConnection by parsing Reference object (This should only ever be done by oracle.adf.share.connection.jmx.JMXConnectionFactory) Note that this does not actually build a live MBeanServer connection |
Method Summary | |
---|---|
void |
close() Close the underlying MBeanserver connection |
javax.management.MBeanServerConnection |
connect() Connect to the mbean server and return a connection |
java.lang.String |
getAppserver_type() Constant for the supported appserver types |
protected java.lang.String |
getConnectionClassName() |
protected java.lang.String |
getConnectionFactoryClassName() |
java.lang.ClassLoader |
getConnectionLoader() Transient attribute used by the JMX framework to build an MBeanserverConnection. |
java.lang.String |
getHost() The host part of the Service URL. |
java.lang.String |
getJMXServiceURL() Return the compound attribute JMX Service URL |
char[] |
getPassword() Password of the credentials that are send to the connector server during connection. |
int |
getPort() The port part of the Service URL. |
java.lang.String |
getProtocol() The protocol part of the Service URL. |
javax.naming.Reference |
getReference() Retrieves the Reference of this object. |
java.lang.String |
getUrl_path() The URL Path part of the Service URL. |
java.lang.String |
getUser() User name of the credentials that are send to the connector server during connection. |
void |
setAppserver_type(java.lang.String appserver_type) |
void |
setConnectionLoader(java.lang.ClassLoader cl) |
void |
setHost(java.lang.String host) |
void |
setPassword(char[] password) |
void |
setPort(int port) |
void |
setProtocol(java.lang.String protocol) |
void |
setUrl_path(java.lang.String url_path) |
void |
setUser(java.lang.String user) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JMXCONNECTION_CLASSNAME
public static final java.lang.String JMXCONNECTIONFACTORY_CLASSNAME
public static final java.lang.String APPSERVER_TYPE
public static final java.lang.String USERNAME
public static final java.lang.String PASSWORD
public static final java.lang.String HOST
public static final java.lang.String PORT
public static final java.lang.String PROTOCOL
public static final java.lang.String URL_PATH
public static final java.lang.String WLS_APPSERVER
public static final java.lang.String WAS_APPSERVER
public static final java.lang.String JBOSS_APPSERVER
public static final java.lang.String DEFAULT_APPSERVER
public static final java.lang.String WLS_INSTALLATION_LOCATION
public static final java.lang.String WLS_PROTOCOL_PROVIDER_PACKAGE
public static final java.lang.String WLS_DEFAULT_HOST
public static final int WLS_DEFAULT_PORT
public static final java.lang.String WLS_DEFAULT_PROTOCOL
public static final java.lang.String WLS_DEFAULT_USER
public static final java.lang.String WLS_URL_PROVIDER_PREFIX
public static final java.lang.String WLS_MBEANSERVER1
public static final java.lang.String WLS_MBEANSERVER2
public static final java.lang.String WLS_MBEANSERVER3
public static final java.lang.String WAS_INITIAL_CONTEXT_FACTORY
public static final java.lang.String WAS_PROVIDER_URL_FORMAT
public static final java.lang.String WAS_URL_PACKAGE
public static final java.lang.String WAS_SERVICE_URL
public static final java.lang.String WAS_DEFAULT_HOST
public static final int WAS_DEFAULT_PORT
public static final java.lang.String WAS_DEFAULT_PROTOCOL
public static final java.lang.String WAS_DEFAULT_USER
public static final java.lang.String JMX_CONNECTION_NAME_PREFIX
Constructor Detail |
---|
protected JMXConnection()
protected JMXConnection(javax.naming.Reference ref)
ref
- Reference object that represents JMX ConnectionMethod Detail |
---|
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- If a naming exception was encountered while retrieving the reference.protected java.lang.String getConnectionClassName()
protected java.lang.String getConnectionFactoryClassName()
public java.lang.String getAppserver_type()
public void setAppserver_type(java.lang.String appserver_type)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public char[] getPassword()
public void setPassword(char[] password)
public java.lang.String getHost()
public void setHost(java.lang.String host)
public int getPort()
public void setPort(int port)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public java.lang.String getUrl_path()
public void setUrl_path(java.lang.String url_path)
public java.lang.ClassLoader getConnectionLoader()
public void setConnectionLoader(java.lang.ClassLoader cl)
public java.lang.String getJMXServiceURL()
public javax.management.MBeanServerConnection connect() throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public void close()
java.io.IOException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 2 (11.1.2.2.0) E17486-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |