|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.EnvironmentEdgeManager
@InterfaceAudience.Private public class EnvironmentEdgeManager
Manages a singleton instance of the environment edge. This class shall
implement static versions of the interface EnvironmentEdge
, then
defer to the delegate on invocation.
Method Summary | |
---|---|
static long |
currentTimeMillis()
Defers to the delegate and calls the EnvironmentEdge.currentTimeMillis() method. |
static EnvironmentEdge |
getDelegate()
Retrieves the singleton instance of the EnvironmentEdge that is
being managed. |
static void |
injectEdge(EnvironmentEdge edge)
Injects the given edge such that it becomes the managed entity. |
static void |
reset()
Resets the managed instance to the default instance: DefaultEnvironmentEdge . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EnvironmentEdge getDelegate()
EnvironmentEdge
that is
being managed.
public static void reset()
DefaultEnvironmentEdge
.
public static void injectEdge(EnvironmentEdge edge)
edge
- the new edge.public static long currentTimeMillis()
EnvironmentEdge.currentTimeMillis()
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |