blog

cluster$adaptive

public class Cluster$Adaptive { クラスターアダプティブ\nパブリック...

Apr 7, 2020 · 1 min. read
シェア
public class Cluster$Adaptive implements org.apache.dubbo.rpc.cluster.Cluster {
	public org.apache.dubbo.rpc.Invoker join(org.apache.dubbo.rpc.cluster.Directory arg0) throws org.apache.dubbo.rpc.RpcException {
		if (arg0 == null) 
			throw new IllegalArgumentException("org.apache.dubbo.rpc.cluster.Directory argument == null");
		if (arg0.getUrl() == null) 
			throw new IllegalArgumentException("org.apache.dubbo.rpc.cluster.Directory argument getUrl() == null");
		org.apache.dubbo.common.URL url = arg0.getUrl();
		String extName = url.getParameter("cluster", "failover");
		if(extName == null) 
			throw new IllegalStateException("Failed to get extension (org.apache.dubbo.rpc.cluster.Cluster) name from url (" + url.toString() + ") use keys([cluster])");
		org.apache.dubbo.rpc.cluster.Cluster extension = (org.apache.dubbo.rpc.cluster.Cluster)ExtensionLoader.getExtensionLoader(org.apache.dubbo.rpc.cluster.Cluster.class).getExtension(extName);
		return extension.join(arg0);
	}
}



Read next

分割、バックトラック、BFS&DFS、貪欲、二分探索

分割、バックトラック ◉ 要素の多数決 ◉ ブラケット生成問題 ◉ 島の数 ◉ pow ◉ substrの部分集合 ◉ 多要素 ◉ 電話番号の組み合わせ ◉ NqueenBFS&DFS ◉ 2分木の階層的走査 ◉ 最小遺伝子変化 ◉ ブラケット生成

Apr 7, 2020 · 3 min read