public abstract class BaseCorfuAppUtils extends Object
Constructor and Description |
---|
BaseCorfuAppUtils() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
instantiateCorfuObject(Class<T> tClass,
String name)
Utility method to instantiate a Corfu object
A Corfu Stream is a log dedicated specifically to the history of updates of one object.
|
protected <T> Object |
instantiateCorfuObject(com.google.common.reflect.TypeToken<T> tType,
String name)
Utility method to instantiate a Corfu object
A Corfu Stream is a log dedicated specifically to the history of updates of one object.
|
protected void |
TXBegin()
Utility method to start a (default type) TX
Can be overriden by classes that require non-default transaction type.
|
protected void |
TXEnd()
Utility method to end a TX
|
protected <T> T instantiateCorfuObject(Class<T> tClass, String name)
T
- the return classtClass
- is the object classname
- is the name of the stream backing up the objectprotected <T> Object instantiateCorfuObject(com.google.common.reflect.TypeToken<T> tType, String name)
T
- the return classtType
- is a TypeToken wrapping the (possibly generic) object classname
- is the name of the stream backing up the objectprotected void TXBegin()
protected void TXEnd()
Copyright © 2019 CorfuDB. All rights reserved.