Class NetSessionWrapper

    • Constructor Detail

      • NetSessionWrapper

        NetSessionWrapper​(PoolNetwork network,
                          short sid)
    • Method Detail

      • getRemoteSID

        public short getRemoteSID()
        Gets the server identification of remote host.
        Specified by:
        getRemoteSID in interface NetSessionWrapperMBean
        Returns:
        the server identification of remote host.
      • getMaxMessageInFlow

        public int getMaxMessageInFlow()
        Gets the maximum number of message sent and non acknowledged.
        Specified by:
        getMaxMessageInFlow in interface NetSessionWrapperMBean
        Returns:
        the maximum number of message sent and non acknowledged.
      • setMaxMessageInFlow

        public void setMaxMessageInFlow​(int maxMessageInFlow)
        Sets the maximum number of message sent and non acknowledged.
        Specified by:
        setMaxMessageInFlow in interface NetSessionWrapperMBean
        Parameters:
        maxMessageInFlow - the maximum number of message sent and non acknowledged.
      • isRunning

        public boolean isRunning()
        Tests if the session is connected.
        Specified by:
        isRunning in interface NetSessionWrapperMBean
        Returns:
        true if this session is connected; false otherwise.
      • getNbWaitingMessages

        public int getNbWaitingMessages()
        Gets the number of waiting messages to send for this session.
        Specified by:
        getNbWaitingMessages in interface NetSessionWrapperMBean
        Returns:
        the number of waiting messages.
      • getNbMessageSent

        public int getNbMessageSent()
        Returns the number of messages sent since last reboot.
        Specified by:
        getNbMessageSent in interface NetSessionWrapperMBean
        Returns:
        the number of messages sent since last reboot.
      • getNbMessageReceived

        public int getNbMessageReceived()
        Returns the number of messages received since last reboot.
        Specified by:
        getNbMessageReceived in interface NetSessionWrapperMBean
        Returns:
        the number of messages received since last reboot.
      • getNbAckSent

        public int getNbAckSent()
        Returns the number of acknowledge sent since last reboot.
        Specified by:
        getNbAckSent in interface NetSessionWrapperMBean
        Returns:
        the number of acknowledge sent since last reboot.
      • getLastReceived

        public long getLastReceived()
        Returns the time in milliseconds of last message received.
        Specified by:
        getLastReceived in interface NetSessionWrapperMBean
        Returns:
        the time in milliseconds of last message received.
      • getNbBufferingMessageToSent

        public int getNbBufferingMessageToSent()
        Returns the number of buffering messages to sent since last reboot.
        Specified by:
        getNbBufferingMessageToSent in interface NetSessionWrapperMBean
        Returns:
        the number of buffering messages to sent since last reboot.