-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathAgentClient.java
More file actions
71 lines (39 loc) · 1.98 KB
/
AgentClient.java
File metadata and controls
71 lines (39 loc) · 1.98 KB
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 (vgv@ecwid.com)
*/
public interface AgentClient {
Response<Map<String, Check>> getAgentChecks();
Response<Map<String, Service>> getAgentServices();
Response<List<Member>> getAgentMembers();
Response<Self> getAgentSelf();
Response<Self> getAgentSelf(String token);
Response<Void> agentSetMaintenance(boolean maintenanceEnabled);
Response<Void> agentSetMaintenance(boolean maintenanceEnabled, String reason);
Response<Void> agentJoin(String address, boolean wan);
Response<Void> agentForceLeave(String node);
Response<Void> agentCheckRegister(NewCheck newCheck);
Response<Void> agentCheckRegister(NewCheck newCheck, String token);
Response<Void> agentCheckDeregister(String checkId);
Response<Void> agentCheckDeregister(String checkId, String token);
Response<Void> agentCheckPass(String checkId);
Response<Void> agentCheckPass(String checkId, String note);
Response<Void> agentCheckPass(String checkId, String note, String token);
Response<Void> agentCheckWarn(String checkId);
Response<Void> agentCheckWarn(String checkId, String note);
Response<Void> agentCheckWarn(String checkId, String note, String token);
Response<Void> agentCheckFail(String checkId);
Response<Void> agentCheckFail(String checkId, String note);
Response<Void> agentCheckFail(String checkId, String note, String token);
Response<Void> agentServiceRegister(NewService newService);
Response<Void> agentServiceRegister(NewService newService, String token);
Response<Void> agentServiceDeregister(String serviceId);
Response<Void> agentServiceDeregister(String serviceId, String token);
Response<Void> agentServiceSetMaintenance(String serviceId, boolean maintenanceEnabled);
Response<Void> agentServiceSetMaintenance(String serviceId, boolean maintenanceEnabled, String reason);
Response<Void> agentReload();
}