Open Kilda Java Documentation
FlowReroutePayload.java
Go to the documentation of this file.
1 /* Copyright 2017 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.messaging.payload.flow;
17 
20 
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonInclude;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import lombok.Data;
25 import lombok.NoArgsConstructor;
26 
27 import java.io.Serializable;
28 
32 // TODO move into api module
33 @Data
34 @NoArgsConstructor
35 @JsonInclude(JsonInclude.Include.NON_NULL)
36 public class FlowReroutePayload implements Serializable {
37 
38  private static final long serialVersionUID = 1L;
39 
43  @JsonProperty(Utils.FLOW_ID)
44  protected String id;
45 
49  @JsonProperty(Utils.FLOW_PATH)
50  protected PathInfoData path;
51 
52  @JsonProperty("rerouted")
53  private boolean rerouted;
54 
55  @JsonCreator
57  @JsonProperty(value = Utils.FLOW_ID) String id,
58  @JsonProperty(value = Utils.FLOW_PATH) PathInfoData path,
59  @JsonProperty(value = "rerouted") boolean rerouted) {
60  this.id = id;
61  this.path = path;
62  this.rerouted = rerouted;
63  }
64 }
value
Definition: nodes.py:62
id
Definition: nodes.py:55
static final String FLOW_ID
Definition: Utils.java:61