Class ChannelFactory

java.lang.Object
com.logicaldoc.enterprise.cluster.ChannelFactory

public class ChannelFactory extends Object
Factory class to manage all the cluster's communication channels. Every channel is binded to an application's region.
Since:
6.4
Author:
Marco Meschieri - LogicalDOC
  • Field Details

  • Constructor Details

    • ChannelFactory

      public ChannelFactory()
  • Method Details

    • getChannel

      public static org.jgroups.JChannel getChannel(String appRegion)
      Creates a channel for the cluster. This method should not be heavily used as the checks and synchronizations will slow the calls. Returned channels can be kept and will be modified directly using the factory-held references, if necessary.

      The application region is used to determine the protocol configuration to apply.

      This method returns a dummy channel if no cluster name has been provided.

      Parameters:
      appRegion - the application region identifier.
      Returns:
      Returns a channel
    • getRegions

      public Set<String> getRegions()
    • getMembers

      public List<String> getMembers(String region)