Open Kilda Java Documentation
PortStatus.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.info.stats;
17
18
import
com.fasterxml.jackson.annotation.JsonCreator;
19
import
com.fasterxml.jackson.annotation.JsonProperty;
20
import
lombok.Builder;
21
import
lombok.Value;
22
import
org
.
openkilda
.
messaging
.
info
.
event
.
PortChangeType
;
23
24
import
java.io.Serializable;
25
26
@Value
27
@Builder
28
public
class
PortStatus
implements
Serializable {
29
30
@JsonProperty(
"id"
)
31
private
Integer id;
32
33
@JsonProperty(
"status"
)
34
private
PortChangeType
status;
35
36
@JsonCreator
37
public
PortStatus
(@JsonProperty(
"id"
) Integer
id
,
38
@JsonProperty(
"status"
)
PortChangeType
status) {
39
this.
id
= id;
40
this.status = status;
41
}
42
}
org.openkilda.messaging
Definition:
BaseMessage.java:16
org
org.openkilda.messaging.info.event.PortChangeType
Definition:
PortChangeType.java:30
org.openkilda
org.openkilda.messaging.info.stats.PortStatus.PortStatus
PortStatus(@JsonProperty("id") Integer id, @JsonProperty("status") PortChangeType status)
Definition:
PortStatus.java:37
org.openkilda.messaging.info
Definition:
CacheTimeTag.java:15
org.openkilda.messaging.info.event
Definition:
IslChangeType.java:16
org.openkilda.messaging.info.stats.PortStatus
Definition:
PortStatus.java:28
open-kilda-develop
services
src
messaging
src
main
java
org
openkilda
messaging
info
stats
PortStatus.java
Generated by
1.8.14