fr.dyade.aaa.agent
Class NetSessionWrapper

java.lang.Object
  extended by fr.dyade.aaa.agent.NetSessionWrapper
All Implemented Interfaces:
NetSessionWrapperMBean

final class NetSessionWrapper
extends java.lang.Object
implements NetSessionWrapperMBean


Field Summary
(package private)  PoolNetwork network
           
(package private)  short sid
           
 
Constructor Summary
NetSessionWrapper(PoolNetwork network, short sid)
           
 
Method Summary
 long getLastReceived()
          Returns the time in milliseconds of last message received.
 int getMaxMessageInFlow()
          Gets the maximum number of message sent and non acknowledged.
 int getNbAckSent()
          Returns the number of acknowledge sent since last reboot.
 int getNbBufferingMessageToSent()
          Returns the number of buffering messages to sent since last reboot.
 int getNbMessageReceived()
          Returns the number of messages received since last reboot.
 int getNbMessageSent()
          Returns the number of messages sent since last reboot.
 int getNbWaitingMessages()
          Gets the number of waiting messages to send for this session.
 short getRemoteSID()
          Gets the server identification of remote host.
 boolean isRunning()
          Tests if the session is connected.
 void setMaxMessageInFlow(int maxMessageInFlow)
          Sets the maximum number of message sent and non acknowledged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
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.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.