Package | Description |
---|---|
org.apache.giraph.time |
Time related things.
|
org.apache.giraph.zk |
Package of
ZooKeeper related objects. |
Modifier and Type | Class and Description |
---|---|
class |
FakeTime
Thread-safe implementation of Time for testing that can help get time based
ordering of events when desired.
|
class |
SystemTime
Implementation of Time that is thread-safe and should be used in
production.
|
Modifier and Type | Method and Description |
---|---|
static Time |
SystemTime.get()
Get an instance (shared) of this object
|
Modifier and Type | Method and Description |
---|---|
static long |
Times.get(Time time,
TimeUnit timeUnit)
Convenience method to measure time in a given TimeUnit.
|
static long |
Times.getDiff(Time time,
TimeUnit timeUnit,
long startTime)
Convenience method to get time since the beginning of an event in a given
TimeUnit.
|
static long |
Times.getMicrosSince(Time time,
long previousMicros)
Convenience method to get microseconds since a previous microseconds point.
|
static long |
Times.getMillisecondsSince(Time time,
long previousMilliseconds)
Convenience method to get milliseconds since a previous milliseconds
point.
|
static long |
Times.getMsSince(Time time,
long previousMs)
Convenience method to get milliseconds since a previous milliseconds
point.
|
static long |
Times.getNanosecondsSince(Time time,
long previousNanoseconds)
Convenience method to get nanoseconds since a previous nanoseconds
point.
|
static long |
Times.getNanosSince(Time time,
long previousNanos)
Convenience method to get nanoseconds since a previous nanoseconds
point.
|
static int |
Times.getSecondsSince(Time time,
int previousSeconds)
Convenience method to get seconds since a previous seconds
point.
|
static int |
Times.getSecSince(Time time,
int previousSec)
Convenience method to get seconds since a previous seconds
point.
|
Constructor and Description |
---|
PredicateLock(org.apache.hadoop.util.Progressable progressable,
int msecPeriod,
Time time)
Constructor.
|
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.