Search in sources :

Example 1 with NamespaceLinksZK

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();
}
Also used : NamespaceLinksZK(com.ms.silverking.cloud.dht.meta.NamespaceLinksZK)

Example 2 with NamespaceLinksZK

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;
    }
}
Also used : MetaClient(com.ms.silverking.cloud.dht.meta.MetaClient) NamespaceLinksZK(com.ms.silverking.cloud.dht.meta.NamespaceLinksZK) TimeoutException(com.ms.silverking.cloud.dht.common.TimeoutException) NamespaceCreationException(com.ms.silverking.cloud.dht.client.NamespaceCreationException) NamespaceNotCreatedException(com.ms.silverking.cloud.dht.daemon.storage.NamespaceNotCreatedException) IOException(java.io.IOException) NamespaceDeletionException(com.ms.silverking.cloud.dht.client.NamespaceDeletionException) NamespaceRecoverException(com.ms.silverking.cloud.dht.client.NamespaceRecoverException) RetrievalException(com.ms.silverking.cloud.dht.client.RetrievalException)

Aggregations

NamespaceLinksZK (com.ms.silverking.cloud.dht.meta.NamespaceLinksZK)2 NamespaceCreationException (com.ms.silverking.cloud.dht.client.NamespaceCreationException)1 NamespaceDeletionException (com.ms.silverking.cloud.dht.client.NamespaceDeletionException)1 NamespaceRecoverException (com.ms.silverking.cloud.dht.client.NamespaceRecoverException)1 RetrievalException (com.ms.silverking.cloud.dht.client.RetrievalException)1 TimeoutException (com.ms.silverking.cloud.dht.common.TimeoutException)1 NamespaceNotCreatedException (com.ms.silverking.cloud.dht.daemon.storage.NamespaceNotCreatedException)1 MetaClient (com.ms.silverking.cloud.dht.meta.MetaClient)1 IOException (java.io.IOException)1