@Test public void testParseFactor() { scheduler = new DecayRpcScheduler(1, "", new Configuration()); assertEquals(DecayRpcScheduler.IPC_CALLQUEUE_DECAYSCHEDULER_FACTOR_DEFAULT, scheduler.getDecayFactor(), 0.00001); Configuration conf = new Configuration(); conf.set("prefix." + DecayRpcScheduler.IPC_CALLQUEUE_DECAYSCHEDULER_FACTOR_KEY, "0.125"); scheduler = new DecayRpcScheduler(1, "prefix", conf); assertEquals(0.125, scheduler.getDecayFactor(), 0.00001); }
@VisibleForTesting public double getDecayFactor() { return decayFactor; }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public double getDecayFactor() { return decayFactor; } }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public double getDecayFactor() { return decayFactor; } DecayRpcScheduler(int numQueues, String ns, Configuration conf); }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public double getDecayFactor() { return decayFactor; } DecayRpcScheduler(int numQueues, String ns, Configuration conf); @Override int getPriorityLevel(Schedulable obj); @VisibleForTesting double getDecayFactor(); @VisibleForTesting long getDecayPeriodMillis(); @VisibleForTesting double[] getThresholds(); @VisibleForTesting void forceDecay(); @VisibleForTesting Map<Object, Long> getCallCountSnapshot(); @VisibleForTesting long getTotalCallSnapshot(); int getUniqueIdentityCount(); long getTotalCallVolume(); String getSchedulingDecisionSummary(); String getCallVolumeSummary(); }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public double getDecayFactor() { return decayFactor; } DecayRpcScheduler(int numQueues, String ns, Configuration conf); @Override int getPriorityLevel(Schedulable obj); @VisibleForTesting double getDecayFactor(); @VisibleForTesting long getDecayPeriodMillis(); @VisibleForTesting double[] getThresholds(); @VisibleForTesting void forceDecay(); @VisibleForTesting Map<Object, Long> getCallCountSnapshot(); @VisibleForTesting long getTotalCallSnapshot(); int getUniqueIdentityCount(); long getTotalCallVolume(); String getSchedulingDecisionSummary(); String getCallVolumeSummary(); static final String IPC_CALLQUEUE_DECAYSCHEDULER_PERIOD_KEY; static final long IPC_CALLQUEUE_DECAYSCHEDULER_PERIOD_DEFAULT; static final String IPC_CALLQUEUE_DECAYSCHEDULER_FACTOR_KEY; static final double IPC_CALLQUEUE_DECAYSCHEDULER_FACTOR_DEFAULT; static final String IPC_CALLQUEUE_DECAYSCHEDULER_THRESHOLDS_KEY; static final String DECAYSCHEDULER_UNKNOWN_IDENTITY; static final Log LOG; }