BgpPeerState Class

public final class BgpPeerState
extends ExpandableStringEnum<BgpPeerState>

The BGP peer state.

Field Summary

Modifier and Type Field and Description
static final BgpPeerState CONNECTED

Connected.

static final BgpPeerState CONNECTING

Connecting.

static final BgpPeerState IDLE

Idle.

static final BgpPeerState STOPPED

Stopped.

static final BgpPeerState UNKNOWN

Unknown.

Constructor Summary

Constructor Description
BgpPeerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of BgpPeerState value.

Method Summary

Modifier and Type Method and Description
static BgpPeerState fromString(String name)

Creates or finds a BgpPeerState from its string representation.

static Collection<BgpPeerState> values()

Gets known BgpPeerState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CONNECTED

public static final BgpPeerState CONNECTED

Connected.

CONNECTING

public static final BgpPeerState CONNECTING

Connecting.

IDLE

public static final BgpPeerState IDLE

Idle.

STOPPED

public static final BgpPeerState STOPPED

Stopped.

UNKNOWN

public static final BgpPeerState UNKNOWN

Unknown.

Constructor Details

BgpPeerState

@Deprecated
public BgpPeerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of BgpPeerState value.

Method Details

fromString

public static BgpPeerState fromString(String name)

Creates or finds a BgpPeerState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding BgpPeerState.

values

public static Collection<BgpPeerState> values()

Gets known BgpPeerState values.

Returns:

known BgpPeerState values.

Applies to