-
Notifications
You must be signed in to change notification settings - Fork 175
/
AgentClient.java
71 lines (39 loc) · 2.18 KB
/
AgentClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.ecwid.consul.v1.agent;
import com.ecwid.consul.v1.Response;
import com.ecwid.consul.v1.agent.model.*;
import java.util.List;
import java.util.Map;
/**
* @author Vasily Vasilkov ([email protected])
*/
public interface AgentClient {
public Response<Map<String, Check>> getAgentChecks();
public Response<Map<String, Service>> getAgentServices();
public Response<List<Member>> getAgentMembers();
public Response<Self> getAgentSelf();
public Response<Self> getAgentSelf(String token);
public Response<Void> agentSetMaintenance(boolean maintenanceEnabled);
public Response<Void> agentSetMaintenance(boolean maintenanceEnabled, String reason);
public Response<Void> agentJoin(String address, boolean wan);
public Response<Void> agentForceLeave(String node);
public Response<Void> agentCheckRegister(NewCheck newCheck);
public Response<Void> agentCheckRegister(NewCheck newCheck, String token);
public Response<Void> agentCheckDeregister(String checkId);
public Response<Void> agentCheckDeregister(String checkId, String token);
public Response<Void> agentCheckPass(String checkId);
public Response<Void> agentCheckPass(String checkId, String note);
public Response<Void> agentCheckPass(String checkId, String note, String token);
public Response<Void> agentCheckWarn(String checkId);
public Response<Void> agentCheckWarn(String checkId, String note);
public Response<Void> agentCheckWarn(String checkId, String note, String token);
public Response<Void> agentCheckFail(String checkId);
public Response<Void> agentCheckFail(String checkId, String note);
public Response<Void> agentCheckFail(String checkId, String note, String token);
public Response<Void> agentServiceRegister(NewService newService);
public Response<Void> agentServiceRegister(NewService newService, String token);
public Response<Void> agentServiceDeregister(String serviceId);
public Response<Void> agentServiceDeregister(String serviceId, String token);
public Response<Void> agentServiceSetMaintenance(String serviceId, boolean maintenanceEnabled);
public Response<Void> agentServiceSetMaintenance(String serviceId, boolean maintenanceEnabled, String reason);
public Response<Void> agentReload();
}