forked from apache/dubbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* convert files, add checker * rename id * tab to space * change git attributes auto convert * fix end new line * fix end new line * fix end new line * ignore generated files * override tomcat-embed-core version * add ignore for codestyle/checkstyle.xml * add ignore for codestyle/checkstyle.xml * add rat ignore * add suppression * force update * disable zk dynamic configurator
- Loading branch information
Showing
728 changed files
with
42,287 additions
and
42,214 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,20 @@ | ||
# Git will understand that all files specified are not text, | ||
# and it should not try to change them. | ||
# This will prevent file formatting (such as `crlf` endings to `lf` endings) while commit. | ||
* -text | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You 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. | ||
# | ||
|
||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
*.java text eol=lf |
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
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Apache Dubbo | ||
Copyright 2018-2021 The Apache Software Foundation | ||
This product includes software developed at | ||
The Apache Software Foundation (http://www.apache.org/). | ||
This product contains code form the Netty Project: | ||
The Netty Project | ||
================= | ||
Please visit the Netty web site for more information: | ||
* http://netty.io/ | ||
Copyright 2014 The Netty Project | ||
Apache Dubbo | ||
Copyright 2018-2021 The Apache Software Foundation | ||
|
||
This product includes software developed at | ||
The Apache Software Foundation (http://www.apache.org/). | ||
|
||
This product contains code form the Netty Project: | ||
|
||
The Netty Project | ||
================= | ||
Please visit the Netty web site for more information: | ||
* http://netty.io/ | ||
|
||
Copyright 2014 The Netty Project |
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
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
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,10 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> | ||
|
||
<module name="Checker"> | ||
<module name="NewlineAtEndOfFile"> | ||
<property name="lineSeparator" value="lf" /> | ||
</module> | ||
</module> |
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 |
---|---|---|
|
@@ -39,4 +39,4 @@ protected String getClassPrefix() { | |
protected String getClassSuffix() { | ||
return "Dubbo"; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -38,4 +38,4 @@ default void destroy(URL consumerUrl, Directory registryDirectory) { | |
|
||
} | ||
|
||
} | ||
} |
118 changes: 59 additions & 59 deletions
118
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Cluster.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 |
---|---|---|
@@ -1,59 +1,59 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 org.apache.dubbo.rpc.cluster; | ||
|
||
import org.apache.dubbo.common.extension.Adaptive; | ||
import org.apache.dubbo.common.extension.ExtensionLoader; | ||
import org.apache.dubbo.common.extension.SPI; | ||
import org.apache.dubbo.common.utils.StringUtils; | ||
import org.apache.dubbo.rpc.Invoker; | ||
import org.apache.dubbo.rpc.RpcException; | ||
|
||
/** | ||
* Cluster. (SPI, Singleton, ThreadSafe) | ||
* <p> | ||
* <a href="http://en.wikipedia.org/wiki/Computer_cluster">Cluster</a> | ||
* <a href="http://en.wikipedia.org/wiki/Fault-tolerant_system">Fault-Tolerant</a> | ||
* | ||
*/ | ||
@SPI(Cluster.DEFAULT) | ||
public interface Cluster { | ||
|
||
String DEFAULT = "failover"; | ||
|
||
/** | ||
* Merge the directory invokers to a virtual invoker. | ||
* | ||
* @param <T> | ||
* @param directory | ||
* @return cluster invoker | ||
* @throws RpcException | ||
*/ | ||
@Adaptive | ||
<T> Invoker<T> join(Directory<T> directory) throws RpcException; | ||
|
||
static Cluster getCluster(String name) { | ||
return getCluster(name, true); | ||
} | ||
|
||
static Cluster getCluster(String name, boolean wrap) { | ||
if (StringUtils.isEmpty(name)) { | ||
name = Cluster.DEFAULT; | ||
} | ||
return ExtensionLoader.getExtensionLoader(Cluster.class).getExtension(name, wrap); | ||
} | ||
} | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 org.apache.dubbo.rpc.cluster; | ||
|
||
import org.apache.dubbo.common.extension.Adaptive; | ||
import org.apache.dubbo.common.extension.ExtensionLoader; | ||
import org.apache.dubbo.common.extension.SPI; | ||
import org.apache.dubbo.common.utils.StringUtils; | ||
import org.apache.dubbo.rpc.Invoker; | ||
import org.apache.dubbo.rpc.RpcException; | ||
|
||
/** | ||
* Cluster. (SPI, Singleton, ThreadSafe) | ||
* <p> | ||
* <a href="http://en.wikipedia.org/wiki/Computer_cluster">Cluster</a> | ||
* <a href="http://en.wikipedia.org/wiki/Fault-tolerant_system">Fault-Tolerant</a> | ||
* | ||
*/ | ||
@SPI(Cluster.DEFAULT) | ||
public interface Cluster { | ||
|
||
String DEFAULT = "failover"; | ||
|
||
/** | ||
* Merge the directory invokers to a virtual invoker. | ||
* | ||
* @param <T> | ||
* @param directory | ||
* @return cluster invoker | ||
* @throws RpcException | ||
*/ | ||
@Adaptive | ||
<T> Invoker<T> join(Directory<T> directory) throws RpcException; | ||
|
||
static Cluster getCluster(String name) { | ||
return getCluster(name, true); | ||
} | ||
|
||
static Cluster getCluster(String name, boolean wrap) { | ||
if (StringUtils.isEmpty(name)) { | ||
name = Cluster.DEFAULT; | ||
} | ||
return ExtensionLoader.getExtensionLoader(Cluster.class).getExtension(name, wrap); | ||
} | ||
} |
Oops, something went wrong.