public class ForwardPortStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
static int | DEFINITE_FAILUREThe port forward definitely failed. |
static int | DEFINITE_SUCCESSThe port forward definitely succeeded. |
int | externalPortThe external port that was actually forwarded. |
static int | IN_PROGRESSThe port forward is in progress |
static int | MAYBE_SUCCESSThe port forward may have succeeded. |
static int | PROBABLE_FAILUREThe port forward probably failed |
static int | PROBABLE_SUCCESSThe port forward probably succeeded. |
String | reasonStringA descriptive message explaining the status or reason for failure |
int | statusThe 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