public class RMITransportManager extends TransportManager
Purpose: Provide an RMI transport implementation for RCM.
Description: This class manages the RMI remote connections to other RCM service instances and posts the local RMI connection to this service instance in a name service so that other RCM service instances can connect to it.
| Modifier and Type | Field and Description |
|---|---|
boolean |
isRMIOverIIOP
Determines whether RMI over IIOP or not
|
DEFAULT_CONTEXT_FACTORY, DEFAULT_DEDICATED_CONNECTION_KEY, DEFAULT_DEDICATED_CONNECTION_VALUE, DEFAULT_IIOP_URL_PORT, DEFAULT_IIOP_URL_PROTOCOL, DEFAULT_NAMING_SERVICE, DEFAULT_REMOVE_CONNECTION_ON_ERROR_MODE, DEFAULT_URL_PORT, DEFAULT_URL_PROTOCOL, DEFAULT_USER_NAME, JNDI_NAMING_SERVICE, REGISTRY_NAMING_SERVICE| Constructor and Description |
|---|
RMITransportManager(RemoteCommandManager rcm) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.persistence.internal.sessions.coordination.RemoteConnection |
createConnection(ServiceId connectionServiceId)
INTERNAL: Create and return an RMI remote connection to the specified service
|
void |
createLocalConnection()
INTERNAL: Create the local command connection for this transport in a naming service and return it.
|
java.lang.String |
getDefaultLocalUrl()
INTERNAL: Return the default local URL for JNDI lookups
|
javax.naming.Context |
getLocalHostContext()
INTERNAL: Return the context used for looking up in local JNDI.
|
void |
initialize()
INTERNAL: Initialize default properties for RMI.
|
boolean |
isRMIOverIIOP()
INTERNAL Check whether RMI over IIOP or not
|
void |
removeLocalConnection()
ADVANCED: Remove the local connection from remote accesses.
|
void |
setIsRMIOverIIOP(boolean value)
INTERNAL set RMI over IIOP
|
addConnectionToExternalService, connectBackToRemote, createConnections, createDiscoveryManager, discardConnections, getConnectionsToExternalServices, getConnectionsToExternalServicesForCommandPropagation, getConnectionToLocalHost, getContext, getEncryptedPassword, getInitialContextFactoryName, getLocalContextProperties, getNamingServiceType, getPassword, getRemoteCommandManager, getRemoteContextProperties, getRemoteHostContext, getUserName, removeAllConnectionsToExternalServices, removeConnectionToExternalService, setConfig, setEncryptedPassword, setEncryptionClassName, setInitialContextFactoryName, setLocalContextProperties, setNamingServiceType, setPassword, setRemoteCommandManager, setRemoteContextProperties, setShouldRemoveConnectionOnError, setUserName, shouldRemoveConnectionOnErrorpublic RMITransportManager(RemoteCommandManager rcm)
public org.eclipse.persistence.internal.sessions.coordination.RemoteConnection createConnection(ServiceId connectionServiceId)
createConnection in class TransportManagerpublic void createLocalConnection()
createLocalConnection in class TransportManagerpublic javax.naming.Context getLocalHostContext()
public java.lang.String getDefaultLocalUrl()
public void initialize()
initialize in class TransportManagerpublic void removeLocalConnection()
removeLocalConnection in class TransportManagerpublic boolean isRMIOverIIOP()
public void setIsRMIOverIIOP(boolean value)