public class StreamManager extends java.lang.Object implements StreamManagerMBean
StreamResultFutures 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 | Class and Description |
|---|---|
static class |
StreamManager.StreamRateLimiter |
| Modifier and Type | Field and Description |
|---|---|
static StreamManager |
instance |
OBJECT_NAME| Constructor and Description |
|---|
StreamManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
java.util.Set<javax.management.openmbean.CompositeData> |
getCurrentStreams()
Returns the current state of all ongoing streams.
|
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
static StreamManager.StreamRateLimiter |
getRateLimiter(java.net.InetAddress peer)
Gets streaming rate limiter.
|
StreamResultFuture |
getReceivingStream(java.util.UUID planId) |
void |
register(StreamResultFuture result) |
void |
registerReceiving(StreamResultFuture result) |
void |
removeNotificationListener(javax.management.NotificationListener listener) |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
public static final StreamManager instance
public static StreamManager.StreamRateLimiter getRateLimiter(java.net.InetAddress peer)
public java.util.Set<javax.management.openmbean.CompositeData> getCurrentStreams()
StreamManagerMBeangetCurrentStreams in interface StreamManagerMBeanpublic void register(StreamResultFuture result)
public void registerReceiving(StreamResultFuture result)
public StreamResultFuture getReceivingStream(java.util.UUID planId)
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
addNotificationListener in interface javax.management.NotificationBroadcasterpublic void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterjavax.management.ListenerNotFoundExceptionpublic void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationEmitterjavax.management.ListenerNotFoundExceptionpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcasterCopyright © 2016 The Apache Software Foundation