public interface ClusterConfig
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getClusterName()
获取集群名
|
java.lang.String |
getMCastAddress()
获取组播地址
|
ClusterNCSelectionStrategy |
getNCSelectionStrategy()
当前网卡选择策略
|
ClusterConnectionProtocol |
getProtocol()
通信协议
|
boolean |
isCluster()
判断是否是集群
|
void |
setCluster(boolean cluster)
开启集群
|
void |
setClusterName(java.lang.String clusterName)
设置集群名
|
void |
setNCSelectionStrategy(ClusterNCSelectionStrategy selectionStrategy)
设置网卡选择策略
|
void |
setProtocol(ClusterConnectionProtocol protocol)
设置通信协议
|
boolean isCluster()
void setCluster(boolean cluster)
java.lang.String getMCastAddress()
java.lang.String getClusterName()
void setClusterName(java.lang.String clusterName)
ClusterConnectionProtocol getProtocol()
void setProtocol(ClusterConnectionProtocol protocol)
ClusterNCSelectionStrategy getNCSelectionStrategy()
void setNCSelectionStrategy(ClusterNCSelectionStrategy selectionStrategy)