Class JChannelFactory

  • All Implemented Interfaces:
    ChannelFactory, ChannelFactory, org.jgroups.conf.ProtocolStackConfigurator

    public class JChannelFactory
    extends Object
    implements ChannelFactory, org.jgroups.conf.ProtocolStackConfigurator
    Factory for creating fork-able channels.
    Author:
    Paul Ferraro
    • Method Detail

      • createChannel

        public org.jgroups.JChannel createChannel​(String id)
                                           throws Exception
        Description copied from interface: ChannelFactory
        Creates a JGroups channel
        Specified by:
        createChannel in interface ChannelFactory
        Parameters:
        id - the unique identifier of this channel
        Returns:
        a JGroups channel
        Throws:
        Exception - if there was a failure setting up the protocol stack
      • isUnknownForkResponse

        public boolean isUnknownForkResponse​(ByteBuffer buffer)
        Description copied from interface: ChannelFactory
        Determines whether or not the specified message response indicates the fork stack or fork channel required to handle a request does not exist on the recipient node.
        Specified by:
        isUnknownForkResponse in interface ChannelFactory
        Parameters:
        buffer - a message response
        Returns:
        true, if the response indicates a missing fork stack or channel.
      • getProtocolStackString

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

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