|
|
|
@ -13,7 +13,9 @@ public class AdminApiTest { |
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
try { |
|
|
|
|
RegistryParam registryParam = new RegistryParam(RegistryConfig.RegistType.EXECUTOR.name(), "aaa", "112312312312"); |
|
|
|
|
ReturnT<String> registryResult = AdminApiUtil.callApi("http://localhost:8080/xxl-job-admin"+AdminApiUtil.REGISTRY, registryParam); |
|
|
|
|
|
|
|
|
|
AdminApiUtil.init("http://localhost:8080/xxl-job-admin"); |
|
|
|
|
ReturnT<String> registryResult = AdminApiUtil.callApiFailover(AdminApiUtil.REGISTRY, registryParam); |
|
|
|
|
System.out.println(registryResult); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|