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 | 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()
StreamManagerMBean
getCurrentStreams
in interface StreamManagerMBean
public 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.NotificationBroadcaster
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
javax.management.ListenerNotFoundException
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
Copyright © 2017 The Apache Software Foundation