Class PulsarBaseOpDispenser
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser<PulsarOp,PulsarSpace>
io.nosqlbench.adapter.pulsar.dispensers.PulsarBaseOpDispenser
- All Implemented Interfaces:
OpDispenser<PulsarOp>,OpResultTracker,NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable,LongFunction<PulsarOp>
- Direct Known Subclasses:
PulsarAdminOpDispenser,PulsarClientOpDispenser
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LongFunction<Boolean> protected final ParsedOpprotected final PulsarAdapterMetricsprotected final PulsarSpaceprotected 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
ConstructorsModifierConstructorDescriptionprotectedPulsarBaseOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<String> tgtNameFunc, PulsarSpace pulsarSpace) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.Consumer<?> getConsumer(String cycleTopicNameListStr, String cycleTopicPatternStr, String cycleSubscriptionName, String cycleSubscriptionType, String cycleConsumerName, String cycleKeySharedSubscriptionRanges) org.apache.pulsar.client.api.Producer<?> getProducer(String cycleTopicName, String cycleProducerName) org.apache.pulsar.client.api.Reader<?> 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) protected LongFunction<Integer> lookupStaticIntOpValueFunc(String paramName, int defaultValue) protected LongFunction<Set<String>> lookupStaticStrSetOpValueFunc(String paramName) 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
-
pulsarSpace
-
pulsarAdapterMetrics
-
asyncApiFunc
-
tgtNameFunc
-
totalThreadNum
protected final int totalThreadNum -
totalCycleNum
protected final long totalCycleNum
-
-
Constructor Details
-
PulsarBaseOpDispenser
protected PulsarBaseOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<String> tgtNameFunc, PulsarSpace pulsarSpace)
-
-
Method Details
-
getPulsarSpace
-
lookupStaticBoolConfigValueFunc
protected LongFunction<Boolean> lookupStaticBoolConfigValueFunc(String paramName, boolean defaultValue) -
lookupStaticStrSetOpValueFunc
-
lookupStaticIntOpValueFunc
-
lookupOptionalStrOpValueFunc
-
lookupOptionalStrOpValueFunc
-
lookupMandtoryStrOpValueFunc
-
getProducer
-
getConsumer
-
getReader
-