Skip to content

Commit

Permalink
Merge pull request alibaba#902 from alibaba/feature_naming_group
Browse files Browse the repository at this point in the history
Feature naming group
  • Loading branch information
Fury Zhu authored Mar 14, 2019
2 parents bd1fd2b + 86b5241 commit e4255e1
Show file tree
Hide file tree
Showing 201 changed files with 10,785 additions and 8,380 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>0.9.1</version>
<version>1.0.0-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;

/**
* @author <a href="mailto:[email protected]">nkorange</a>
* @author nkorange
* @since 0.7.0
*/
public class Entity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.alibaba.nacos.api.cmdb.pojo;

/**
* @author <a href="mailto:[email protected]">nkorange</a>
* @author nkorange
* @since 0.7.0
*/
public class EntityEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.alibaba.nacos.api.cmdb.pojo;

/**
* @author <a href="mailto:[email protected]">nkorange</a>
* @author nkorange
* @since 0.7.0
*/
public enum EntityEventType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Set;

/**
* @author <a href="mailto:[email protected]">nkorange</a>
* @author nkorange
* @since 0.7.0
*/
public class Label {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.alibaba.nacos.api.cmdb.pojo;

/**
* @author <a href="mailto:[email protected]">nkorange</a>
* @author nkorange
* @since 0.7.0
*/
public enum PreservedEntityTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Service to visit CMDB store
*
* @author <a href="mailto:[email protected]">nkorange</a>
* @author nkorange
* @since 0.7.0
*/
public interface CmdbService {
Expand Down
16 changes: 8 additions & 8 deletions api/src/main/java/com/alibaba/nacos/api/common/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/
public class Constants {

public static final String CLIENT_VERSION_HEADER = "Client-Version";

public static final String CLIENT_VERSION = "3.0.0";

public static int DATA_IN_BODY_VERSION = 204;
Expand Down Expand Up @@ -121,11 +119,13 @@ public class Constants {
public static final int NAMING_INSTANCE_ID_SEG_COUNT = 4;
public static final String NAMING_HTTP_HEADER_SPILIER = "\\|";

public static final String NAMING_DEFAULT_CLUSTER_NAME = "DEFAULT";
public static final String DEFAULT_CLUSTER_NAME = "DEFAULT";

public static final String DEFAULT_NAMESPACE_ID = "public";

public static final int WRITE_REDIRECT_CODE = 307;

public static final String SERVICE_INFO_SPLITER = "@@";

public static final String REQUEST_PARAM_NAMESPACE_ID = "namespaceId";
public static final String REQUEST_PARAM_DEFAULT_NAMESPACE_ID = "public";
public static final String REQUEST_PARAM_SERVICE_NAME = "serviceName";
public static final String REQUEST_PARAM_GROUP = "group";
public static final String REQUEST_PARAM_DEFAULT_GROUP = "DEFAULT_GROUP";
public static final String NULL_STRING = "null";
}
34 changes: 34 additions & 0 deletions api/src/main/java/com/alibaba/nacos/api/naming/CommonParams.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.nacos.api.naming;

/**
* Common parameters for service discovery
*
* @author nkorange
* @since 1.0.0
*/
public class CommonParams {

public static final String SERVICE_NAME = "serviceName";

public static final String CLUSTER_NAME = "clusterName";

public static final String NAMESPACE_ID = "namespaceId";

public static final String GROUP_NAME = "groupName";

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Naming Factory
*
* @author dungu.zpf
* @author nkorange
*/
public class NamingFactory {

Expand Down
Loading

0 comments on commit e4255e1

Please sign in to comment.