Package org.nuxeo.runtime.stream
Interface StreamService
- All Known Implementing Classes:
StreamServiceImpl
public interface StreamService
- Since:
- 9.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault LogManager
getLogManager
(String configName) Deprecated.default StreamManager
getStreamManager
(String configName) Deprecated.since 11.1 just usegetStreamManager()
.boolean
restartComputation
(Name computation) Restart the computation thread pool.boolean
setComputationPositionAfterDate
(Name computation, Name stream, Instant dateTime) Moving computation position after a date.boolean
setComputationPositionToBeginning
(Name computation, Name stream) Moving computation position to the beginning of stream.boolean
setComputationPositionToEnd
(Name computation, Name stream) Moving computation position to the end of stream.boolean
setComputationPositionToOffset
(Name computation, Name stream, int partition, long offset) Moving computation position to a specific offset for a partition.boolean
startProcessor
(String processorName) Starts a registered Processor.boolean
stopComputation
(Name computation) Stop computation thread pool immediately.boolean
stopProcessor
(String processorName) Stop a running processor.void
-
Method Details
-
getLogManager
LogManager getLogManager() -
getStreamManager
StreamManager getStreamManager() -
getLogManager
Deprecated.since 11.1 just usegetLogManager()
.Gets aLogManager
corresponding to the config name. The service takes care of closing the manager on shutdown you should not do it directly. -
getStreamManager
Deprecated.since 11.1 just usegetStreamManager()
.Gets aStreamManager
that uses a LogManager matching the config name. -
stopProcessors
void stopProcessors() -
startProcessor
Starts a registered Processor. Returns true if the processor has been started.- Since:
- 2021.40
-
stopProcessor
Stop a running processor. Returns true if the processor has been stopped.- Since:
- 2021.40
-
stopComputation
Stop computation thread pool immediately.- Since:
- 2021.25
-
restartComputation
Restart the computation thread pool. Do nothing if the computation thread pool is already started.- Since:
- 2021.25
-
setComputationPositionToEnd
Moving computation position to the end of stream. The computation thread pool must be stopped usingstopComputation(Name)
before changing its position.- Since:
- 2021.25
-
setComputationPositionToBeginning
Moving computation position to the beginning of stream. The computation thread pool must be stopped usingstopComputation(Name)
before changing its position.- Since:
- 2021.25
-
setComputationPositionToOffset
Moving computation position to a specific offset for a partition. The computation thread pool must be stopped usingstopComputation(Name)
before changing its position.- Since:
- 2021.25
-
setComputationPositionAfterDate
Moving computation position after a date. The computation thread pool must be stopped usingstopComputation(Name)
before changing its position.- Since:
- 2021.25
-
getLogManager()
.