Package org.apache.zookeeper.client
Interface Chroot
- All Known Implementing Classes:
Chroot.NotRoot,Chroot.Root
@Private
public interface Chroot
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionCreates a delegating callback to strip chroot from created node name.Creates a delegating callback to strip chroot from created node name.interceptWatcher(Watcher watcher) Creates a delegating watcher to strip chroot fromWatchedEvent.getPath()for given watcher.static ChrootofNullable(String chroot) Creates server path by prepending chroot to given client path.Creates client path by stripping chroot from given sever path.
-
Method Details
-
ofNullable
-
prepend
Creates server path by prepending chroot to given client path.- Parameters:
clientPath- client path- Returns:
- sever path with chroot prepended
-
strip
Creates client path by stripping chroot from given sever path.- Parameters:
serverPath- sever path with chroot prepended- Returns:
- client path with chroot stripped
- Throws:
IllegalArgumentException- if given server path contains no chroot
-
interceptCallback
Creates a delegating callback to strip chroot from created node name. -
interceptCallback
Creates a delegating callback to strip chroot from created node name. -
interceptWatcher
Creates a delegating watcher to strip chroot fromWatchedEvent.getPath()for given watcher.
-