backtype.storm.utils
Class Time

java.lang.Object
  extended by backtype.storm.utils.Time

public class Time
extends Object


Field Summary
static org.slf4j.Logger LOG
           
 
Constructor Summary
Time()
           
 
Method Summary
static void advanceTime(long ms)
           
static long currentTimeMillis()
           
static int currentTimeSecs()
           
static boolean isSimulating()
           
static boolean isThreadWaiting(Thread t)
           
static void sleep(long ms)
           
static void sleepUntil(long targetTimeMs)
           
static void startSimulating()
           
static void stopSimulating()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static org.slf4j.Logger LOG
Constructor Detail

Time

public Time()
Method Detail

startSimulating

public static void startSimulating()

stopSimulating

public static void stopSimulating()

isSimulating

public static boolean isSimulating()

sleepUntil

public static void sleepUntil(long targetTimeMs)
                       throws InterruptedException
Throws:
InterruptedException

sleep

public static void sleep(long ms)
                  throws InterruptedException
Throws:
InterruptedException

currentTimeMillis

public static long currentTimeMillis()

currentTimeSecs

public static int currentTimeSecs()

advanceTime

public static void advanceTime(long ms)

isThreadWaiting

public static boolean isThreadWaiting(Thread t)


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.