Hiram R. Chirino 2006-07-11 14:32:01 +00:00
parent 0e91a73c61
commit 1ea430e557
2 changed files with 9 additions and 9 deletions

View File

@ -71,19 +71,19 @@ public class InactivityMonitor extends TransportFilter {
private void writeCheck() { private void writeCheck() {
if( inSend.get() ) { if( inSend.get() ) {
log.debug("A send is in progress"); log.trace("A send is in progress");
return; return;
} }
if( !commandSent.get() ) { if( !commandSent.get() ) {
log.debug("No message sent since last write check, sending a KeepAliveInfo"); log.trace("No message sent since last write check, sending a KeepAliveInfo");
try { try {
next.oneway(new KeepAliveInfo()); next.oneway(new KeepAliveInfo());
} catch (IOException e) { } catch (IOException e) {
onException(e); onException(e);
} }
} else { } else {
log.debug("Message sent since last write check, resetting flag"); log.trace("Message sent since last write check, resetting flag");
} }
commandSent.set(false); commandSent.set(false);
@ -92,15 +92,15 @@ public class InactivityMonitor extends TransportFilter {
private void readCheck() { private void readCheck() {
if( inReceive.get() ) { if( inReceive.get() ) {
log.debug("A receive is in progress"); log.trace("A receive is in progress");
return; return;
} }
if( !commandReceived.get() ) { if( !commandReceived.get() ) {
log.debug("No message received since last read check! "); log.debug("No message received since last read check for " + toString() + "! Throwing InactivityIOException.");
onException(new InactivityIOException("Channel was inactive for too long.")); onException(new InactivityIOException("Channel was inactive for too long."));
} else { } else {
log.debug("Message received since last read check, resetting flag: "); log.trace("Message received since last read check, resetting flag: ");
} }
commandReceived.set(false); commandReceived.set(false);

View File

@ -194,8 +194,8 @@ public class FailoverTransport implements CompositeTransport {
} }
if(!disposed){ if(!disposed){
if( log.isTraceEnabled() )
log.trace("Waiting "+reconnectDelay+" ms before attempting connection. "); log.debug("Waiting "+reconnectDelay+" ms before attempting connection. ");
synchronized(sleepMutex){ synchronized(sleepMutex){
try{ try{
sleepMutex.wait(reconnectDelay); sleepMutex.wait(reconnectDelay);
@ -339,7 +339,7 @@ public class FailoverTransport implements CompositeTransport {
// Wait for transport to be connected. // Wait for transport to be connected.
while (connectedTransport == null && !disposed && connectionFailure==null ) { while (connectedTransport == null && !disposed && connectionFailure==null ) {
log.debug("Waiting for transport to reconnect."); log.trace("Waiting for transport to reconnect.");
try { try {
reconnectMutex.wait(1000); reconnectMutex.wait(1000);
} }