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

io.vertx.up.uca.micro.discovery.IpcOrigin Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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