public class ClusterEngineUtils
extends java.lang.Object
构造器和说明 |
---|
ClusterEngineUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<java.lang.String> |
getAllAddresses()
获取当前可用的地址
|
static java.lang.String |
getIDFromAddress(Address address)
jgroup 的地址转配置文件中的id
|
static ClusterNode |
transformAddress(Address address) |
static Address |
transformAddress(ClusterNode node,
java.util.List<Address> members)
将上层地址转化为JGroups地址
|
static Address |
transformAddress(java.lang.String id,
java.util.List<Address> members)
从给定的地址中找出指定id的地址
|
static java.util.List<ClusterNode> |
translateMembers(java.util.List<Address> members)
批量转换成员
|
static java.util.List<ClusterMergeSubView> |
translateMergeSubView(java.util.List<View> subGroups)
jgroup 的view 转换成子view
|
public static Address transformAddress(ClusterNode node, java.util.List<Address> members)
public static Address transformAddress(java.lang.String id, java.util.List<Address> members)
id
- members
- public static ClusterNode transformAddress(Address address)
public static java.util.List<ClusterNode> translateMembers(java.util.List<Address> members)
members
- public static java.util.List<ClusterMergeSubView> translateMergeSubView(java.util.List<View> subGroups)
subGroups
- public static java.lang.String getIDFromAddress(Address address)
address
- public static java.util.List<java.lang.String> getAllAddresses()