Class WatchBench
java.lang.Object
org.apache.zookeeper.server.watch.WatchBench
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest concenrate watch case where the watcher watches all paths.voidTest sparse watch case where only one watcher watches all paths, and only one path being watched by all watchers.voidTest trigger watches in concenrate case.voidTest 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
-