1. Adjust the directory hierarchy
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / openo / msb / api / Service.java
diff --git a/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java b/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java
deleted file mode 100644 (file)
index 51f0e86..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/**\r
-* Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
-*\r
-* Licensed under the Apache License, Version 2.0 (the "License");\r
-* you may not use this file except in compliance with the License.\r
-* You may obtain a copy of the License at\r
-*\r
-* http://www.apache.org/licenses/LICENSE-2.0\r
-*\r
-* Unless required by applicable law or agreed to in writing, software\r
-* distributed under the License is distributed on an "AS IS" BASIS,\r
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-* See the License for the specific language governing permissions and\r
-* limitations under the License.\r
-*/\r
-package org.openo.msb.api;\r
-\r
-import io.swagger.annotations.ApiModelProperty;\r
-\r
-import java.io.Serializable;\r
-import java.util.Set;\r
-\r
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;\r
-\r
-@JsonIgnoreProperties(ignoreUnknown = true)\r
-public class Service<T> implements Serializable {\r
-    private static final long serialVersionUID = 1L;\r
-    // 服务名\r
-    @ApiModelProperty(required = true)\r
-    private String serviceName;\r
-    // 版本号\r
-    @ApiModelProperty(example = "v1")\r
-    private String version="";\r
-    // 服务url\r
-    @ApiModelProperty(value = "Target Service URL,start with /",example = "/api/serviceName/v1", required = true)\r
-    private String url="";\r
-    // 服务对应协议,比如REST、UI、MQ、FTP、SNMP、TCP、UDP\r
-    @ApiModelProperty(value = "Service Protocol", allowableValues = "REST,UI, MQ, FTP,SNMP,TCP,UDP", example = "REST",required = true)\r
-    private String protocol = "";\r
-    \r
-    //服务的可见范围   系统间:0   系统内:1 \r
-    @ApiModelProperty(value = "[visual Range]interSystem:0,inSystem:1", allowableValues = "0,1", example = "1")\r
-    private String visualRange = "1";\r
-   \r
-    //负载均衡策略类型\r
-    @ApiModelProperty(value = "lb policy", allowableValues = "round-robin,hash,least_conn", example = "hash")\r
-    private String lb_policy="";\r
-   \r
-    @ApiModelProperty(required = true)\r
-    private Set<T> nodes;\r
-\r
-    public Set<T> getNodes() {\r
-        return nodes;\r
-    }\r
-\r
-    public void setNodes(Set<T> nodes) {\r
-        this.nodes = nodes;\r
-    }\r
-    \r
-    public String getServiceName() {\r
-        return serviceName;\r
-    }\r
-    public void setServiceName(String serviceName) {\r
-        this.serviceName = serviceName;\r
-    }\r
-    public String getVersion() {\r
-        return version;\r
-    }\r
-    public void setVersion(String version) {\r
-        this.version = version;\r
-    }\r
-    public String getUrl() {\r
-        return url;\r
-    }\r
-    public void setUrl(String url) {\r
-        this.url = url;\r
-    }\r
-    public String getProtocol() {\r
-        return protocol;\r
-    }\r
-    public void setProtocol(String protocol) {\r
-        this.protocol = protocol;\r
-    }\r
-    \r
-    public String getVisualRange() {\r
-        return visualRange;\r
-    }\r
-\r
-    public void setVisualRange(String visualRange) {\r
-        this.visualRange = visualRange;\r
-    }\r
-    \r
-\r
-    public String getLb_policy() {\r
-        return lb_policy;\r
-    }\r
-\r
-    public void setLb_policy(String lb_policy) {\r
-        this.lb_policy = lb_policy;\r
-    }\r
-\r
-    \r
-    \r
-}\r