Search in sources :

Example 11 with NodeMetadata

use of herddb.model.NodeMetadata in project herddb by diennea.

the class ZookeeperMetadataStorageManager method getNode.

private NodeMetadata getNode(String nodeId) throws KeeperException, IOException, InterruptedException {
    Stat stat = new Stat();
    byte[] node = ensureZooKeeper().getData(nodesPath + "/" + nodeId, mainWatcher, stat);
    NodeMetadata nodeMetadata = NodeMetadata.deserialize(node, stat.getVersion());
    return nodeMetadata;
}
Also used : NodeMetadata(herddb.model.NodeMetadata) Stat(org.apache.zookeeper.data.Stat)

Aggregations

NodeMetadata (herddb.model.NodeMetadata)11 MetadataStorageManagerException (herddb.metadata.MetadataStorageManagerException)6 ArrayList (java.util.ArrayList)5 StatementExecutionException (herddb.model.StatementExecutionException)4 IOException (java.io.IOException)3 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)2 ClientConfiguration (herddb.client.ClientConfiguration)2 JMXUtils (herddb.jmx.JMXUtils)2 CommitLog (herddb.log.CommitLog)2 LogNotAvailableException (herddb.log.LogNotAvailableException)2 DDLException (herddb.model.DDLException)2 TableSpace (herddb.model.TableSpace)2 ServerHostData (herddb.network.ServerHostData)2 ServerConfiguration (herddb.server.ServerConfiguration)2 DataStorageManagerException (herddb.storage.DataStorageManagerException)2 KeeperException (org.apache.zookeeper.KeeperException)2 Stat (org.apache.zookeeper.data.Stat)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 MoreExecutors (com.google.common.util.concurrent.MoreExecutors)1 DumpedLogEntry (herddb.backup.DumpedLogEntry)1