public interface StreamWriterSizeCollector
extends com.google.common.util.concurrent.Service
StreamHandler.| Modifier and Type | Method and Description |
|---|---|
Map<Id.Stream,AtomicLong> |
getStreamSizes() |
long |
getTotalCollected(Id.Stream streamId)
Get the total amount of bytes collected for the stream
streamId so far. |
void |
received(Id.Stream streamId,
long dataSize)
Called to notify this manager that
dataSize bytes of data has been ingested by the stream
streamId using the stream handler from which this code is executed. |
Map<Id.Stream,AtomicLong> getStreamSizes()
long getTotalCollected(Id.Stream streamId)
streamId so far.streamId - stream Id to get the total amount of data collected forstreamId so farvoid received(Id.Stream streamId, long dataSize)
dataSize bytes of data has been ingested by the stream
streamId using the stream handler from which this code is executed. The dataSize
is an incremental size.streamId - Id of the stream that ingested data.dataSize - amount of data ingested in bytes.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.