Class ChannelFactory
java.lang.Object
com.logicaldoc.enterprise.cluster.ChannelFactory
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jgroups.JChannel
getChannel
(String appRegion) Creates a channel for the cluster.getMembers
(String region)
-
Field Details
-
DEFAULT
- See Also:
-
REGION_SYSTEM
- See Also:
-
-
Constructor Details
-
ChannelFactory
public ChannelFactory()
-
-
Method Details
-
getChannel
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
-
getMembers
-