@Test public void testGetRemainingCoolDownWhenNoScalingDone() { long remainingTime = ClusterUtils.getRemainingCooldownTime(30 * TimeUtil.MIN_IN_MS, 0); assertEquals("Remaining Time should be 0 when no scaling", 0, remainingTime); }
public static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity) { return lastScalingActivity == 0L ? 0L : coolDownMs - (System.currentTimeMillis() - lastScalingActivity); }
ClusterUtils { public static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity) { return lastScalingActivity == 0L ? 0L : coolDownMs - (System.currentTimeMillis() - lastScalingActivity); } }
ClusterUtils { public static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity) { return lastScalingActivity == 0L ? 0L : coolDownMs - (System.currentTimeMillis() - lastScalingActivity); } private  ClusterUtils(); }
ClusterUtils { public static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity) { return lastScalingActivity == 0L ? 0L : coolDownMs - (System.currentTimeMillis() - lastScalingActivity); } private  ClusterUtils(); static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity); static long memoryBytesToMB(long memoryInBytes); }
ClusterUtils { public static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity) { return lastScalingActivity == 0L ? 0L : coolDownMs - (System.currentTimeMillis() - lastScalingActivity); } private  ClusterUtils(); static long getRemainingCooldownTime(long coolDownMs, long lastScalingActivity); static long memoryBytesToMB(long memoryInBytes); static final DecimalFormat TIME_FORMAT; static final int MAX_CAPACITY; static final long MEGABYTE; }