程序包 | 说明 |
---|---|
com.fr.third.jgroups.stack |
Support for managing protocol stacks.
|
com.fr.third.jgroups.util |
Provides useful functionality which cannot be assigned to any particular other package.
|
限定符和类型 | 方法和说明 |
---|---|
static StackType |
Configurator.determineIpVersionFromAddresses(java.util.Collection<java.net.InetAddress> addrs)
This method takes a set of InetAddresses, represented by an inetAddressmap, and:
- if the resulting set is non-empty, goes through to see if all InetAddress-related
user settings have a consistent IP version: v4 or v6, and throws an exception if not
- if the resulting set is empty, sets the default IP version based on available stacks
and if a dual stack, stack preferences
- sets the IP version to be used in the JGroups session
|
限定符和类型 | 方法和说明 |
---|---|
static void |
Configurator.setDefaultValues(java.util.List<Protocol> protocols,
StackType ip_version) |
static void |
Configurator.setDefaultValues(java.util.List<ProtocolConfiguration> protocol_configs,
java.util.List<Protocol> protocols,
StackType ip_version) |
限定符和类型 | 方法和说明 |
---|---|
static StackType |
Util.getIpStackType() |
static StackType |
StackType.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static StackType[] |
StackType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
static java.net.InetAddress |
Util.getLocalhost(StackType ip_version)
IP related utilities
|
static boolean |
Util.interfaceHasIPAddresses(java.net.NetworkInterface intf,
StackType ip_version)
A function to check if an interface supports an IP version (i.e has addresses
defined for that IP version).
|