public class FreePortLocator
extends java.lang.Object
| Constructor and Description |
|---|
FreePortLocator(java.lang.String hostname,
int portStart,
int portEnd)
Constructor identifying the interface and the port range within which
to look for free ports.
|
| Modifier and Type | Method and Description |
|---|---|
int |
next()
Returns the next free port.
|
void |
skip(int num)
Skip a number of ports.
|
Copyright (c) 2004-2012 Oracle. All rights reserved.