/*
 * Copyright 2002-2016 the original author or authors.
 *
 * 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.zuoxiaolong.niubi.job.examples.masterslave;

import com.zuoxiaolong.niubi.job.cluster.node.MasterSlaveNode;
import com.zuoxiaolong.niubi.job.core.helper.StringHelper;
import com.zuoxiaolong.niubi.job.scheduler.node.Node;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author Xiaolong Zuo
 * @since 16/1/9 15:08
 */
public class MasterSlaveNodeTest {

    public static void main(String[] args) throws IOException {
        Node node = new MasterSlaveNode("localhost:2181,localhost:3181,localhost:4181", "http://localhost:8080/job/masterSlave", StringHelper.emptyArray());
        node.join();
        new BufferedReader(new InputStreamReader(System.in)).readLine();
    }

}

@@ -1098,16 +1098,114 @@
 ption %7B%0A
+        //todo%0A        //1.%E8%8A%82%E7%82%B9%E6%8C%82%E6%8E%89%E4%BB%BB%E5%8A%A1%E6%B2%A1%E6%9C%89%E5%86%8D%E6%AC%A1%E5%88%86%E9%85%8D%0A        //2.%E4%BB%BB%E5%8A%A1%E7%BB%91%E5%AE%9A%E5%9C%A8%E8%8A%82%E7%82%B9%E4%B8%8A%EF%BC%8C%E5%BD%93%E6%96%B0%E5%A2%9E%E6%9C%BA%E5%99%A8%E6%97%B6%EF%BC%8C%E6%B2%A1%E6%9C%89%E5%81%9Abalance%E3%80%82%0A        //3......%0A
         

modify download path.