Class WatchBench
java.lang.Object
org.apache.zookeeper.server.watch.WatchBench
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Test concenrate watch case where the watcher watches all paths.void
Test sparse watch case where only one watcher watches all paths, and only one path being watched by all watchers.void
Test trigger watches in concenrate case.void
Test trigger watches in sparse case.
-
Constructor Details
-
WatchBench
public WatchBench()
-
-
Method Details
-
testAddConcentrateWatch
Test concenrate watch case where the watcher watches all paths. The output of this test will be the average time used to add the watch to all paths.- Throws:
Exception
-
testTriggerConcentrateWatch
Test trigger watches in concenrate case. The output of this test is the time used to trigger those watches on all paths.- Throws:
Exception
-
testAddSparseWatch
Test sparse watch case where only one watcher watches all paths, and only one path being watched by all watchers. The output of this test will be the average time used to add those sparse watches.- Throws:
Exception
-
testTriggerSparseWatch
Test trigger watches in sparse case. The output of this test is the time used to trigger those watches on all paths.- Throws:
Exception
-