public class AvailablePortHelper extends Object
| Constructor and Description |
|---|
AvailablePortHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getRandomAvailablePortForDUnitSite()
Returns array of unique randomly available tcp ports of specified count.
|
static int |
getRandomAvailableTCPPort()
Returns randomly available tcp port.
|
static List<com.gemstone.gemfire.internal.AvailablePort.Keeper> |
getRandomAvailableTCPPortKeepers(int count) |
static int |
getRandomAvailableTCPPortOnVM(VM vm)
Returns randomly available tcp port for use in VM which might be on a
remote host.
|
static int[] |
getRandomAvailableTCPPorts(int count)
Returns array of unique randomly available tcp ports of specified count.
|
static int[] |
getRandomAvailableTCPPortsForDUnitSite(int count)
Returns array of unique randomly available tcp ports of specified count.
|
static int |
getRandomAvailableUDPPort()
Returns randomly available udp port.
|
static int |
getRandomAvailableUDPPortOnVM(VM vm)
Returns randomly available udp port for use in VM which might be on a
remote host.
|
static int[] |
getRandomAvailableUDPPorts(int count)
Returns array of unique randomly available udp ports of specified count.
|
public static int[] getRandomAvailableTCPPorts(int count)
public static List<com.gemstone.gemfire.internal.AvailablePort.Keeper> getRandomAvailableTCPPortKeepers(int count)
public static int[] getRandomAvailableTCPPortsForDUnitSite(int count)
public static int getRandomAvailablePortForDUnitSite()
public static int getRandomAvailableTCPPort()
public static int getRandomAvailableTCPPortOnVM(VM vm)
public static int[] getRandomAvailableUDPPorts(int count)
public static int getRandomAvailableUDPPort()
public static int getRandomAvailableUDPPortOnVM(VM vm)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.