Class FlowHandler

  • All Implemented Interfaces:
    io.pravega.shared.protocol.netty.ReplyProcessor, java.lang.AutoCloseable

    public class FlowHandler
    extends io.pravega.shared.protocol.netty.FailingReplyProcessor
    implements java.lang.AutoCloseable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void connectionDropped()  
      ClientConnection createConnectionWithFlowDisabled​(io.pravega.shared.protocol.netty.ReplyProcessor rp)
      Create a ClientConnection where flows are disabled.
      ClientConnection createFlow​(Flow flow, io.pravega.shared.protocol.netty.ReplyProcessor rp)
      Create a flow on existing connection.
      void errorMessage​(io.pravega.shared.protocol.netty.WireCommands.ErrorMessage errorMessage)  
      io.pravega.shared.metrics.MetricNotifier getMetricNotifier()  
      int getOpenFlowCount()
      Returns the number of open flows.
      boolean isClosed()  
      void process​(io.pravega.shared.protocol.netty.Reply cmd)  
      void processingFailure​(java.lang.Exception error)  
      • Methods inherited from class io.pravega.shared.protocol.netty.FailingReplyProcessor

        appendSetup, authTokenCheckFailed, conditionalCheckFailed, dataAppended, hello, invalidEventNumber, keepAlive, noSuchSegment, operationUnsupported, segmentAlreadyExists, segmentAttribute, segmentAttributeUpdated, segmentCreated, segmentDeleted, segmentIsSealed, segmentIsTruncated, segmentPolicyUpdated, segmentRead, segmentSealed, segmentsMerged, segmentTruncated, storageFlushed, streamSegmentInfo, tableEntriesDeltaRead, tableEntriesRead, tableEntriesUpdated, tableKeyBadVersion, tableKeyDoesNotExist, tableKeysRead, tableKeysRemoved, tableRead, tableSegmentInfo, tableSegmentNotEmpty, wrongHost
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createFlow

        public ClientConnection createFlow​(Flow flow,
                                           io.pravega.shared.protocol.netty.ReplyProcessor rp)
        Create a flow on existing connection.
        Parameters:
        flow - Flow.
        rp - ReplyProcessor for the specified flow.
        Returns:
        Client Connection object.
      • createConnectionWithFlowDisabled

        public ClientConnection createConnectionWithFlowDisabled​(io.pravega.shared.protocol.netty.ReplyProcessor rp)
        Create a ClientConnection where flows are disabled. This implies that there is only one flow on the underlying network connection.
        Parameters:
        rp - The ReplyProcessor.
        Returns:
        Client Connection object.
      • getOpenFlowCount

        public int getOpenFlowCount()
        Returns the number of open flows.
        Returns:
        Flow count.
      • process

        public void process​(io.pravega.shared.protocol.netty.Reply cmd)
        Specified by:
        process in interface io.pravega.shared.protocol.netty.ReplyProcessor
      • errorMessage

        public void errorMessage​(io.pravega.shared.protocol.netty.WireCommands.ErrorMessage errorMessage)
        Specified by:
        errorMessage in interface io.pravega.shared.protocol.netty.ReplyProcessor
        Overrides:
        errorMessage in class io.pravega.shared.protocol.netty.FailingReplyProcessor
      • processingFailure

        public void processingFailure​(java.lang.Exception error)
        Specified by:
        processingFailure in interface io.pravega.shared.protocol.netty.ReplyProcessor
      • connectionDropped

        public void connectionDropped()
        Specified by:
        connectionDropped in interface io.pravega.shared.protocol.netty.ReplyProcessor
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • isClosed

        public final boolean isClosed()
      • getMetricNotifier

        public io.pravega.shared.metrics.MetricNotifier getMetricNotifier()