public String execute() throws KeeperException, InterruptedException {
return zk.create(indexerPath, data, ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
}
});
} catch (KeeperException.NodeExistsException e) {
throw new IndexerExistsException(indexer.getName());
} catch (Exception e) {
throw new IndexerModelException("Error creating indexer.", e);
}
}