Represents general flow info.
Definition at line 39 of file BaseFlow.java.
◆ BaseFlow()
org.openkilda.messaging.command.flow.BaseFlow.BaseFlow |
( |
@JsonProperty(TRANSACTION_ID) final Long |
transactionId, |
|
|
@JsonProperty(FLOW_ID) final String |
id, |
|
|
@JsonProperty("cookie") final Long |
cookie, |
|
|
@JsonProperty("switch_id") final SwitchId |
switchId |
|
) |
| |
Instance constructor.
- Parameters
-
transactionId | transaction id |
id | flow id |
cookie | cookie of the flow |
switchId | switch id for flow management |
- Exceptions
-
IllegalArgumentException | if any of mandatory parameters is null |
Definition at line 74 of file BaseFlow.java.
◆ getCookie()
Long org.openkilda.messaging.command.flow.BaseFlow.getCookie |
( |
| ) |
|
Returns cookie of the flow.
- Returns
- cookie of the flow
Definition at line 128 of file BaseFlow.java.
◆ getId()
String org.openkilda.messaging.command.flow.BaseFlow.getId |
( |
| ) |
|
Returns the flow id.
- Returns
- the flow id
Definition at line 107 of file BaseFlow.java.
◆ getSwitchId()
SwitchId org.openkilda.messaging.command.flow.BaseFlow.getSwitchId |
( |
| ) |
|
Returns id of the switch.
- Returns
- ID of the switch
Definition at line 146 of file BaseFlow.java.
◆ getTransactionId()
Long org.openkilda.messaging.command.flow.BaseFlow.getTransactionId |
( |
| ) |
|
Returns transaction id of the request.
- Returns
- transaction id of the request
Definition at line 89 of file BaseFlow.java.
◆ setCookie()
void org.openkilda.messaging.command.flow.BaseFlow.setCookie |
( |
final Long |
cookie | ) |
|
Sets cookie for the flow.
- Parameters
-
Definition at line 137 of file BaseFlow.java.
◆ setId()
void org.openkilda.messaging.command.flow.BaseFlow.setId |
( |
final String |
id | ) |
|
◆ setSwitchId()
void org.openkilda.messaging.command.flow.BaseFlow.setSwitchId |
( |
SwitchId |
switchId | ) |
|
◆ setTransactionId()
void org.openkilda.messaging.command.flow.BaseFlow.setTransactionId |
( |
final Long |
transactionId | ) |
|
Sets transaction id of the request.
- Parameters
-
transactionId | transaction id of the request |
Definition at line 98 of file BaseFlow.java.
◆ cookie
Long org.openkilda.messaging.command.flow.BaseFlow.cookie |
|
protected |
◆ id
String org.openkilda.messaging.command.flow.BaseFlow.id |
|
protected |
◆ switchId
SwitchId org.openkilda.messaging.command.flow.BaseFlow.switchId |
|
protected |
The switch id to manage flow on. It is a mandatory parameter.
Definition at line 62 of file BaseFlow.java.
◆ transactionId
Long org.openkilda.messaging.command.flow.BaseFlow.transactionId |
|
protected |
The documentation for this class was generated from the following file:
- /Users/kevin/Desktop/Kilda/open-kilda-develop/services/src/messaging/src/main/java/org/openkilda/messaging/command/flow/BaseFlow.java