IMConnectionTester Class Reference

Inherits er::imadaptor::IMessageListener.

Collaboration diagram for IMConnectionTester:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 IMConnectionTester (IInstantMessenger watcher, IInstantMessenger watched, long pingPongFrequencyMillis, long timeoutMillis)
void messageReceived (IInstantMessenger instantMessenger, String buddyName, String message)
void run ()
void stop ()

Protected Member Functions

void testConnection () throws IMConnectionException

Private Attributes

int _failureCount
long _lastConnectionAttempt
boolean _pinged
long _pingPongFrequencyMillis
Object _pingPongMessageLock
boolean _ponged
boolean _running
long _timeoutMillis
IInstantMessenger _watched
IInstantMessenger _watcher

Static Private Attributes

static final String PING_MESSAGE = "~Ping~"
static final String PONG_MESSAGE = "~Pong~"


Constructor & Destructor Documentation

IMConnectionTester ( IInstantMessenger  watcher,
IInstantMessenger  watched,
long  pingPongFrequencyMillis,
long  timeoutMillis 
)


Member Function Documentation

void messageReceived ( IInstantMessenger  instantMessenger,
String  buddyName,
String  message 
)

Implements IMessageListener.

void run (  ) 

void stop (  ) 

void testConnection (  )  throws IMConnectionException [protected]


Member Data Documentation

int _failureCount [private]

long _lastConnectionAttempt [private]

boolean _pinged [private]

long _pingPongFrequencyMillis [private]

Object _pingPongMessageLock [private]

boolean _ponged [private]

boolean _running [private]

long _timeoutMillis [private]

final String PING_MESSAGE = "~Ping~" [static, private]

final String PONG_MESSAGE = "~Pong~" [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:19 2012 for Project Wonder by  doxygen 1.5.8