@Test public void testParsePeriod() { scheduler = new DecayRpcScheduler(1, "", new Configuration()); assertEquals(DecayRpcScheduler.IPC_CALLQUEUE_DECAYSCHEDULER_PERIOD_DEFAULT, scheduler.getDecayPeriodMillis()); Configuration conf = new Configuration(); conf.setLong("ns." + DecayRpcScheduler.IPC_CALLQUEUE_DECAYSCHEDULER_PERIOD_KEY, 1058); scheduler = new DecayRpcScheduler(1, "ns", conf); assertEquals(1058L, scheduler.getDecayPeriodMillis()); }
@VisibleForTesting public long getDecayPeriodMillis() { return decayPeriodMillis; }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public long getDecayPeriodMillis() { return decayPeriodMillis; } }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public long getDecayPeriodMillis() { return decayPeriodMillis; } DecayRpcScheduler(int numQueues, String ns, Configuration conf); }
DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean { @VisibleForTesting public long getDecayPeriodMillis() { return decayPeriodMillis; } 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 long getDecayPeriodMillis() { return decayPeriodMillis; } 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; }