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_BOLT_QUEUE_PUSHBACK_WAIT |
static java.lang.String |
CONF_BUSY_POLL_SLEEP_TIME
Deprecated.
|
static java.lang.String |
CONF_EXTRA_ACKING |
static java.lang.String |
CONF_READY_POLL_SLEEP |
static java.lang.String |
CONF_SCHEDULED_EXECUTOR_THREAD_POOL_SIZE |
static java.lang.String |
CONF_SHUTDOWN_TIMEOUT_SECS |
static java.lang.String |
CONF_SPOUT_AVAILABILITY_PASS_TIMEOUT |
static java.lang.String |
CONF_THREAD_POOL_CORE_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,
java.util.List<java.lang.Integer> timeoutTasks,
java.util.List<java.lang.Integer> failedTasks,
kotlin.jvm.functions.Function0<kotlin.Unit> callback) |
void |
execute(KumulusComponent destComponent,
KumulusTuple kumulusTuple) |
int |
getCurrentThreadsInUse() |
java.util.List<org.xyro.kumulus.component.KumulusComponent> |
getDestinations(java.util.List<java.lang.Integer> tasks) |
int |
getMaxQueueSize() |
int |
getMaxThreadsInUse() |
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,org.apache.storm.tuple.Tuple,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 |
resetMetrics() |
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,? super org.apache.storm.tuple.Tuple,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
|
void |
throwException(java.lang.Throwable t) |
completeMessageProcessing, execute, getDestinations, throwException@NotNull public static java.lang.String CONF_EXTRA_ACKING
@NotNull public static java.lang.String CONF_THREAD_POOL_CORE_SIZE
@NotNull public static java.lang.String CONF_READY_POLL_SLEEP
@NotNull public static java.lang.String CONF_SPOUT_AVAILABILITY_PASS_TIMEOUT
@NotNull public static java.lang.String CONF_BOLT_QUEUE_PUSHBACK_WAIT
@NotNull public static java.lang.String CONF_SHUTDOWN_TIMEOUT_SECS
@NotNull public static java.lang.String CONF_SCHEDULED_EXECUTOR_THREAD_POOL_SIZE
@NotNull public static java.lang.String CONF_BUSY_POLL_SLEEP_TIME
public static KumulusTopology.Companion Companion
public KumulusTopology(@NotNull
java.util.List<? extends org.xyro.kumulus.component.KumulusComponent> components,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> config)
@Nullable public kotlin.jvm.functions.Function4<java.lang.String,java.lang.Integer,java.lang.Long,org.apache.storm.tuple.Tuple,kotlin.Unit> getOnBusyBoltHook()
public void setOnBusyBoltHook(@Nullable
kotlin.jvm.functions.Function4<? super java.lang.String,? super java.lang.Integer,? super java.lang.Long,? super org.apache.storm.tuple.Tuple,kotlin.Unit> p)
@Nullable public kotlin.jvm.functions.Function3<java.lang.String,java.lang.Integer,java.lang.Long,kotlin.Unit> getOnBoltPrepareFinishHook()
public void setOnBoltPrepareFinishHook(@Nullable
kotlin.jvm.functions.Function3<? super java.lang.String,? super java.lang.Integer,? super java.lang.Long,kotlin.Unit> p)
@Nullable public kotlin.jvm.functions.Function3<java.lang.String,java.lang.Integer,java.lang.Throwable,kotlin.Unit> getOnReportErrorHook()
public void setOnReportErrorHook(@Nullable
kotlin.jvm.functions.Function3<? super java.lang.String,? super java.lang.Integer,? super java.lang.Throwable,kotlin.Unit> p)
public int getCurrentThreadsInUse()
public int getMaxThreadsInUse()
public int getMaxQueueSize()
public void prepare(long time,
@NotNull
java.util.concurrent.TimeUnit unit)
Do the prepare phase of the topology
time - timeout durationunit - timeout duration unitpublic void start(boolean block)
Start the topology spout polling
block - should the call block until the topology os stoppedpublic void stop()
Stop the topology
@NotNull
public java.util.List<org.xyro.kumulus.component.KumulusComponent> getDestinations(@NotNull
java.util.List<java.lang.Integer> tasks)
public void execute(@NotNull
KumulusComponent destComponent,
@NotNull
KumulusTuple kumulusTuple)
public void completeMessageProcessing(@NotNull
KumulusSpout spout,
@Nullable
java.lang.Object spoutMessageId,
@NotNull
java.util.List<java.lang.Integer> timeoutTasks,
@NotNull
java.util.List<java.lang.Integer> failedTasks,
@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> callback)
public void throwException(@NotNull
java.lang.Throwable t)
public void resetMetrics()