-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert payload type from full name to simple name;abilities both on …
…client-server& server cluster submit (#4791) * convert payload type from full name to simple name. * abilities both on client-server& server cluster submit * Cas of update config, beta,tag publish * tenant support on connection. * modify health check tps point name
- Loading branch information
1 parent
7e58b5c
commit 3cfa183
Showing
38 changed files
with
1,071 additions
and
164 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
api/src/main/java/com/alibaba/nacos/api/ability/ClientAbilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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.ability; | ||
|
||
import com.alibaba.nacos.api.config.ClientConfigAbility; | ||
import com.alibaba.nacos.api.naming.ClientNamingAbility; | ||
|
||
/** | ||
* abilities of nacos client. | ||
* | ||
* @author liuzunfei | ||
* @version $Id: ClientAbilities.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $ | ||
*/ | ||
public class ClientAbilities { | ||
|
||
private ClientRemoteAbility remoteAbility = new ClientRemoteAbility(); | ||
|
||
private ClientConfigAbility configAbility = new ClientConfigAbility(); | ||
|
||
private ClientNamingAbility namingAbility = new ClientNamingAbility(); | ||
|
||
public ClientRemoteAbility getRemoteAbility() { | ||
return remoteAbility; | ||
} | ||
|
||
public void setRemoteAbility(ClientRemoteAbility remoteAbility) { | ||
this.remoteAbility = remoteAbility; | ||
} | ||
|
||
public ClientConfigAbility getConfigAbility() { | ||
return configAbility; | ||
} | ||
|
||
public void setConfigAbility(ClientConfigAbility configAbility) { | ||
this.configAbility = configAbility; | ||
} | ||
|
||
public ClientNamingAbility getNamingAbility() { | ||
return namingAbility; | ||
} | ||
|
||
public void setNamingAbility(ClientNamingAbility namingAbility) { | ||
this.namingAbility = namingAbility; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
api/src/main/java/com/alibaba/nacos/api/ability/ClientRemoteAbility.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* 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.ability; | ||
|
||
/** | ||
* remote abilities of nacos client. | ||
* | ||
* @author liuzunfei | ||
* @version $Id: ClientRemoteAbility.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $ | ||
*/ | ||
public class ClientRemoteAbility { | ||
|
||
/** | ||
* if support remote connection. | ||
*/ | ||
private boolean supportRemoteConnection; | ||
|
||
public boolean isSupportRemoteConnection() { | ||
return this.supportRemoteConnection; | ||
} | ||
|
||
public void setSupportRemoteConnection(boolean supportRemoteConnection) { | ||
this.supportRemoteConnection = supportRemoteConnection; | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
api/src/main/java/com/alibaba/nacos/api/ability/ServerAbilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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.ability; | ||
|
||
import com.alibaba.nacos.api.config.ServerConfigAbility; | ||
import com.alibaba.nacos.api.naming.ServerNamingAbility; | ||
|
||
/** | ||
* abilities of nacos server. | ||
* | ||
* @author liuzunfei | ||
* @version $Id: ServerAbilities.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $ | ||
*/ | ||
public class ServerAbilities { | ||
|
||
private ServerRemoteAbility remoteAbility = new ServerRemoteAbility(); | ||
|
||
private ServerConfigAbility configAbility = new ServerConfigAbility(); | ||
|
||
private ServerNamingAbility namingAbility = new ServerNamingAbility(); | ||
|
||
public ServerRemoteAbility getRemoteAbility() { | ||
return remoteAbility; | ||
} | ||
|
||
public void setRemoteAbility(ServerRemoteAbility remoteAbility) { | ||
this.remoteAbility = remoteAbility; | ||
} | ||
|
||
public ServerConfigAbility getConfigAbility() { | ||
return configAbility; | ||
} | ||
|
||
public void setConfigAbility(ServerConfigAbility configAbility) { | ||
this.configAbility = configAbility; | ||
} | ||
|
||
public ServerNamingAbility getNamingAbility() { | ||
return namingAbility; | ||
} | ||
|
||
public void setNamingAbility(ServerNamingAbility namingAbility) { | ||
this.namingAbility = namingAbility; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
api/src/main/java/com/alibaba/nacos/api/ability/ServerRemoteAbility.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* 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.ability; | ||
|
||
/** | ||
* remote abilities of nacos server. | ||
* | ||
* @author liuzunfei | ||
* @version $Id: ServerRemoteAbility.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $ | ||
*/ | ||
public class ServerRemoteAbility { | ||
|
||
/** | ||
* if support remote connection. | ||
*/ | ||
private boolean supportRemoteConnection; | ||
|
||
public boolean isSupportRemoteConnection() { | ||
return this.supportRemoteConnection; | ||
} | ||
|
||
public void setSupportRemoteConnection(boolean supportRemoteConnection) { | ||
this.supportRemoteConnection = supportRemoteConnection; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
api/src/main/java/com/alibaba/nacos/api/config/ClientConfigAbility.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* 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.config; | ||
|
||
/** | ||
* config abilities of nacos client. | ||
* | ||
* @author liuzunfei | ||
* @version $Id: ClientConfigAbility.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $ | ||
*/ | ||
public class ClientConfigAbility { | ||
|
||
/** | ||
* support remote metrics get. | ||
*/ | ||
private boolean supportRemoteMetrics; | ||
|
||
public boolean isSupportRemoteMetrics() { | ||
return supportRemoteMetrics; | ||
} | ||
|
||
public void setSupportRemoteMetrics(boolean supportRemoteMetrics) { | ||
this.supportRemoteMetrics = supportRemoteMetrics; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
api/src/main/java/com/alibaba/nacos/api/config/ServerConfigAbility.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* 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.config; | ||
|
||
/** | ||
* config abilities of nacos server. | ||
* | ||
* @author liuzunfei | ||
* @version $Id: ServerConfigAbility.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $ | ||
*/ | ||
public class ServerConfigAbility { | ||
|
||
/** | ||
* support remote metrics get. | ||
*/ | ||
private boolean supportRemoteMetrics; | ||
|
||
public boolean isSupportRemoteMetrics() { | ||
return supportRemoteMetrics; | ||
} | ||
|
||
public void setSupportRemoteMetrics(boolean supportRemoteMetrics) { | ||
this.supportRemoteMetrics = supportRemoteMetrics; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.