Class WatchBench
- java.lang.Object
-
- org.apache.zookeeper.server.watch.WatchBench
-
public class WatchBench extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WatchBench.AddSparseWatchState
static class
WatchBench.InvocationState
static class
WatchBench.IterationState
static class
WatchBench.TriggerSparseWatchState
-
Constructor Summary
Constructors Constructor Description WatchBench()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAddConcentrateWatch(WatchBench.IterationState state)
Test concenrate watch case where the watcher watches all paths.void
testAddSparseWatch(WatchBench.AddSparseWatchState state)
Test sparse watch case where only one watcher watches all paths, and only one path being watched by all watchers.void
testTriggerConcentrateWatch(WatchBench.InvocationState state)
Test trigger watches in concenrate case.void
testTriggerSparseWatch(WatchBench.TriggerSparseWatchState state)
Test trigger watches in sparse case.
-
-
-
Method Detail
-
testAddConcentrateWatch
public void testAddConcentrateWatch(WatchBench.IterationState state) throws java.lang.Exception
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:
java.lang.Exception
-
testTriggerConcentrateWatch
public void testTriggerConcentrateWatch(WatchBench.InvocationState state) throws java.lang.Exception
Test trigger watches in concenrate case. The output of this test is the time used to trigger those watches on all paths.- Throws:
java.lang.Exception
-
testAddSparseWatch
public void testAddSparseWatch(WatchBench.AddSparseWatchState state) throws java.lang.Exception
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:
java.lang.Exception
-
testTriggerSparseWatch
public void testTriggerSparseWatch(WatchBench.TriggerSparseWatchState state) throws java.lang.Exception
Test trigger watches in sparse case. The output of this test is the time used to trigger those watches on all paths.- Throws:
java.lang.Exception
-
-