Class EnsureContainers


  • public class EnsureContainers
    extends java.lang.Object
    Similar to EnsurePath but creates containers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensure()
      The first time this method is called, all nodes in the path will be created as containers if needed
      void reset()
      Reset so that the next call to ensure() will attempt to create containers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnsureContainers

        public EnsureContainers​(CuratorFramework client,
                                java.lang.String path)
        Parameters:
        client - the client
        path - path to ensure is containers
    • Method Detail

      • ensure

        public void ensure()
                    throws java.lang.Exception
        The first time this method is called, all nodes in the path will be created as containers if needed
        Throws:
        java.lang.Exception - errors
      • reset

        public void reset()
        Reset so that the next call to ensure() will attempt to create containers