Package com.yahoo.vespa.curator
Interface Curator.DirectoryCache
-
- Enclosing class:
- Curator
public static interface Curator.DirectoryCache
A listenable cache of all the immediate children of a curator path. This wraps the Curator PathChildrenCache recipe to allow us to mock it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(org.apache.curator.framework.recipes.cache.PathChildrenCacheListener listener)
void
close()
List<org.apache.curator.framework.recipes.cache.ChildData>
getCurrentData()
org.apache.curator.framework.recipes.cache.ChildData
getCurrentData(com.yahoo.path.Path absolutePath)
Returns the ChildData, or null if it does not exist.void
start()
-
-
-
Method Detail
-
start
void start()
-
addListener
void addListener(org.apache.curator.framework.recipes.cache.PathChildrenCacheListener listener)
-
getCurrentData
List<org.apache.curator.framework.recipes.cache.ChildData> getCurrentData()
-
getCurrentData
org.apache.curator.framework.recipes.cache.ChildData getCurrentData(com.yahoo.path.Path absolutePath)
Returns the ChildData, or null if it does not exist.
-
close
void close()
-
-