public enum TunnelWorkerStatus extends Enum<TunnelWorkerStatus>
| Enum Constant and Description |
|---|
WORKER_ENDED
TunnelWorker已结束, 比如TunnelWorker被shutdown。
此状态下的TunnelWorker可以通过重新的connectAndWorking恢复正常状态。
|
WORKER_HALT
TunnelWorker已停止, 比如TunnelWorker中对应的Tunnel被删除。
此状态下的TunnelWorker不能通过重新的connectAndWorking恢复正常状态,需要进行参数的订正等手工修复。
|
WORKER_READY
TunnelWorker的初始状态
|
WORKER_STARTED
TunnelWorker已启动
|
| Modifier and Type | Method and Description |
|---|---|
static TunnelWorkerStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TunnelWorkerStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TunnelWorkerStatus WORKER_READY
public static final TunnelWorkerStatus WORKER_STARTED
public static final TunnelWorkerStatus WORKER_ENDED
public static final TunnelWorkerStatus WORKER_HALT
public static TunnelWorkerStatus[] values()
for (TunnelWorkerStatus c : TunnelWorkerStatus.values()) System.out.println(c);
public static TunnelWorkerStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All Rights Reserved.