public class JGroupsTransportManager extends BroadcastTransportManager
Purpose: Provide a transport implementation for the Remote Command Module (RCM) that publishes to a JGroup channel.
JGroups is a library for distributed communications.
If issues are encountered with the default setting try,
-Djava.net.preferIPv4Stack=true
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 |
---|
JGroupsTransportManager()
PUBLIC:
Creates a JGroupsTransportManager.
|
JGroupsTransportManager(RemoteCommandManager rcm)
PUBLIC:
Creates a JGroupsTransportManager.
|
Modifier and Type | Method and Description |
---|---|
void |
createConnections()
INTERNAL:
JGroups does not require a DiscoveryManager, therefore
this method is called during RCM initialization to create all the necessary connections.
|
void |
createExternalConnection()
INTERNAL:
JGroups only has a single connection.
|
void |
createLocalConnection()
INTERNAL:
JGroups only requires a single connection.
|
java.lang.String |
getConfigFile()
PUBLIC:
Return the JGroups config xml file name.
|
java.util.Map<java.lang.String,org.eclipse.persistence.internal.sessions.coordination.RemoteConnection> |
getConnectionsToExternalServicesForCommandPropagation()
INTERNAL:
In case there's no external connection attempts to create one.
|
void |
removeLocalConnection()
INTERNAL:
No-op, as the local connection does not need to be removed as JGroups manages registration.
|
void |
setConfig(java.lang.String config)
Generic API to allow config to be set.
|
void |
setConfigFile(java.lang.String configFile)
Deprecated.
|
addConnectionToExternalService, connectBackToRemote, createConnection, createDiscoveryManager, getTopicName, setTopicName
discardConnections, getConnectionsToExternalServices, getConnectionToLocalHost, getContext, getEncryptedPassword, getInitialContextFactoryName, getLocalContextProperties, getNamingServiceType, getPassword, getRemoteCommandManager, getRemoteContextProperties, getRemoteHostContext, getUserName, initialize, removeAllConnectionsToExternalServices, removeConnectionToExternalService, setEncryptedPassword, setEncryptionClassName, setInitialContextFactoryName, setLocalContextProperties, setNamingServiceType, setPassword, setRemoteCommandManager, setRemoteContextProperties, setShouldRemoveConnectionOnError, setUserName, shouldRemoveConnectionOnError
public JGroupsTransportManager()
public JGroupsTransportManager(RemoteCommandManager rcm)
public void createConnections()
createConnections
in class BroadcastTransportManager
public void createExternalConnection()
public void createLocalConnection()
createLocalConnection
in class TransportManager
public java.util.Map<java.lang.String,org.eclipse.persistence.internal.sessions.coordination.RemoteConnection> getConnectionsToExternalServicesForCommandPropagation()
getConnectionsToExternalServicesForCommandPropagation
in class TransportManager
public void removeLocalConnection()
removeLocalConnection
in class TransportManager
public java.lang.String getConfigFile()
@Deprecated public void setConfigFile(java.lang.String configFile)
public void setConfig(java.lang.String config)
TransportManager
setConfig
in class TransportManager