|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.remotecommand.TransportManager
public abstract class TransportManager
Purpose: Provide an abstract class that offers a common API to handling remote command connections.
Description: This class manages the remote connections to other RCM service instances and posts the local connection to this service instance in a name service so that other RCM service instances can connect to it.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CONTEXT_FACTORY
Default JNDI properties for remote access |
static java.lang.String |
DEFAULT_DEDICATED_CONNECTION_KEY
|
static java.lang.String |
DEFAULT_DEDICATED_CONNECTION_VALUE
|
static java.lang.String |
DEFAULT_IIOP_URL_PORT
|
static java.lang.String |
DEFAULT_IIOP_URL_PROTOCOL
|
static int |
DEFAULT_NAMING_SERVICE
|
static boolean |
DEFAULT_REMOVE_CONNECTION_ON_ERROR_MODE
|
static java.lang.String |
DEFAULT_URL_PORT
|
static java.lang.String |
DEFAULT_URL_PROTOCOL
Defaults for RMI applications assume that we are running in OC4J |
static java.lang.String |
DEFAULT_USER_NAME
|
static int |
JNDI_NAMING_SERVICE
Valid values for naming service type |
static int |
REGISTRY_NAMING_SERVICE
|
Constructor Summary | |
---|---|
TransportManager()
|
Method Summary | |
---|---|
DiscoveryManager |
createDiscoveryManager()
ADVANCED: Factory of new DiscoveryManager for different transports. |
java.lang.String |
getInitialContextFactoryName()
Return the context factory name used as the value to the INITIAL_CONTEXT_FACTORY key in the cached context properties. |
java.util.Hashtable |
getLocalContextProperties()
ADVANCED: Return the properties that will be used to create the initial context for local JNDI access. |
int |
getNamingServiceType()
Return the type of naming service used to look up remote connections to other service instances. |
java.lang.String |
getPassword()
Return the password used as the value to the SECURITY_CREDENTIALS key in the cached context properties. |
java.util.Hashtable |
getRemoteContextProperties()
ADVANCED: Return the cached properties that will be used to create the initial context when doing remote JNDI lookups. |
java.lang.String |
getUserName()
Return the user name used as the value to the SECURITY_PRINCIPAL key in the cached context properties. |
abstract void |
removeLocalConnection()
ADVANCED: Remove the local connection from remote accesses. |
void |
setEncryptedPassword(java.lang.String encryptedPassword)
ADVANCED: Set the encrypted password used as the value to the SECURITY_CREDENTIALS key in the cached context properties. |
void |
setInitialContextFactoryName(java.lang.String contextFactoryName)
ADVANCED: Set the context factory name used as the value to the INITIAL_CONTEXT_FACTORY key in the cached context properties. |
void |
setLocalContextProperties(java.util.Hashtable properties)
ADVANCED: Set the properties that will be used to create the initial context for local JNDI access. |
void |
setNamingServiceType(int serviceType)
ADVANCED: Set the type of naming service used to look up remote connections to other service instances. |
void |
setPassword(java.lang.String password)
ADVANCED: Set the password used as the value to the SECURITY_CREDENTIALS key in the cached context properties. |
void |
setRemoteContextProperties(java.util.Hashtable properties)
ADVANCED: Set the cached properties that will be used to create the initial context when doing remote JNDI lookups. |
void |
setShouldRemoveConnectionOnError(boolean shouldRemoveConnectionOnError)
Set whether connections to remote services should be disconnected when an error occurs. |
void |
setUserName(java.lang.String userName)
ADVANCED: Set the user name used as the value to the SECURITY_PRINCIPAL key in the cached context properties. |
boolean |
shouldRemoveConnectionOnError()
Return whether connections to remote services should be disconnected when an error occurs. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_REMOVE_CONNECTION_ON_ERROR_MODE
public static final int JNDI_NAMING_SERVICE
TransportManager
public static final int REGISTRY_NAMING_SERVICE
public static final java.lang.String DEFAULT_URL_PROTOCOL
TransportManager
public static final java.lang.String DEFAULT_IIOP_URL_PROTOCOL
public static final java.lang.String DEFAULT_URL_PORT
public static final java.lang.String DEFAULT_IIOP_URL_PORT
public static final int DEFAULT_NAMING_SERVICE
public static final java.lang.String DEFAULT_CONTEXT_FACTORY
TransportManager
public static final java.lang.String DEFAULT_DEDICATED_CONNECTION_KEY
public static final java.lang.String DEFAULT_DEDICATED_CONNECTION_VALUE
public static final java.lang.String DEFAULT_USER_NAME
Constructor Detail |
---|
public TransportManager()
Method Detail |
---|
public int getNamingServiceType()
public void setNamingServiceType(int serviceType)
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public void setEncryptedPassword(java.lang.String encryptedPassword)
public java.lang.String getInitialContextFactoryName()
public void setInitialContextFactoryName(java.lang.String contextFactoryName)
public java.util.Hashtable getRemoteContextProperties()
public void setRemoteContextProperties(java.util.Hashtable properties)
public java.util.Hashtable getLocalContextProperties()
public void setLocalContextProperties(java.util.Hashtable properties)
public void setShouldRemoveConnectionOnError(boolean shouldRemoveConnectionOnError)
public boolean shouldRemoveConnectionOnError()
public DiscoveryManager createDiscoveryManager()
public abstract void removeLocalConnection()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |