public class ResourceManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
ResourceManager.IpAddressRep |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
getNextMulticastAddress()
Returns the next available multicast address, e.g. "228.1.2.3".
|
static short |
getNextMulticastPort(java.net.InetAddress bind_addr) |
static short |
getNextTcpPort(java.net.InetAddress bind_addr) |
static java.util.List<java.lang.Short> |
getNextTcpPorts(java.net.InetAddress bind_addr,
int num_requested_ports) |
static java.lang.String |
getUniqueClusterName() |
static java.lang.String |
getUniqueClusterName(java.lang.String base_name) |
static void |
main(java.lang.String[] args) |
public static java.lang.String getNextMulticastAddress()
public static short getNextMulticastPort(java.net.InetAddress bind_addr) throws java.lang.Exception
java.lang.Exception
public static java.util.List<java.lang.Short> getNextTcpPorts(java.net.InetAddress bind_addr, int num_requested_ports) throws java.lang.Exception
java.lang.Exception
public static short getNextTcpPort(java.net.InetAddress bind_addr) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getUniqueClusterName(java.lang.String base_name)
public static java.lang.String getUniqueClusterName()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception