Package fr.dyade.aaa.agent
Interface NetSessionWrapperMBean
-
- All Known Implementing Classes:
NetSessionWrapper
public interface NetSessionWrapperMBeanJMX interface of a NetSesion component.This interface is defined through a wrapper as the NetSession component is an internal object of PoolNetwork.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLastReceived()Returns the time in milliseconds of last message received.intgetMaxMessageInFlow()Gets the maximum number of message sent and non acknowledged.intgetNbAckSent()Returns the number of acknowledge sent since last reboot.intgetNbBufferingMessageToSent()Returns the number of buffering messages to sent since last reboot.intgetNbMessageReceived()Returns the number of messages received since last reboot.intgetNbMessageSent()Returns the number of messages sent since last reboot.intgetNbWaitingMessages()Gets the number of waiting messages to send for this session.shortgetRemoteSID()Gets the server identification of remote host.booleanisRunning()Tests if the session is connected.voidsetMaxMessageInFlow(int maxMessageInFlow)Sets the maximum number of message sent and non acknowledged.
-
-
-
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.
-
-