Issue-id: OCS-9
[msb/apigateway.git] / msb-core / apiroute / apiroute-service / src / main / java / org / openo / msb / api / RouteServer.java
1 /**
2  * Copyright 2016 2015-2016 ZTE, Inc. and others. All rights reserved.
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
22
23 public class RouteServer implements Serializable{
24         private static final long serialVersionUID = 1L;
25          @ApiModelProperty(required = true)
26         private String ip;
27          
28          @ApiModelProperty(required = true) 
29         private String port;
30         private int weight=0;
31
32         public String getIp() {
33                 return ip;
34         }
35
36         public void setIp(String ip) {
37                 this.ip = ip;
38         }
39
40         
41
42         public int getWeight() {
43                 return weight;
44         }
45
46         public void setWeight(int weight) {
47                 this.weight = weight;
48         }
49         
50         public RouteServer(){
51                 
52         }
53         
54         public RouteServer(String ip,String port){
55                 this.ip=ip;
56                 this.port=port;
57                 this.weight=0;
58         }
59
60     public String getPort() {
61         return port;
62     }
63
64     public void setPort(String port) {
65         this.port = port;
66     }
67
68 }