ServiceEndpoint endpoint = new ServiceEndpoint("myService", "http://localhost:8080"); AmdatuDiscovery.registerService(endpoint); List<ServiceEndpoint> endpoints = AmdatuDiscovery.discoverServices("myService"); ServiceStatus status = AmdatuDiscovery.getServiceStatus("myService"); ServiceMetrics metrics = AmdatuDiscovery.getServiceMetrics("myService"); List<LogEntry> logs = AmdatuDiscovery.getServiceLogs("myService"); AmdatuDiscovery.startService("myService"); AmdatuDiscovery.stopService("myService"); AmdatuDiscovery.restartService("myService"); AmdatuDiscovery.setSecure(true); AmdatuDiscovery.setKeystorePath("/path/to/keystore"); AmdatuDiscovery.setKeystorePassword("password"); AmdatuDiscovery.enableFailover(true); AmdatuDiscovery.enableLoadBalancing(true); properties amdatu.discovery.discoveryUrl = http://localhost:8888 amdatu.discovery.registerUrl = http://localhost:8888/register amdatu.discovery.discoverUrl = http://localhost:8888/discover amdatu.discovery.secure = false


上一篇:
下一篇:
切换中文