Enum AbstractPCEPSessionNegotiator.State
- java.lang.Object
-
- java.lang.Enum<AbstractPCEPSessionNegotiator.State>
-
- org.opendaylight.protocol.pcep.impl.AbstractPCEPSessionNegotiator.State
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractPCEPSessionNegotiator.State>
- Enclosing class:
- AbstractPCEPSessionNegotiator
public static enum AbstractPCEPSessionNegotiator.State extends Enum<AbstractPCEPSessionNegotiator.State>
PCEP session negotiation state transitions are described in RFC5440. Simplification the two timers (KeepWait and OpenWait) are merged into a FailTimer, as they are mutually exclusive, have the same timeout value and their action is to terminate negotiation. This timer is restarted between state transitions and runs in all states except Idle and Finished.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINISHED
Negotiation has completed.IDLE
Negotiation has not begun.KEEP_WAIT
Waiting for the peer's KEEPALIVE message.OPEN_WAIT
Waiting for the peer's OPEN message.START_TLS_WAIT
Waiting for the peer's StartTLS message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractPCEPSessionNegotiator.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractPCEPSessionNegotiator.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final AbstractPCEPSessionNegotiator.State IDLE
Negotiation has not begun. It will be activated once we are asked to provide our initial proposal, at which point we move into OpenWait state.
-
START_TLS_WAIT
public static final AbstractPCEPSessionNegotiator.State START_TLS_WAIT
Waiting for the peer's StartTLS message.
-
OPEN_WAIT
public static final AbstractPCEPSessionNegotiator.State OPEN_WAIT
Waiting for the peer's OPEN message.
-
KEEP_WAIT
public static final AbstractPCEPSessionNegotiator.State KEEP_WAIT
Waiting for the peer's KEEPALIVE message.
-
FINISHED
public static final AbstractPCEPSessionNegotiator.State FINISHED
Negotiation has completed.
-
-
Method Detail
-
values
public static AbstractPCEPSessionNegotiator.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractPCEPSessionNegotiator.State c : AbstractPCEPSessionNegotiator.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractPCEPSessionNegotiator.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-