use of org.apache.metron.maas.config.ModelEndpoint in project metron by apache.
the class ServiceDiscoveryIntegrationTest method registerService.
private void registerService(String name, String version, AtomicInteger containerId) throws Exception {
ModelEndpoint ep = new ModelEndpoint();
ep.setName(name);
ep.setVersion(version);
ep.setContainerId(containerId.incrementAndGet() + "");
ep.setEndpoint(new Endpoint() {
{
setUrl("http://localhost:9080/ep1");
}
});
registerService(ep);
}
Aggregations