Class KafkaBaseOpDispenser
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser<KafkaOp,KafkaSpace>
io.nosqlbench.adapter.kafka.dispensers.KafkaBaseOpDispenser
- All Implemented Interfaces:
OpDispenser<KafkaOp>,OpResultTracker,NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable,LongFunction<KafkaOp>
- Direct Known Subclasses:
MessageConsumerOpDispenser,MessageProducerOpDispenser
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final intprotected final KafkaAdapterMetricsprotected final intprotected final KafkaSpaceprotected final ParsedOpprotected final LongFunction<String> protected final longprotected final intFields inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
EXPECTED_RESULT, spaceF, START_TIMERS, STOP_TIMERS, VERIFIER, VERIFIER_IMPORTS, VERIFIER_INIT, verifierTimerFields inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
bufferOrphanedMetrics, closed_ns, error, errored_ns, metricsBuffer, parent, started_epoch_ms, started_ns, state, teardown_nsFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponent
EMPTY_COMPONENTFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponentProps
HDRDIGITS, SUMMARYFields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKafkaBaseOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<String> topicNameStrFunc, KafkaSpace kafkaSpace) -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected LongFunction<String> lookupMandtoryStrOpValueFunc(String paramName) protected LongFunction<String> lookupOptionalStrOpValueFunc(String paramName) protected LongFunction<String> lookupOptionalStrOpValueFunc(String paramName, String defaultValue) protected LongFunction<Boolean> lookupStaticBoolConfigValueFunc(String paramName, boolean defaultValue) Methods inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
apply, getLabels, getOpName, getVerifier, onError, onStart, onSuccessMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
addAdvisor, addMetricsCloseable, attachChild, beforeDetach, close, create, detachChild, find, findParentService, getAdvisors, getChildren, getComponentOnlyLabels, getComponentProp, getComponentState, getNanosSinceStart, getParent, getTokens, nanosof_close, nanosof_error, nanosof_start, nanosof_teardown, onError, onEvent, reportExecutionMetric, setComponentProp, started_epoch_ms, teardown, toStringMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
addComponentMetric, addListener, findComponentMetrics, findComponentMetrics, getComponentMetric, getComponentMetrics, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentAdvisors
getAdvisorResultsMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentMetrics
addComponentMetric, findComponentMetrics, findComponentMetrics, findOneComponentMetric, findOneComponentMetric, getComponentMetric, getComponentMetricsMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
descriptionMethods inherited from interface io.nosqlbench.adapters.api.activityimpl.OpDispenser
getOp
-
Field Details
-
parsedOp
-
kafkaAdapterMetrics
-
kafkaSpace
-
kafkaClntCnt
protected final int kafkaClntCnt -
consumerGrpCnt
protected final int consumerGrpCnt -
asyncAPI
protected final boolean asyncAPI -
topicNameStrFunc
-
topicConfMap
-
totalThreadNum
protected final int totalThreadNum -
totalCycleNum
protected final long totalCycleNum
-
-
Constructor Details
-
KafkaBaseOpDispenser
protected KafkaBaseOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<String> topicNameStrFunc, KafkaSpace kafkaSpace)
-
-
Method Details
-
getKafkaSpace
-
getKafkaAdapterMetrics
-
lookupStaticBoolConfigValueFunc
protected LongFunction<Boolean> lookupStaticBoolConfigValueFunc(String paramName, boolean defaultValue) -
lookupOptionalStrOpValueFunc
-
lookupOptionalStrOpValueFunc
-
lookupMandtoryStrOpValueFunc
-
getName
-