public class ForwardPortStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFINITE_FAILURE
The port forward definitely failed.
|
static int |
DEFINITE_SUCCESS
The port forward definitely succeeded.
|
int |
externalPort
The external port that was actually forwarded.
|
static int |
IN_PROGRESS
The port forward is in progress
|
static int |
MAYBE_SUCCESS
The port forward may have succeeded.
|
static int |
PROBABLE_FAILURE
The port forward probably failed
|
static int |
PROBABLE_SUCCESS
The port forward probably succeeded.
|
String |
reasonString
A descriptive message explaining the status or reason for failure
|
int |
status
The current status of the port forwarding operation
|
| Constructor and Description |
|---|
ForwardPortStatus(int status,
String reason,
int externalPort)
Creates a new ForwardPortStatus with the specified status, reason, and external port.
|
public static final int DEFINITE_FAILURE
public static final int DEFINITE_SUCCESS
public final int externalPort
public static final int IN_PROGRESS
public static final int MAYBE_SUCCESS
public static final int PROBABLE_FAILURE
public static final int PROBABLE_SUCCESS
public final String reasonString
public final int status
public ForwardPortStatus(int status,
String reason,
int externalPort)
status - the status code of the port forwarding operationreason - a descriptive message explaining the status or reason for failureexternalPort - the external port that was actually forwarded