Class DefaultTypedFlowEntry

    • Constructor Detail

      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowRule rule,
                                     FlowEntry.FlowEntryState state,
                                     long life,
                                     TimeUnit lifeTimeUnit,
                                     long packets,
                                     long bytes)
        Creates a typed flow entry from flow rule and its statistics, with default flow live type(IMMEDIATE_FLOW).
        Parameters:
        rule - the flow rule
        state - the flow state
        life - the flow duration since creation
        lifeTimeUnit - the time unit of life
        packets - the flow packets count
        bytes - the flow bytes count
      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowRule rule,
                                     FlowEntry.FlowEntryState state,
                                     long life,
                                     long packets,
                                     long bytes)
        Creates a typed flow entry from flow rule and its statistics, with default flow live type(IMMEDIATE_FLOW).
        Parameters:
        rule - the flow rule
        state - the flow state
        life - the flow duration since creation
        packets - the flow packets count
        bytes - the flow bytes count
      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowRule rule)
        Creates a typed flow entry from flow rule, with default flow live type(IMMEDIATE_FLOW).
        Parameters:
        rule - the flow rule
      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowEntry fe)
        Creates a typed flow entry from flow entry, with default flow live type(IMMEDIATE_FLOW).
        Parameters:
        fe - the flow entry
      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowRule rule,
                                     TypedStoredFlowEntry.FlowLiveType liveType)
        Creates a typed flow entry from flow rule and flow live type.
        Parameters:
        rule - the flow rule
        liveType - the flow live type
      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowEntry fe,
                                     TypedStoredFlowEntry.FlowLiveType liveType)
        Creates a typed flow entry from flow entry and flow live type.
        Parameters:
        fe - the flow rule
        liveType - the flow live type
      • DefaultTypedFlowEntry

        public DefaultTypedFlowEntry​(FlowRule rule,
                                     int errType,
                                     int errCode,
                                     TypedStoredFlowEntry.FlowLiveType liveType)
        Creates a typed flow entry from flow rule, error code and flow live type.
        Parameters:
        rule - the flow rule
        errType - the flow error type
        errCode - the flow error code
        liveType - the flow live type