io.vertx.up.uca.micro.discovery.IpcOrigin Maven / Gradle / Ivy
package io.vertx.up.uca.micro.discovery;
import io.vertx.servicediscovery.Record;
import io.vertx.servicediscovery.Status;
import io.vertx.up.eon.em.EtcdPath;
import java.util.concurrent.ConcurrentMap;
public class IpcOrigin extends ApiOrigin {
@Override
public ConcurrentMap getRegistryData() {
final ConcurrentMap map = this.readData(EtcdPath.IPC);
for (final Record record : map.values()) {
record.setStatus(Status.UP);
record.setType("IPC");
// Alpn Enabled for Rpc, ssl must be true.
record.getLocation().put("ssl", Boolean.TRUE);
}
return map;
}
@Override
public EtcdPath getPath() {
return EtcdPath.IPC;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy