Open Kilda Java Documentation
Destination.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;
17 
18 import com.fasterxml.jackson.annotation.JsonCreator;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 
24 public enum Destination {
28  NORTHBOUND("NORTHBOUND"),
29 
33  TOPOLOGY_ENGINE("TOPOLOGY_ENGINE"),
34 
38  CONTROLLER("CONTROLLER"),
39 
43  WFM("WFM"),
44 
48  WFM_STATS("WFM_STATS"),
49 
53  WFM_CACHE("WFM_CACHE"),
54 
58  WFM_TRANSACTION("WFM_TRANSACTION"),
59 
60  WFM_OF_DISCOVERY("WFM_OF_DISCOVERY"),
61  WFM_FLOW_LCM("WFM_FLOW_LCM"),
62 
63  WFM_CTRL("WFM_CTRL"),
64  CTRL_CLIENT("CTRL_CLIENT");
65 
69  @JsonProperty("destination")
70  private final String destination;
71 
77  @JsonCreator
78  Destination(final String destination) {
79  this.destination = destination;
80  }
81 
87  public String getType() {
88  return this.destination;
89  }
90 
94  @Override
95  public String toString() {
96  return destination;
97  }
98 }