Class ConnectionView

    • Method Detail

      • start

        public void start()
                   throws Exception
        Specified by:
        start in interface org.apache.activemq.Service
        Throws:
        Exception
      • stop

        public void stop()
                  throws Exception
        Specified by:
        stop in interface org.apache.activemq.Service
        Throws:
        Exception
      • isSlow

        public boolean isSlow()
        Specified by:
        isSlow in interface ConnectionViewMBean
        Returns:
        true if the Connection is slow
      • isBlocked

        public boolean isBlocked()
        Specified by:
        isBlocked in interface ConnectionViewMBean
        Returns:
        if after being marked, the Connection is still writing
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface ConnectionViewMBean
        Returns:
        true if the Connection is connected
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface ConnectionViewMBean
        Returns:
        true if the Connection is active
      • getDispatchQueueSize

        public int getDispatchQueueSize()
        Description copied from interface: ConnectionViewMBean
        Returns the number of messages to be dispatched to this connection
        Specified by:
        getDispatchQueueSize in interface ConnectionViewMBean
        Returns:
        the number of messages pending dispatch
      • getConnectionId

        public String getConnectionId()
      • getUserName

        public String getUserName()
        Description copied from interface: ConnectionViewMBean
        Returns the User Name used to authorize creation of this Connection. This value can be null if display of user name information is disabled.
        Specified by:
        getUserName in interface ConnectionViewMBean
        Returns:
        the name of the user that created this Connection
      • setUserName

        public void setUserName​(String userName)
      • getConsumers

        public ObjectName[] getConsumers()
        Description copied from interface: ConnectionViewMBean
        Returns the ObjectNames of all the Consumers created by this Connection.
        Specified by:
        getConsumers in interface ConnectionViewMBean
        Returns:
        the ObjectNames of all Consumers created by this Connection.
      • getProducers

        public ObjectName[] getProducers()
        Description copied from interface: ConnectionViewMBean
        Returns the ObjectNames of all the Producers created by this Connection.
        Specified by:
        getProducers in interface ConnectionViewMBean
        Returns:
        the ObjectNames of all Producers created by this Connection.
      • getActiveTransactionCount

        public int getActiveTransactionCount()
        Description copied from interface: ConnectionViewMBean
        Returns the number of active transactions established on this Connection.
        Specified by:
        getActiveTransactionCount in interface ConnectionViewMBean
        Returns:
        the number of active transactions established on this Connection..