Package fr.dyade.aaa.agent
Class NetSessionWrapper
- java.lang.Object
-
- fr.dyade.aaa.agent.NetSessionWrapper
-
- All Implemented Interfaces:
NetSessionWrapperMBean
final class NetSessionWrapper extends Object implements NetSessionWrapperMBean
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PoolNetworknetwork(package private) shortsid
-
Constructor Summary
Constructors Constructor Description NetSessionWrapper(PoolNetwork network, short sid)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
network
PoolNetwork network
-
sid
short sid
-
-
Constructor Detail
-
NetSessionWrapper
NetSessionWrapper(PoolNetwork network, short sid)
-
-
Method Detail
-
getRemoteSID
public short getRemoteSID()
Gets the server identification of remote host.- Specified by:
getRemoteSIDin interfaceNetSessionWrapperMBean- Returns:
- the server identification of remote host.
-
getMaxMessageInFlow
public int getMaxMessageInFlow()
Gets the maximum number of message sent and non acknowledged.- Specified by:
getMaxMessageInFlowin interfaceNetSessionWrapperMBean- 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:
setMaxMessageInFlowin interfaceNetSessionWrapperMBean- Parameters:
maxMessageInFlow- the maximum number of message sent and non acknowledged.
-
isRunning
public boolean isRunning()
Tests if the session is connected.- Specified by:
isRunningin interfaceNetSessionWrapperMBean- 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:
getNbWaitingMessagesin interfaceNetSessionWrapperMBean- Returns:
- the number of waiting messages.
-
getNbMessageSent
public int getNbMessageSent()
Returns the number of messages sent since last reboot.- Specified by:
getNbMessageSentin interfaceNetSessionWrapperMBean- Returns:
- the number of messages sent since last reboot.
-
getNbMessageReceived
public int getNbMessageReceived()
Returns the number of messages received since last reboot.- Specified by:
getNbMessageReceivedin interfaceNetSessionWrapperMBean- Returns:
- the number of messages received since last reboot.
-
getNbAckSent
public int getNbAckSent()
Returns the number of acknowledge sent since last reboot.- Specified by:
getNbAckSentin interfaceNetSessionWrapperMBean- Returns:
- the number of acknowledge sent since last reboot.
-
getLastReceived
public long getLastReceived()
Returns the time in milliseconds of last message received.- Specified by:
getLastReceivedin interfaceNetSessionWrapperMBean- 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:
getNbBufferingMessageToSentin interfaceNetSessionWrapperMBean- Returns:
- the number of buffering messages to sent since last reboot.
-
-