Package org.onlab.packet.lacp
Class LacpState
- java.lang.Object
-
- org.onlab.packet.lacp.LacpState
-
public class LacpState extends Object
LACP state.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
toByte
public byte toByte()
Gets LACP state in byte.- Returns:
- LACP state
-
isActive
public boolean isActive()
Checks if this state has the active flag set.- Returns:
- true if this state has the active flag set.
-
setActive
public LacpState setActive(boolean value)
Sets active bit.- Parameters:
value
- desired value- Returns:
- this
-
isTimeout
public boolean isTimeout()
Checks if this state has the timeout flag set. Timeout flag indicates short timeout if set.- Returns:
- true if this state has the timeout flag set.
-
setTimeout
public LacpState setTimeout(boolean value)
Sets timeout bit.- Parameters:
value
- desired value- Returns:
- this
-
isAggregatable
public boolean isAggregatable()
Checks if this state has the aggregatable flag set.- Returns:
- true if this state has the aggregatable flag set.
-
setAggregatable
public LacpState setAggregatable(boolean value)
Sets aggregatable bit.- Parameters:
value
- desired value- Returns:
- this
-
isSync
public boolean isSync()
Checks if this state has the synchronization flag set.- Returns:
- true if this state has the synchronization flag set.
-
setSync
public LacpState setSync(boolean value)
Sets sync bit.- Parameters:
value
- desired value- Returns:
- this
-
isCollecting
public boolean isCollecting()
Checks if this state has the collecting flag set.- Returns:
- true if this state has the collecting flag set.
-
setCollecting
public LacpState setCollecting(boolean value)
Sets collecting bit.- Parameters:
value
- desired value- Returns:
- this
-
isDistributing
public boolean isDistributing()
Checks if this state has the distributing flag set.- Returns:
- true if this state has the distributing flag set.
-
setDistributing
public LacpState setDistributing(boolean value)
Sets distributing bit.- Parameters:
value
- desired value- Returns:
- this
-
isDefault
public boolean isDefault()
Checks if this state has the default flag set.- Returns:
- true if this state has the default flag set.
-
setDefault
public LacpState setDefault(boolean value)
Sets default bit.- Parameters:
value
- desired value- Returns:
- this
-
isExpired
public boolean isExpired()
Checks if this state has the expired flag set.- Returns:
- true if this state has the expired flag set.
-
setExpired
public LacpState setExpired(boolean value)
Sets expired bit.- Parameters:
value
- desired value- Returns:
- this
-
-