public class LacpState extends Object
Constructor and Description |
---|
LacpState()
Constructs LACP state with zero value.
|
LacpState(byte state)
Constructs LACP state with given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isActive()
Checks if this state has the active flag set.
|
boolean |
isAggregatable()
Checks if this state has the aggregatable flag set.
|
boolean |
isCollecting()
Checks if this state has the collecting flag set.
|
boolean |
isDefault()
Checks if this state has the default flag set.
|
boolean |
isDistributing()
Checks if this state has the distributing flag set.
|
boolean |
isExpired()
Checks if this state has the expired flag set.
|
boolean |
isSync()
Checks if this state has the synchronization flag set.
|
boolean |
isTimeout()
Checks if this state has the timeout flag set.
|
LacpState |
setActive(boolean value)
Sets active bit.
|
LacpState |
setAggregatable(boolean value)
Sets aggregatable bit.
|
LacpState |
setCollecting(boolean value)
Sets collecting bit.
|
LacpState |
setDefault(boolean value)
Sets default bit.
|
LacpState |
setDistributing(boolean value)
Sets distributing bit.
|
LacpState |
setExpired(boolean value)
Sets expired bit.
|
LacpState |
setSync(boolean value)
Sets sync bit.
|
LacpState |
setTimeout(boolean value)
Sets timeout bit.
|
byte |
toByte()
Gets LACP state in byte.
|
String |
toString() |
public LacpState()
public LacpState(byte state)
state
- state in byte.public byte toByte()
public boolean isActive()
public LacpState setActive(boolean value)
value
- desired valuepublic boolean isTimeout()
public LacpState setTimeout(boolean value)
value
- desired valuepublic boolean isAggregatable()
public LacpState setAggregatable(boolean value)
value
- desired valuepublic boolean isSync()
public LacpState setSync(boolean value)
value
- desired valuepublic boolean isCollecting()
public LacpState setCollecting(boolean value)
value
- desired valuepublic boolean isDistributing()
public LacpState setDistributing(boolean value)
value
- desired valuepublic boolean isDefault()
public LacpState setDefault(boolean value)
value
- desired valuepublic boolean isExpired()
public LacpState setExpired(boolean value)
value
- desired value