Interface NetSessionWrapperMBean

  • All Known Implementing Classes:
    NetSessionWrapper

    public interface NetSessionWrapperMBean
    JMX interface of a NetSesion component.

    This interface is defined through a wrapper as the NetSession component is an internal object of PoolNetwork.

    • Method Detail

      • getRemoteSID

        short getRemoteSID()
        Gets the server identification of remote host.
        Returns:
        the server identification of remote host.
      • getMaxMessageInFlow

        int getMaxMessageInFlow()
        Gets the maximum number of message sent and non acknowledged.
        Returns:
        the maximum number of message sent and non acknowledged.
      • setMaxMessageInFlow

        void setMaxMessageInFlow​(int maxMessageInFlow)
        Sets the maximum number of message sent and non acknowledged.
        Parameters:
        maxMessageInFlow - the maximum number of message sent and non acknowledged.
      • isRunning

        boolean isRunning()
        Tests if the session is connected.
        Returns:
        true if this session is connected; false otherwise.
      • getNbWaitingMessages

        int getNbWaitingMessages()
        Gets the number of waiting messages to send for this session.
        Returns:
        the number of waiting messages.
      • getNbMessageSent

        int getNbMessageSent()
        Returns the number of messages sent since last reboot.
        Returns:
        the number of messages sent since last reboot.
      • getNbMessageReceived

        int getNbMessageReceived()
        Returns the number of messages received since last reboot.
        Returns:
        the number of messages received since last reboot.
      • getNbAckSent

        int getNbAckSent()
        Returns the number of acknowledge sent since last reboot.
        Returns:
        the number of acknowledge sent since last reboot.
      • getLastReceived

        long getLastReceived()
        Returns the time in milliseconds of last message received.
        Returns:
        the time in milliseconds of last message received.
      • getNbBufferingMessageToSent

        int getNbBufferingMessageToSent()
        Returns the number of buffering messages to sent since last reboot.
        Returns:
        the number of buffering messages to sent since last reboot.