Package com.rpl.rama
Interface RamaModule.Setup
- Enclosing interface:
RamaModule
public static interface RamaModule.Setup
Used to define depots, global objects, and module dependencies
in a module definition.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclusterDepot(String var, String moduleName, String depotName) Defines a mirror depot that accesses a depot on another module.voidclusterPState(String pstateVar, String moduleName, String pstateName) Defines a mirror PState that accesses a PState on another module.voidclusterQuery(String var, String moduleName, String queryTopologyName) Defines a query topology reference for invoking a query topology on another module.declareDepot(String var, com.rpl.rama.impl.NativeDepotPartitioning partitioning) Defines a depot with the given partitioning scheme.<T extends Depot.Partitioning>
Depot.DeclarationdeclareDepot(String var, Class<T> partitioning) Defines a depot with the given partitioning scheme.voiddeclareObject(String var, Object obj) Defines an object to be copied to all tasks.voiddeclareTickDepot(String var, long frequencyMillis) Defines a depot that emits at the given frequency of time.voidsetLaunchDepotDynamicOption(String depot, String opt, Object value) Sets the value of a depot dynamic option to be used on module launch, unless an explicit override is provided at deploy time.voidsetLaunchModuleDynamicOption(String opt, Object value) Sets the value of a module dynamic option to be used on module launch, unless an explicit override is provided at deploy time.voidsetLaunchPStateDynamicOption(String pstate, String opt, Object value) Sets the value of a PState dynamic option to be used on module launch, unless an explicit override is provided at deploy time.voidsetLaunchTopologyDynamicOption(String topology, String opt, Object value) Sets the value of a topology dynamic option to be used on module launch, unless an explicit override is provided at deploy time.
-
Method Details
-
declareDepot
Defines a depot with the given partitioning scheme.- Parameters:
var- Var to reference the depot in topologies. Also the name of the depot for usage by other modules orclients.partitioning- Partitioning scheme for depot appends from clients. Can either be a native scheme from thestatic methods on Depotor a custom partitioning scheme implementingDepot.Partitioning.- Returns:
- Builder-style object for setting additional options on the depot
-
declareDepot
Defines a depot with the given partitioning scheme.- Parameters:
var- Var to reference the depot in topologies. Also the name of the depot for usage by other modules orclients.partitioning- Partitioning scheme for depot appends from clients. Can either be a native scheme from thestatic methods on Depotor a custom partitioning scheme implementingDepot.Partitioning.- Returns:
- Builder-style object for setting additional options on the depot
-
declareTickDepot
Defines a depot that emits at the given frequency of time. Can be used in any ETL topology and cannot be appended to by clients.- Parameters:
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.- See Also:
-
declareObject
Defines an object to be copied to all tasks. If provided object implementsTaskGlobalObject, the object will have a specialized instance per task. This can be used to integrate external queues, databases, or other tools with Rama.- Parameters:
var- Var to reference the object in topologiesobj- Value of the object- See Also:
-
clusterDepot
Defines a mirror depot that accesses a depot on another module.- Parameters:
var- Var to reference this depot in this modulemoduleName- Name of the module where the depot livesdepotName- Name of the depot in its module
-
clusterPState
Defines a mirror PState that accesses a PState on another module.- Parameters:
pstateVar- Var to reference this PState in this modulemoduleName- Name of the module where the PState livespstateName- Name of the PState in its module
-
clusterQuery
Defines a query topology reference for invoking a query topology on another module. TheinvokeQuerymethod is used to perform the invoke in topology code.- Parameters:
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
-
setLaunchModuleDynamicOption
Sets the value of a module dynamic option to be used on module launch, unless an explicit override is provided at deploy time.- Parameters:
opt- Name of the option to setvalue- Value of the option
-
setLaunchPStateDynamicOption
Sets the value of a PState dynamic option to be used on module launch, unless an explicit override is provided at deploy time.- Parameters:
pstate- Name of the PStateopt- Name of the option to setvalue- Value of the option
-
setLaunchDepotDynamicOption
Sets the value of a depot dynamic option to be used on module launch, unless an explicit override is provided at deploy time.- Parameters:
depot- Name of the depotopt- Name of the option to setvalue- Value of the option
-
setLaunchTopologyDynamicOption
Sets the value of a topology dynamic option to be used on module launch, unless an explicit override is provided at deploy time.- Parameters:
topology- Name of the topologyopt- Name of the option to setvalue- Value of the option
-