com.ecwid.consul.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul-api Show documentation
Show all versions of consul-api Show documentation
Java client for Consul HTTP API (http://consul.io)
package com.ecwid.consul;
import com.ecwid.consul.v1.ConsulClient;
import com.ecwid.consul.v1.QueryParams;
import com.ecwid.consul.v1.agent.model.NewService;
import com.ecwid.consul.v1.agent.model.Self;
import java.util.Date;
public class Main {
public static void main(String[] args) {
ConsulClient client = new ConsulClient();
Self self = client.getAgentSelf().getValue();
System.out.println(self);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy