Class SharedJGroupsChannelConfigurator
java.lang.Object
org.exoplatform.services.ispn.SharedJGroupsChannelConfigurator
- All Implemented Interfaces:
org.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator, org.jgroups.conf.ProtocolStackConfigurator, org.jgroups.stack.ProtocolHook
public class SharedJGroupsChannelConfigurator
extends Object
implements org.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
Gives Infinispan's transport a channel on the shared transport of a JGroups stack whose transport has a singleton
name (
SharedJGroupsTransport).-
Constructor Summary
ConstructorsConstructorDescriptionSharedJGroupsChannelConfigurator(org.jgroups.conf.ProtocolStackConfigurator stack, String nodeName) -
Method Summary
Modifier and TypeMethodDescriptionorg.jgroups.JChannelcreateChannel(String clusterName) getName()List<org.jgroups.conf.ProtocolConfiguration> voidsetDataSource(DataSource dataSource) The stacks shipped with the platform use no data source.voidsetSocketFactory(org.jgroups.util.SocketFactory socketFactory) The main channel is shared, so it keeps the socket factory of the stack.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jgroups.conf.ProtocolStackConfigurator
afterCreation
-
Constructor Details
-
SharedJGroupsChannelConfigurator
public SharedJGroupsChannelConfigurator(org.jgroups.conf.ProtocolStackConfigurator stack, String nodeName) - Parameters:
stack- a JGroups stack whose transport has a singleton namenodeName- the name of the node, given to the main channel;nullto let JGroups generate one
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
-
createChannel
-
setSocketFactory
public void setSocketFactory(org.jgroups.util.SocketFactory socketFactory) The main channel is shared, so it keeps the socket factory of the stack.- Specified by:
setSocketFactoryin interfaceorg.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
-
setDataSource
The stacks shipped with the platform use no data source.- Specified by:
setDataSourcein interfaceorg.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
-
getProtocolStackString
- Specified by:
getProtocolStackStringin interfaceorg.jgroups.conf.ProtocolStackConfigurator
-
getProtocolStack
- Specified by:
getProtocolStackin interfaceorg.jgroups.conf.ProtocolStackConfigurator
-