Package com.nokia.dempsy.cluster

Examples of com.nokia.dempsy.cluster.ClusterInfoException


            {
                throw new ClusterInfoException.NoNodeException("Node doesn't exist at " + path + " while running " + name, e);
            } catch (final KeeperException e)
            {
                resetZookeeper(cur);
                throw new ClusterInfoException("Zookeeper failed while trying to " + name + " at " + path, e);
            } catch (final InterruptedException e)
            {
                throw new ClusterInfoException("Interrupted while trying to " + name + " at " + path, e);
            } catch (final SerializationException e)
            {
                throw new ClusterInfoException("Failed to deserialize the object durring a " + name + " call at " + path, e);
            }
        }

        throw new ClusterInfoException(name + " called on stopped ZookeeperSession.");
    }
View Full Code Here


      String parentPath = parent(path);

      Entry parent = entries.get(parentPath);
      if (parent == null)
      {
         throw new ClusterInfoException("No Parent for \"" + path + "\" which is expected to be \"" +
               parent(path) + "\"");
      }

      long seq = -1;
      if (mode.isSequential())
View Full Code Here

  
   private static synchronized Pair<Entry,Entry> doormdir(String path) throws ClusterInfoException
   {
      Entry ths = entries.get(path);
      if (ths == null)
         throw new ClusterInfoException("rmdir of non existant node \"" + path + "\"");

      Entry parent = entries.get(parent(path));
      entries.remove(path);
     
      if (parent != null)
View Full Code Here

     
      @Override
      public String mkdir(String path, Object data, DirMode mode) throws ClusterInfoException
      {
         if (stopping.get())
            throw new ClusterInfoException("mkdir called on stopped session.");
        
         String ret = omkdir(path,data,mode);
         if (ret != null && mode.isEphemeral())
         {
            synchronized(localEphemeralDirs)
View Full Code Here

      @Override
      public void rmdir(String path) throws ClusterInfoException
      {
         if (stopping.get())
            throw new ClusterInfoException("rmdir called on stopped session.");

         ormdir(path);
         synchronized(localEphemeralDirs)
         {
            localEphemeralDirs.remove(path);
View Full Code Here

      @Override
      public boolean exists(String path, ClusterInfoWatcher watcher) throws ClusterInfoException
      {
         if (stopping.get())
            throw new ClusterInfoException("exists called on stopped session.");
         return oexists(path,makeWatcher(watcher));
      }
View Full Code Here

      @Override
      public Object getData(String path, ClusterInfoWatcher watcher) throws ClusterInfoException
      {
         if (stopping.get())
            throw new ClusterInfoException("getData called on stopped session.");
         return ogetData(path,makeWatcher(watcher));
      }
View Full Code Here

      @Override
      public void setData(String path, Object data) throws ClusterInfoException
      {
         if (stopping.get())
            throw new ClusterInfoException("setData called on stopped session.");
         osetData(path,data);
      }
View Full Code Here

      @Override
      public Collection<String> getSubdirs(String path, ClusterInfoWatcher watcher) throws ClusterInfoException
      {
         if (stopping.get())
            throw new ClusterInfoException("getSubdirs called on stopped session.");
         return ogetSubdirs(path,makeWatcher(watcher));
      }
View Full Code Here

      {
         ret = new ZookeeperSession(connectString,sessionTimeout);
      }
      catch (IOException ioe)
      {
         throw new ClusterInfoException("Failed to instantiate a ZooKeeper client (" +
               ZooKeeper.class.getSimpleName() + ") using the connectString:\"" +
               SafeString.valueOf(connectString) + "\" with the sessionTimeout:" +
               sessionTimeout,ioe);
      }
     
View Full Code Here

TOP

Related Classes of com.nokia.dempsy.cluster.ClusterInfoException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.