Search in sources :

Example 6 with NetComClientProxy

use of com.xxl.job.core.rpc.netcom.NetComClientProxy in project xxl-job by xuxueli.

the class XxlJobExecutor method initAdminBizList.

private static void initAdminBizList(String adminAddresses, String accessToken) throws Exception {
    if (adminAddresses != null && adminAddresses.trim().length() > 0) {
        for (String address : adminAddresses.trim().split(",")) {
            if (address != null && address.trim().length() > 0) {
                String addressUrl = address.concat(AdminBiz.MAPPING);
                AdminBiz adminBiz = (AdminBiz) new NetComClientProxy(AdminBiz.class, addressUrl, accessToken).getObject();
                if (adminBizList == null) {
                    adminBizList = new ArrayList<AdminBiz>();
                }
                adminBizList.add(adminBiz);
            }
        }
    }
}
Also used : AdminBiz(com.xxl.job.core.biz.AdminBiz) NetComClientProxy(com.xxl.job.core.rpc.netcom.NetComClientProxy)

Aggregations

NetComClientProxy (com.xxl.job.core.rpc.netcom.NetComClientProxy)6 AdminBiz (com.xxl.job.core.biz.AdminBiz)4 Test (org.junit.Test)3 ExecutorBiz (com.xxl.job.core.biz.ExecutorBiz)2 RegistryParam (com.xxl.job.core.biz.model.RegistryParam)2 TriggerParam (com.xxl.job.core.biz.model.TriggerParam)1