public static interface RamaModule.Setup
Modifier and Type | Method and Description |
---|---|
void |
clusterDepot(java.lang.String var,
java.lang.String moduleName,
java.lang.String depotName)
Defines a mirror depot that accesses a depot on another module.
|
void |
clusterPState(java.lang.String pstateVar,
java.lang.String moduleName,
java.lang.String pstateName)
Defines a mirror PState that accesses a PState on another module.
|
void |
clusterQuery(java.lang.String var,
java.lang.String moduleName,
java.lang.String queryTopologyName)
Defines a query topology reference for invoking a query topology on
another module.
|
<T extends Depot.Partitioning> |
declareDepot(java.lang.String var,
java.lang.Class<T> partitioning)
Defines a depot with the given partitioning scheme.
|
Depot.Declaration |
declareDepot(java.lang.String var,
com.rpl.rama.impl.NativeDepotPartitioning partitioning)
Defines a depot with the given partitioning scheme.
|
void |
declareObject(java.lang.String var,
java.lang.Object obj)
Defines an object to be copied to all tasks.
|
void |
declareTickDepot(java.lang.String var,
long frequencyMillis)
Defines a depot that emits at the given frequency of time.
|
Depot.Declaration declareDepot(java.lang.String var, com.rpl.rama.impl.NativeDepotPartitioning partitioning)
var
- Var to reference the depot in topologies. Also the name of the depot
for usage by other modules or clients
.partitioning
- Partitioning scheme for depot appends from clients. Can either be a
native scheme from the static methods on Depot
or a custom
partitioning scheme implementing Depot.Partitioning
.<T extends Depot.Partitioning> Depot.Declaration declareDepot(java.lang.String var, java.lang.Class<T> partitioning)
var
- Var to reference the depot in topologies. Also the name of the depot
for usage by other modules or clients
.partitioning
- Partitioning scheme for depot appends from clients. Can either be a
native scheme from the static methods on Depot
or a custom
partitioning scheme implementing Depot.Partitioning
.void declareTickDepot(java.lang.String var, long frequencyMillis)
var
- Var to reference the depot in topologiesfrequencyMillis
- Frequency to emit in milliseconds. In microbatch topologies
can only emit as fast as the latency of a single microbatch.void declareObject(java.lang.String var, java.lang.Object obj)
TaskGlobalObject
, the object will have
a specialized instance per task. This can be used to integrate external
queues, databases, or other tools with Rama.var
- Var to reference the object in topologiesobj
- Value of the objectvoid clusterDepot(java.lang.String var, java.lang.String moduleName, java.lang.String depotName)
var
- Var to reference this depot in this modulemoduleName
- Name of the module where the depot livesdepotName
- Name of the depot in its modulevoid clusterPState(java.lang.String pstateVar, java.lang.String moduleName, java.lang.String pstateName)
pstateVar
- Var to reference this PState in this modulemoduleName
- Name of the module where the PState livespstateName
- Name of the PState in its modulevoid clusterQuery(java.lang.String var, java.lang.String moduleName, java.lang.String queryTopologyName)
invokeQuery
method is used
to perform the invoke in topology code.var
- Var to reference this query topology in this modulemoduleName
- Name of the module where the query topology livesqueryTopologyName
- Name of the PState in its module