use of com.ms.silverking.cloud.dht.meta.NamespaceLinksZK in project SilverKing by Morgan-Stanley.
the class MetaUtil method clearLinks.
private void clearLinks() throws IOException, KeeperException {
NamespaceLinksZK nlzk;
nlzk = new NamespaceLinksZK(mc);
nlzk.clearAllZK();
}
use of com.ms.silverking.cloud.dht.meta.NamespaceLinksZK in project SilverKing by Morgan-Stanley.
the class DHTSessionImpl method getNSLinkMeta.
private NamespaceLinkMeta getNSLinkMeta() {
synchronized (this) {
if (nsLinkMeta == null) {
try {
MetaClient mc;
mc = new MetaClient(dhtConfig.getName(), dhtConfig.getZKConfig());
nsLinkMeta = new NamespaceLinkMeta(new NamespaceLinksZK(mc));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return nsLinkMeta;
}
}
Aggregations