public class StreamManager extends java.lang.Object implements StreamManagerMBean
StreamResultFuture
s and provides status of all operation invoked.
All stream operation should be created through this class to track streaming status and progress.Modifier and Type | Field and Description |
---|---|
static StreamManager |
instance |
OBJECT_NAME
Constructor and Description |
---|
StreamManager() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<StreamState> |
getCurrentStreams()
Returns the current state of all ongoing streams.
|
static com.google.common.util.concurrent.RateLimiter |
getRateLimiter()
Gets streaming rate limiter.
|
StreamResultFuture |
getReceivingStream(java.util.UUID planId) |
void |
register(StreamResultFuture result) |
void |
registerReceiving(StreamResultFuture result) |
public static final StreamManager instance
public static com.google.common.util.concurrent.RateLimiter getRateLimiter()
public java.util.Set<StreamState> getCurrentStreams()
StreamManagerMBean
getCurrentStreams
in interface StreamManagerMBean
public void register(StreamResultFuture result)
public void registerReceiving(StreamResultFuture result)
public StreamResultFuture getReceivingStream(java.util.UUID planId)
Copyright © 2013 The Apache Software Foundation