Package io.vertx.up.uca.micro.center
Class ZeroRegistry
- java.lang.Object
-
- io.vertx.up.uca.micro.center.ZeroRegistry
-
- All Implemented Interfaces:
UddiRegistry
public class ZeroRegistry extends Object implements UddiRegistry
Zero registry center to write/read data with Etcd for zero micro service This will be called by ZeroRpcAgent class to write service meta. 1. Status RUNNING/STOPPED/FAILED /zero/ipc/status/{name}/{host}:{port} 2. Services for discovery /zero/ipc/services/{name}/{host}/{port}
-
-
Constructor Summary
Constructors Constructor Description ZeroRegistry(Class<?> useCls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZeroRegistrycreate(Class<?> useCls)voiderasingStatus(String name, String host, Integer port, EtcdPath path)io.vertx.core.json.JsonArraygetConfig()Get current etcd configuration information that initialized in zero system.Set<io.vertx.core.json.JsonObject>getData(EtcdPath etcdPath, String key, BiFunction<String,io.vertx.core.json.JsonArray,Set<io.vertx.core.json.JsonObject>> convert)Set<String>getServices(EtcdPath etcdPath)voidinitialize(Class<?> clazz)voidregistryHttp(String service, io.vertx.core.http.HttpServerOptions options, Etat etat)voidregistryIpcs(io.vertx.core.ServidorOptions options, Set<String> ipcs)voidregistryRoute(String name, io.vertx.core.http.HttpServerOptions options, Set<String> routes)voidregistryRpc(io.vertx.core.ServidorOptions options, Etat etat)
-
-
-
Constructor Detail
-
ZeroRegistry
public ZeroRegistry(Class<?> useCls)
-
-
Method Detail
-
create
public static ZeroRegistry create(Class<?> useCls)
-
getConfig
public io.vertx.core.json.JsonArray getConfig()
Get current etcd configuration information that initialized in zero system.- Returns:
- Return zero configuration in etcd
-
getData
public Set<io.vertx.core.json.JsonObject> getData(EtcdPath etcdPath, String key, BiFunction<String,io.vertx.core.json.JsonArray,Set<io.vertx.core.json.JsonObject>> convert)
-
registryHttp
public void registryHttp(String service, io.vertx.core.http.HttpServerOptions options, Etat etat)
- Specified by:
registryHttpin interfaceUddiRegistry
-
initialize
public void initialize(Class<?> clazz)
- Specified by:
initializein interfaceUddiRegistry
-
registryRpc
public void registryRpc(io.vertx.core.ServidorOptions options, Etat etat)
-
registryRoute
public void registryRoute(String name, io.vertx.core.http.HttpServerOptions options, Set<String> routes)
- Specified by:
registryRoutein interfaceUddiRegistry
-
-