Interface DestinationViewMBean

    • Method Detail

      • getName

        String getName()
        Returns the name of this destination
      • resetStatistics

        void resetStatistics()
        Resets the management counters.
      • getEnqueueCount

        long getEnqueueCount()
        Returns the number of messages that have been sent to the destination.
        Returns:
        The number of messages that have been sent to the destination.
      • getDispatchCount

        long getDispatchCount()
        Returns the number of messages that have been delivered (potentially not acknowledged) to consumers.
        Returns:
        The number of messages that have been delivered (potentially not acknowledged) to consumers.
      • getDequeueCount

        long getDequeueCount()
        Returns the number of messages that have been acknowledged from the destination.
        Returns:
        The number of messages that have been acknowledged from the destination.
      • getDuplicateFromStoreCount

        long getDuplicateFromStoreCount()
        Returns the number of duplicate messages that have been paged-in from the store.
        Returns:
        The number of duplicate messages that have been paged-in from the store.
      • isSendDuplicateFromStoreToDLQ

        boolean isSendDuplicateFromStoreToDLQ()
        Returns the config setting to send a duplicate message from store to the dead letter queue.
        Returns:
        The config setting to send a duplicate message from store to the dead letter queue.
      • getForwardCount

        long getForwardCount()
        Returns the number of messages that have been acknowledged by network subscriptions from the destination.
        Returns:
        The number of messages that have been acknowledged by network subscriptions from the destination.
      • getInFlightCount

        long getInFlightCount()
        Returns the number of messages that have been dispatched but not acknowledged
        Returns:
        The number of messages that have been dispatched but not acknowledged
      • getExpiredCount

        long getExpiredCount()
        Returns the number of messages that have expired
        Returns:
        The number of messages that have expired
      • getConsumerCount

        long getConsumerCount()
        Returns the number of consumers subscribed this destination.
        Returns:
        The number of consumers subscribed this destination.
      • getProducerCount

        long getProducerCount()
        Returns:
        the number of producers publishing to the destination
      • getQueueSize

        long getQueueSize()
        Returns the number of messages in this destination which are yet to be consumed
        Returns:
        Returns the number of messages in this destination which are yet to be consumed
      • getStoreMessageSize

        long getStoreMessageSize()
        Returns the memory size of all messages in this destination's store
        Returns:
        Returns the memory size of all messages in this destination's store
      • sendTextMessage

        String sendTextMessage​(String body)
                        throws Exception
        Sends a TextMesage to the destination.
        Parameters:
        body - the text to send
        Returns:
        the message id of the message sent.
        Throws:
        Exception
      • sendTextMessageWithProperties

        String sendTextMessageWithProperties​(String properties)
                                      throws Exception
        Sends a TextMessage to the destination.
        Parameters:
        properties - the message properties to set as name=value list separated by a comma. Can only contain Strings mapped to primitive types or JMS properties. eg: body=hi,JMSReplyTo=Queue2
        Returns:
        the message id of the message sent.
        Throws:
        Exception
      • sendTextMessageWithProperties

        String sendTextMessageWithProperties​(String properties,
                                             String delimiter)
                                      throws Exception
        Sends a TextMessage to the destination.
        Parameters:
        properties - the message properties to set as name=value list separated by a custom delimiter. Can only contain Strings mapped to primitive types or JMS properties. eg: body=hi,JMSReplyTo=Queue2
        delimiter - The delimiter that separates each property. Defaults to comma if none is provided.
        Returns:
        the message id of the message sent.
        Throws:
        Exception
      • sendTextMessage

        String sendTextMessage​(Map<?,​?> headers,
                               String body)
                        throws Exception
        Sends a TextMesage to the destination.
        Parameters:
        headers - the message headers and properties to set. Can only container Strings maped to primitive types.
        body - the text to send
        Returns:
        the message id of the message sent.
        Throws:
        Exception
      • sendTextMessage

        String sendTextMessage​(String body,
                               String user,
                               String password)
                        throws Exception
        Sends a TextMesage to the destination.
        Parameters:
        body - the text to send
        user -
        password -
        Returns:
        a string value
        Throws:
        Exception
      • sendTextMessage

        String sendTextMessage​(Map<String,​String> headers,
                               String body,
                               String user,
                               String password)
                        throws Exception
        Parameters:
        headers - the message headers and properties to set. Can only container Strings maped to primitive types.
        body - the text to send
        user -
        password -
        Returns:
        a string value
        Throws:
        Exception
      • getMemoryPercentUsage

        int getMemoryPercentUsage()
        Returns:
        the percentage of amount of memory used
      • getMemoryUsageByteCount

        long getMemoryUsageByteCount()
        Returns:
        the amount of memory currently used by this destination
      • getMemoryLimit

        long getMemoryLimit()
        Returns:
        the amount of memory allocated to this destination
      • setMemoryLimit

        void setMemoryLimit​(long limit)
        set the amount of memory allocated to this destination
        Parameters:
        limit -
      • getTempUsagePercentUsage

        int getTempUsagePercentUsage()
        Returns:
        the percentage of amount of temp usage used
      • getTempUsageLimit

        long getTempUsageLimit()
        Returns:
        the amount of temp usage allocated to this destination
      • setTempUsageLimit

        void setTempUsageLimit​(long limit)
        set the amount of temp usage allocated to this destination
        Parameters:
        limit - the amount of temp usage allocated to this destination
      • getMemoryUsagePortion

        float getMemoryUsagePortion()
        Returns:
        the portion of memory from the broker memory limit for this destination
      • setMemoryUsagePortion

        void setMemoryUsagePortion​(float value)
        set the portion of memory from the broker memory limit for this destination
        Parameters:
        value -
      • getMaxEnqueueTime

        long getMaxEnqueueTime()
        Returns:
        longest time a message is held by a destination
      • getMinEnqueueTime

        long getMinEnqueueTime()
        Returns:
        shortest time a message is held by a destination
      • getAverageEnqueueTime

        double getAverageEnqueueTime()
      • getAverageMessageSize

        long getAverageMessageSize()
      • getMaxMessageSize

        long getMaxMessageSize()
      • getMinMessageSize

        long getMinMessageSize()
      • isProducerFlowControl

        boolean isProducerFlowControl()
        Returns:
        the producerFlowControl
      • setProducerFlowControl

        void setProducerFlowControl​(boolean producerFlowControl)
        Parameters:
        producerFlowControl - the producerFlowControl to set
      • isAlwaysRetroactive

        boolean isAlwaysRetroactive()
        Returns:
        if we treat consumers as alwaysRetroactive
      • setAlwaysRetroactive

        void setAlwaysRetroactive​(boolean alwaysRetroactive)
        Parameters:
        alwaysRetroactive - set as always retroActive
      • setBlockedProducerWarningInterval

        void setBlockedProducerWarningInterval​(long blockedProducerWarningInterval)
        Set's the interval at which warnings about producers being blocked by resource usage will be triggered. Values of 0 or less will disable warnings
        Parameters:
        blockedProducerWarningInterval - the interval at which warning about blocked producers will be triggered.
      • getBlockedProducerWarningInterval

        long getBlockedProducerWarningInterval()
        Returns:
        the interval at which warning about blocked producers will be triggered.
      • getMaxProducersToAudit

        int getMaxProducersToAudit()
        Returns:
        the maxProducersToAudit
      • setMaxProducersToAudit

        void setMaxProducersToAudit​(int maxProducersToAudit)
        Parameters:
        maxProducersToAudit - the maxProducersToAudit to set
      • getMaxAuditDepth

        int getMaxAuditDepth()
        Returns:
        the maxAuditDepth
      • setMaxAuditDepth

        void setMaxAuditDepth​(int maxAuditDepth)
        Parameters:
        maxAuditDepth - the maxAuditDepth to set
      • getMaxPageSize

        int getMaxPageSize()
        Returns:
        the maximum number of message to be paged into the destination
      • setMaxPageSize

        void setMaxPageSize​(int pageSize)
        Parameters:
        pageSize - Set the maximum number of messages to page into the destination
      • isUseCache

        boolean isUseCache()
        Returns:
        true if caching is allowed of for the destination
      • isPrioritizedMessages

        boolean isPrioritizedMessages()
        Returns:
        true if prioritized messages are enabled for the destination
      • setUseCache

        void setUseCache​(boolean value)
        Parameters:
        value - enable/disable caching on the destination
      • getOptions

        String getOptions()
        Returns:
        A string of destination options, name value pairs as URL queryString.
      • isDLQ

        boolean isDLQ()
        Returns:
        true if this is dead letter queue
      • setDLQ

        void setDLQ​(boolean value)
        Parameters:
        value - enable/disable the DLQ flag
      • getBlockedSends

        long getBlockedSends()
      • getAverageBlockedTime

        double getAverageBlockedTime()
      • getTotalBlockedTime

        long getTotalBlockedTime()