public interface InProcessCluster extends ClusterManagerBase
Modifier and Type | Method and Description |
---|---|
static InProcessCluster |
create()
Creates an InProcessCluster
|
static InProcessCluster |
create(java.util.List<java.lang.Class> serializations)
Creates an InProcessCluster with the specified
RamaCustomSerialization
implementations registered for all launched modules |
void |
destroyModule(java.lang.String moduleName)
Destroy a module
|
void |
launchModule(RamaModule m,
LaunchConfig config)
Launch a module.
|
void |
pauseMicrobatchTopology(java.lang.String moduleName,
java.lang.String topologyName)
Pauses the specified microbatch topology so it stops processing.
|
void |
resumeMicrobatchTopology(java.lang.String moduleName,
java.lang.String topologyName)
Resumes a paused microbatch topology so it starts processing again.
|
void |
updateModule(RamaModule m)
Update a module to a new version.
|
void |
updateModule(RamaModule m,
UpdateOptions options)
Update a module to a new version.
|
void |
waitForMicrobatchProcessedCount(java.lang.String moduleName,
java.lang.String topologyName,
int count)
Block until specified microbatch topology has finished processing at least the specified
number of depot records since the topology started.
|
clusterDepot, clusterPState, clusterQuery
void launchModule(RamaModule m, LaunchConfig config)
m
- Module to launchconfig
- Parallelism configvoid updateModule(RamaModule m)
m
- Module to update. RamaModule.getModuleName()
can be used in test
contexts to define two different versions of the same module.void updateModule(RamaModule m, UpdateOptions options)
m
- Module to update. RamaModule.getModuleName()
can be used in test
contexts to define two different versions of the same module.options
- Options for module updatevoid destroyModule(java.lang.String moduleName)
moduleName
- Name of module to destroyvoid waitForMicrobatchProcessedCount(java.lang.String moduleName, java.lang.String topologyName, int count)
moduleName
- Name of moduletopologyName
- Name of microbatch topologycount
- Number of recordsvoid pauseMicrobatchTopology(java.lang.String moduleName, java.lang.String topologyName)
moduleName
- Name of moduletopologyName
- Name of topologyvoid resumeMicrobatchTopology(java.lang.String moduleName, java.lang.String topologyName)
moduleName
- Name of moduletopologyName
- Name of topologystatic InProcessCluster create()
static InProcessCluster create(java.util.List<java.lang.Class> serializations)
RamaCustomSerialization
implementations registered for all launched modules