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 Details

    • SharedJGroupsChannelConfigurator

      public SharedJGroupsChannelConfigurator(org.jgroups.conf.ProtocolStackConfigurator stack, String nodeName)
      Parameters:
      stack - a JGroups stack whose transport has a singleton name
      nodeName - the name of the node, given to the main channel; null to let JGroups generate one
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
    • createChannel

      public org.jgroups.JChannel createChannel(String clusterName) throws Exception
      Specified by:
      createChannel in interface org.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
      Throws:
      Exception
    • 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:
      setSocketFactory in interface org.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
    • setDataSource

      public void setDataSource(DataSource dataSource)
      The stacks shipped with the platform use no data source.
      Specified by:
      setDataSource in interface org.infinispan.remoting.transport.jgroups.JGroupsChannelConfigurator
    • getProtocolStackString

      public String getProtocolStackString()
      Specified by:
      getProtocolStackString in interface org.jgroups.conf.ProtocolStackConfigurator
    • getProtocolStack

      public List<org.jgroups.conf.ProtocolConfiguration> getProtocolStack()
      Specified by:
      getProtocolStack in interface org.jgroups.conf.ProtocolStackConfigurator