msb protocol synch change
[msb/apigateway.git] / msb-core / apiroute / apiroute-service / src / main / java / org / openo / msb / api / Node.java
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.openo.msb.api;
17
18 import io.swagger.annotations.ApiModelProperty;
19
20 import java.io.Serializable;
21 import java.util.Date;
22
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
25
26 public class Node implements Serializable {
27     private static final long serialVersionUID = 1L;
28
29     @ApiModelProperty(required = true)
30     private String ip;
31     
32     @ApiModelProperty(required = true)
33     private String port;
34     
35     private int ttl=-1;
36   
37
38    
39
40     public String getIp() {
41         return ip;
42     }
43
44     public void setIp(String ip) {
45         this.ip = ip;
46     }
47
48     public String getPort() {
49         return port;
50     }
51
52     public void setPort(String port) {
53         this.port = port;
54     }
55
56     public int getTtl() {
57         return ttl;
58     }
59
60     public void setTtl(int ttl) {
61         this.ttl = ttl;
62     }
63
64     public Node(){
65         
66     }
67     
68     public Node(String ip,String port,int ttl){
69         this.ip = ip;
70         this.port = port;
71         this.ttl = ttl;
72     }
73     
74     
75 }