All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecwid.consul.v1.agent.AgentClient Maven / Gradle / Ivy

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> getAgentChecks();

	public Response> getAgentServices();

	public Response> getAgentMembers();

	public Response getAgentSelf();
	
	public Response getAgentSelf(String token);

	public Response agentSetMaintenance(boolean maintenanceEnabled);

	public Response agentSetMaintenance(boolean maintenanceEnabled, String reason);

	public Response agentJoin(String address, boolean wan);

	public Response agentForceLeave(String node);

	public Response agentCheckRegister(NewCheck newCheck);

	public Response agentCheckRegister(NewCheck newCheck, String token);

	public Response agentCheckDeregister(String checkId);

	public Response agentCheckDeregister(String checkId, String token);

	public Response agentCheckPass(String checkId);

	public Response agentCheckPass(String checkId, String note);

	public Response agentCheckPass(String checkId, String note, String token);

	public Response agentCheckWarn(String checkId);

	public Response agentCheckWarn(String checkId, String note);

	public Response agentCheckWarn(String checkId, String note, String token);

	public Response agentCheckFail(String checkId);

	public Response agentCheckFail(String checkId, String note);

	public Response agentCheckFail(String checkId, String note, String token);

	public Response agentServiceRegister(NewService newService);

	public Response agentServiceRegister(NewService newService, String token);

	public Response agentServiceDeregister(String serviceId);

	public Response agentServiceDeregister(String serviceId, String token);

	public Response agentServiceSetMaintenance(String serviceId, boolean maintenanceEnabled);

	public Response agentServiceSetMaintenance(String serviceId, boolean maintenanceEnabled, String reason);

	public Response agentReload();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy