public class KumulusTopology implements KumulusEmitter
| Modifier and Type | Class and Description |
|---|---|
static class |
KumulusTopology.Companion |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_BUSY_POLL_SLEEP_TIME |
static java.lang.String |
CONF_EXTRA_ACKING |
static java.lang.String |
CONF_SHUTDOWN_TIMEOUT_SECS |
static java.lang.String |
CONF_THREAD_POOL_CORE_SIZE |
static java.lang.String |
CONF_THREAD_POOL_KEEP_ALIVE |
static java.lang.String |
CONF_THREAD_POOL_MAX_SIZE |
static java.lang.String |
CONF_THREAD_POOL_QUEUE_SIZE |
static KumulusTopology.Companion |
Companion |
| Constructor and Description |
|---|
KumulusTopology(java.util.List<? extends org.xyro.kumulus.component.KumulusComponent> components,
java.util.Map<java.lang.String,? extends java.lang.Object> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeMessageProcessing(KumulusSpout spout,
java.lang.Object spoutMessageId,
boolean ack) |
void |
execute(KumulusComponent destComponent,
KumulusTuple kumulusTuple) |
java.util.List<org.xyro.kumulus.component.KumulusComponent> |
getDestinations(java.util.List<java.lang.Integer> tasks) |
ComponentGraph<org.xyro.kumulus.graph.GraphNode,org.xyro.kumulus.graph.GraphEdge> |
getGraph() |
<N extends GraphNode,E extends GraphEdge<? extends N>> |
getGraph(ComponentGraphNodeFactory<? extends N> nodeFactory,
ComponentGraphEdgeFactory<N,? extends E> edgeFactory) |
kotlin.jvm.functions.Function3<java.lang.String,java.lang.Integer,java.lang.Long,kotlin.Unit> |
getOnBoltPrepareFinishHook() |
kotlin.jvm.functions.Function4<java.lang.String,java.lang.Integer,java.lang.Long,java.lang.Object,kotlin.Unit> |
getOnBusyBoltHook() |
kotlin.jvm.functions.Function3<java.lang.String,java.lang.Integer,java.lang.Throwable,kotlin.Unit> |
getOnReportErrorHook() |
void |
prepare(long time,
java.util.concurrent.TimeUnit unit)
Do the prepare phase of the topology
|
void |
prepare()
Do the prepare phase of the topology
|
void |
setOnBoltPrepareFinishHook(kotlin.jvm.functions.Function3<? super java.lang.String,? super java.lang.Integer,? super java.lang.Long,kotlin.Unit> p) |
void |
setOnBusyBoltHook(kotlin.jvm.functions.Function4<? super java.lang.String,? super java.lang.Integer,? super java.lang.Long,java.lang.Object,kotlin.Unit> p) |
void |
setOnReportErrorHook(kotlin.jvm.functions.Function3<? super java.lang.String,? super java.lang.Integer,? super java.lang.Throwable,kotlin.Unit> p) |
void |
start(boolean block)
Start the topology spout polling
|
void |
stop()
Stop the topology
|
completeMessageProcessing, execute, getDestinationspublic static java.lang.String CONF_EXTRA_ACKING
public static java.lang.String CONF_THREAD_POOL_KEEP_ALIVE
public static java.lang.String CONF_THREAD_POOL_QUEUE_SIZE
public static java.lang.String CONF_THREAD_POOL_MAX_SIZE
public static java.lang.String CONF_THREAD_POOL_CORE_SIZE
public static java.lang.String CONF_BUSY_POLL_SLEEP_TIME
public static java.lang.String CONF_SHUTDOWN_TIMEOUT_SECS
public static KumulusTopology.Companion Companion
public KumulusTopology(java.util.List<? extends org.xyro.kumulus.component.KumulusComponent> components,
java.util.Map<java.lang.String,? extends java.lang.Object> config)
public kotlin.jvm.functions.Function4<java.lang.String,java.lang.Integer,java.lang.Long,java.lang.Object,kotlin.Unit> getOnBusyBoltHook()
public void setOnBusyBoltHook(kotlin.jvm.functions.Function4<? super java.lang.String,? super java.lang.Integer,? super java.lang.Long,java.lang.Object,kotlin.Unit> p)
public kotlin.jvm.functions.Function3<java.lang.String,java.lang.Integer,java.lang.Long,kotlin.Unit> getOnBoltPrepareFinishHook()
public void setOnBoltPrepareFinishHook(kotlin.jvm.functions.Function3<? super java.lang.String,? super java.lang.Integer,? super java.lang.Long,kotlin.Unit> p)
public kotlin.jvm.functions.Function3<java.lang.String,java.lang.Integer,java.lang.Throwable,kotlin.Unit> getOnReportErrorHook()
public void setOnReportErrorHook(kotlin.jvm.functions.Function3<? super java.lang.String,? super java.lang.Integer,? super java.lang.Throwable,kotlin.Unit> p)
public void prepare(long time,
java.util.concurrent.TimeUnit unit)
Do the prepare phase of the topology
time - timeout durationunit - timeout duration unitpublic void prepare()
Do the prepare phase of the topology
public void start(boolean block)
Start the topology spout polling
block - should the call block until the topology os stoppedpublic void stop()
Stop the topology
public java.util.List<org.xyro.kumulus.component.KumulusComponent> getDestinations(java.util.List<java.lang.Integer> tasks)
public void execute(KumulusComponent destComponent, KumulusTuple kumulusTuple)
public void completeMessageProcessing(KumulusSpout spout, java.lang.Object spoutMessageId, boolean ack)
public ComponentGraph<org.xyro.kumulus.graph.GraphNode,org.xyro.kumulus.graph.GraphEdge> getGraph()
public <N extends GraphNode,E extends GraphEdge<? extends N>> ComponentGraph<org.xyro.kumulus.graph.GraphNode,org.xyro.kumulus.graph.GraphEdge> getGraph(ComponentGraphNodeFactory<? extends N> nodeFactory, ComponentGraphEdgeFactory<N,? extends E> edgeFactory)