Uses of Class
org.nuxeo.lib.stream.log.LogPartition
Package
Description
Computation pattern implemented with Log
The Log interface with In-Memory and Kafka implementation.
-
Uses of LogPartition in org.nuxeo.lib.stream.computation.log
Modifier and TypeFieldDescriptionprotected List<LogPartition>
ComputationRunner.defaultAssignment
protected final List<List<LogPartition>>
ComputationPool.defaultAssignments
Modifier and TypeMethodDescriptionprotected List<List<LogPartition>>
LogStreamProcessor.getDefaultAssignments
(ComputationMetadataMapping meta) Modifier and TypeMethodDescriptionLogStreamManager.createTailer
(Name computationName, Collection<LogPartition> streamPartitions) void
ComputationRunner.onPartitionsAssigned
(Collection<LogPartition> partitions) void
ComputationRunner.onPartitionsRevoked
(Collection<LogPartition> partitions) ModifierConstructorDescriptionComputationPool
(Supplier<Computation> supplier, ComputationMetadataMapping metadata, List<List<LogPartition>> defaultAssignments, LogStreamManager streamManager, ComputationPolicy policy) ComputationRunner
(Supplier<Computation> supplier, ComputationMetadataMapping metadata, List<LogPartition> defaultAssignment, LogStreamManager streamManager, ComputationPolicy policy) -
Uses of LogPartition in org.nuxeo.lib.stream.log
Modifier and TypeMethodDescriptionstatic LogPartition
LogOffset.partition()
Returns the tuple Log name and partition.Modifier and TypeMethodDescriptionLogTailer.assignments()
Returns the list of Log name, partitions tuples currently assigned to this tailer.Modifier and TypeMethodDescriptionLogTailer.commit
(LogPartition partition) Commit current position for the partition.default <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(String group, LogPartition partition) Deprecated.default <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(String group, LogPartition partition, Codec<M> codec) Deprecated.since 11.1 useLogManager.createTailer(Name, LogPartition, Codec)
insteaddefault <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(Name group, LogPartition partition) Creates a tailer for a consumergroup
and assign a singlepartition
.default <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(Name group, LogPartition partition, Codec<M> codec) Creates a tailer for a consumergroup
and assign a singlepartition
.LogTailer.offsetForTimestamp
(LogPartition partition, long timestamp) Look up the offset for the given partition by timestamp.void
LogTailer.reset
(LogPartition partition) Reset the committed position for this group on this partition, next read for this partition will be done from the beginning.Modifier and TypeMethodDescriptiondefault <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(String group, Collection<LogPartition> partitions) Deprecated.since 11.1 use(Name)
insteaddefault <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(String group, Collection<LogPartition> partitions, Codec<M> codec) Deprecated.since 11.1 useLogManager.createTailer(Name, Name, Codec)
(Name)} insteaddefault <M extends Externalizable>
LogTailer<M>LogManager.createTailer
(Name group, Collection<LogPartition> partitions) Creates a tailer for a consumergroup
and assign multiplepartitions
.<M extends Externalizable>
LogTailer<M>LogManager.createTailer
(Name group, Collection<LogPartition> partitions, Codec<M> codec) Creates a tailer for a consumergroup
and assign multiplepartitions
.<M extends Externalizable>
LogTailer<M>UnifiedLogManager.createTailer
(Name group, Collection<LogPartition> partitions, Codec<M> codec) void
RebalanceListener.onPartitionsAssigned
(Collection<LogPartition> partitions) default void
RebalanceListener.onPartitionsLost
(Collection<LogPartition> partitions) void
RebalanceListener.onPartitionsRevoked
(Collection<LogPartition> partitions) -
Uses of LogPartition in org.nuxeo.lib.stream.log.internals
Modifier and TypeMethodDescriptionprotected void
AbstractLogManager.checkInvalidAssignment
(Name group, LogPartition partition) protected <M extends Externalizable>
voidAbstractLogManager.checkInvalidCodec
(LogPartition partition, Codec<M> codec) Modifier and TypeMethodDescription<M extends Externalizable>
LogTailer<M>AbstractLogManager.createTailer
(Name group, Collection<LogPartition> partitions, Codec<M> codec) protected abstract <M extends Externalizable>
LogTailer<M>AbstractLogManager.doCreateTailer
(Collection<LogPartition> partitions, Name group, Codec<M> codec) protected <M extends Externalizable>
Codec<M>AbstractLogManager.guessCodec
(Collection<LogPartition> partitions) ModifierConstructorDescriptionLogOffsetImpl
(LogPartition partition, long offset) LogPartitionGroup
(Name group, LogPartition mqp) -
Uses of LogPartition in org.nuxeo.lib.stream.log.kafka
Modifier and TypeMethodDescriptionKafkaLogTailer.assignments()
protected static List<List<LogPartition>>
KafkaUtils.assignments
(org.apache.kafka.clients.consumer.ConsumerPartitionAssignor assignor, int threads, Map<String, Integer> streams) static List<List<LogPartition>>
KafkaUtils.rangeAssignments
(int threads, Map<String, Integer> streams) static List<List<LogPartition>>
KafkaUtils.roundRobinAssignments
(int threads, Map<String, Integer> streams) Modifier and TypeMethodDescriptionprotected void
KafkaLogManager.checkValidPartition
(LogPartition partition) KafkaLogTailer.commit
(LogPartition partition) KafkaLogTailer.offsetForTimestamp
(LogPartition partition, long timestamp) void
KafkaLogTailer.reset
(LogPartition partition) Modifier and TypeMethodDescriptionprotected static String
KafkaLogTailer.buildId
(Name group, Collection<LogPartition> partitions) static <M extends Externalizable>
KafkaLogTailer<M>KafkaLogTailer.createAndAssign
(Codec<M> codec, NameResolver resolver, Collection<LogPartition> partitions, Name group, Properties consumerProps) protected <M extends Externalizable>
LogTailer<M>KafkaLogManager.doCreateTailer
(Collection<LogPartition> partitions, Name group, Codec<M> codec) -
Uses of LogPartition in org.nuxeo.lib.stream.log.mem
Modifier and TypeMethodDescriptionMemCompoundLogTailer.commit
(LogPartition partition) MemLogTailer.commit
(LogPartition partition) MemLogAppender.createTailer
(LogPartition partition, Name group, Codec<M> codec) MemCompoundLogTailer.offsetForTimestamp
(LogPartition partition, long timestamp) MemLogTailer.offsetForTimestamp
(LogPartition partition, long timestamp) void
MemCompoundLogTailer.reset
(LogPartition partition) void
MemLogTailer.reset
(LogPartition partition) Modifier and TypeMethodDescriptionprotected <M extends Externalizable>
LogTailer<M>MemLogManager.doCreateTailer
(Collection<LogPartition> partitions, Name group, Codec<M> codec) ModifierConstructorDescriptionMemLogTailer
(MemLog log, LogPartition partition, Name group, Codec<M> codec) -
Uses of LogPartition in org.nuxeo.lib.stream.pattern.consumer
Modifier and TypeFieldDescriptionprotected final List<List<LogPartition>>
ConsumerPool.defaultAssignments
Modifier and TypeMethodDescriptionprotected List<List<LogPartition>>
ConsumerPool.getDefaultAssignments()
-
Uses of LogPartition in org.nuxeo.lib.stream.pattern.consumer.internals
Modifier and TypeMethodDescriptionConsumerRunner.createTailer
(LogManager manager, Codec<M> codec, List<LogPartition> defaultAssignments) void
ConsumerRunner.onPartitionsAssigned
(Collection<LogPartition> partitions) void
ConsumerRunner.onPartitionsLost
(Collection<LogPartition> partitions) void
ConsumerRunner.onPartitionsRevoked
(Collection<LogPartition> partitions) ModifierConstructorDescriptionConsumerRunner
(ConsumerFactory<M> factory, ConsumerPolicy policy, LogManager manager, List<LogPartition> defaultAssignments) Deprecated.since 11.1, due to serialization issue with java 11, useConsumerRunner(ConsumerFactory, ConsumerPolicy, LogManager, Codec, List)
which allows to give acodec
totailer
.ConsumerRunner
(ConsumerFactory<M> factory, ConsumerPolicy policy, LogManager manager, Codec<M> codec, List<LogPartition> defaultAssignments)
(Name)
instead