Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

oracle.adf.share.connection.jmx
Class JMXConnection

java.lang.Object
  extended by oracle.adf.share.connection.jmx.JMXConnection
All Implemented Interfaces:
javax.naming.Referenceable

public class JMXConnection
extends java.lang.Object
implements javax.naming.Referenceable


Field Summary
static java.lang.String HOST
          Name of the attribute that specifies host name.
static java.lang.String LOOKUP_SERVICE_TYPE
           
static java.lang.String LST_JINI
           
static java.lang.String LST_JNDI
           
static java.lang.String LST_SLP
           
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.
 
Constructor Summary
JMXConnection()
          Deprecated. for internal use only: use the JMXConnectionFactory.createNew() method instead
JMXConnection(javax.naming.Reference ref)
          Deprecated. this method is for internal use only, users should not usually create their own connections but let the ADF CA do it for them via the JMXConnectionFactory
 
Method Summary
 javax.management.MBeanServerConnection connect()
           
 java.lang.String getAgent_name()
           
protected  java.lang.String getConnectionClassName()
           
protected  java.lang.String getConnectionFactoryClassName()
           
 java.lang.String getContext_factory()
           
 java.lang.String getHost()
          The host part of the Service URL.
 java.lang.String getLookup_service_type()
          Lookup service type used to locate JMXConnector This can be of following 3 types 1.
 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_provider_pkg()
          Name of the attribute that specifies the provider packages that are consulted when looking for the handler for a protocol.
 java.lang.String getProtocol()
          The protocol part of the Service URL.
 java.lang.String getProvider_url()
           
 javax.naming.Reference getReference()
          Retrieves the Reference of this object.
 java.lang.String getSecurity_credentials()
           
 java.lang.String getSecurity_principal()
           
 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 setAgent_name(java.lang.String agent_name)
           
 void setContext_factory(java.lang.String context_factory)
           
 void setHost(java.lang.String host)
           
 void setLookup_service_type(java.lang.String lookup_service_type)
           
 void setPassword(char[] password)
           
 void setPort(int port)
           
 void setProtocol_provider_pkg(java.lang.String protocol_provider_pkg)
           
 void setProtocol(java.lang.String protocol)
           
 void setProvider_url(java.lang.String provider_url)
           
 void setSecurity_credentials(java.lang.String security_credentials)
           
 void setSecurity_principal(java.lang.String security_principal)
           
 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

HOST

public static final java.lang.String HOST
Name of the attribute that specifies host name.

See Also:
Constant Field Values

PORT

public static final java.lang.String PORT
Name of the attribute that specifies port.

See Also:
Constant Field Values

PROTOCOL

public static final java.lang.String PROTOCOL
Name of the attribute that specifies protocol.

See Also:
Constant Field Values

URL_PATH

public static final java.lang.String URL_PATH
Name of the attribute that specifies url path.

See Also:
Constant Field Values

USERNAME

public static final java.lang.String USERNAME
Name of the attribute that specifies user name.

See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
Name of the attribute that specifies password.

See Also:
Constant Field Values

LOOKUP_SERVICE_TYPE

public static final java.lang.String LOOKUP_SERVICE_TYPE
See Also:
Constant Field Values

LST_JNDI

public static final java.lang.String LST_JNDI
See Also:
Constant Field Values

LST_SLP

public static final java.lang.String LST_SLP
See Also:
Constant Field Values

LST_JINI

public static final java.lang.String LST_JINI
See Also:
Constant Field Values
Constructor Detail

JMXConnection

@Deprecated
public JMXConnection()
Deprecated. for internal use only: use the JMXConnectionFactory.createNew() method instead


JMXConnection

@Deprecated
public JMXConnection(javax.naming.Reference ref)
Deprecated. this method is for internal use only, users should not usually create their own connections but let the ADF CA do it for them via the JMXConnectionFactory

Constructs a JMXConnection by parsing Reference object

Parameters:
ref - Reference object that represents JMX Connection
Method Detail

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Retrieves the Reference of this object.

Specified by:
getReference in interface javax.naming.Referenceable
Returns:
The non-null Reference of this object.
Throws:
javax.naming.NamingException - If a naming exception was encountered while retrieving the reference.

getConnectionClassName

protected java.lang.String getConnectionClassName()

getConnectionFactoryClassName

protected java.lang.String getConnectionFactoryClassName()

setHost

public void setHost(java.lang.String host)

getHost

public java.lang.String getHost()
The host part of the Service URL.

Returns:
host name

setProtocol

public void setProtocol(java.lang.String protocol)

getProtocol

public java.lang.String getProtocol()
The protocol part of the Service URL. This is never null. Ex. rmi,iiop,t3 (Weblogic)

Returns:
the protocol part of service URL. This is never null.

setUrl_path

public void setUrl_path(java.lang.String url_path)

getUrl_path

public java.lang.String getUrl_path()
The URL Path part of the Service URL. This is an empty string, or a string beginning with a slash (/), or a string beginning with a semicolon (;).

Returns:
url-path of service URL.

setUser

public void setUser(java.lang.String user)

getUser

public java.lang.String getUser()
User name of the credentials that are send to the connector server during connection.

Returns:
User name.

setPassword

public void setPassword(char[] password)

getPassword

public char[] getPassword()
Password of the credentials that are send to the connector server during connection.

Returns:
password.

setLookup_service_type

public void setLookup_service_type(java.lang.String lookup_service_type)

getLookup_service_type

public java.lang.String getLookup_service_type()
Lookup service type used to locate JMXConnector This can be of following 3 types 1. slp :- Service Location Protocol (SLP) Lookup service 2. jini :- Jini Lookup service 3. jndi :- Java Naming and Directory Interface (JNDI)/LDAP Lookup Service TODO Define Enumeration

Returns:
the lookup service type.

setContext_factory

public void setContext_factory(java.lang.String context_factory)

getContext_factory

public java.lang.String getContext_factory()

setProvider_url

public void setProvider_url(java.lang.String provider_url)

getProvider_url

public java.lang.String getProvider_url()

setSecurity_principal

public void setSecurity_principal(java.lang.String security_principal)

getSecurity_principal

public java.lang.String getSecurity_principal()

setSecurity_credentials

public void setSecurity_credentials(java.lang.String security_credentials)

getSecurity_credentials

public java.lang.String getSecurity_credentials()

setAgent_name

public void setAgent_name(java.lang.String agent_name)

getAgent_name

public java.lang.String getAgent_name()

connect

public javax.management.MBeanServerConnection connect()
                                               throws java.net.MalformedURLException,
                                                      java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

setPort

public void setPort(int port)

getPort

public int getPort()
The port part of the Service URL.

Returns:
port.

setProtocol_provider_pkg

public void setProtocol_provider_pkg(java.lang.String protocol_provider_pkg)

getProtocol_provider_pkg

public java.lang.String getProtocol_provider_pkg()
Name of the attribute that specifies the provider packages that are consulted when looking for the handler for a protocol. The value associated with this attribute is a string with package names separated by vertical bars (|).

Returns:
protocol provider packages

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

Copyright © 1997, 2011, Oracle. All rights reserved.