boolean result = false;
if( !ReplicationHealthChecker.isOkToProceed() ) {
return false;
}
JxtaBiDiPipe thePipe = null;
PipeWrapper thePipeWrapper = null;
try {
thePipeWrapper = this.getPipeWrapper();
if(thePipeWrapper == null) {
if (_pipelogger.isLoggable(Level.FINE)) {
_pipelogger.fine("JxtaReplicationSender>>sendOverPipe:null pipeWrapper - returning false");
}
return false;
}
thePipe = thePipeWrapper.getPipe();
//System.out.println("sendOverPipe:pipe from pool= " + thePipe);
if(thePipe == null) {
//no pipe to return to pool - just return
if (_pipelogger.isLoggable(Level.FINE)) {
_pipelogger.fine("JxtaReplicationSender>>sendOverPipe:null pipe - returning false");
}
return false;
}
try {
if(isWaitForFastAckConfigured()) {
thePipeWrapper.incrementQueuedMessageCount();
//System.out.println("about to call sendMessage with listener");
//result = thePipe.sendMessage(theMsg, thePipeWrapper);
result = thePipe.sendMessage(theMsg);
//doThreadedMessageCallback(theMsg, thePipeWrapper, result);
/*
if(result) {
thePipeWrapper.messageSendSucceeded(theMsg);
} else {
thePipeWrapper.messageSendFailed(theMsg);
}
*/
} else {
result = thePipe.sendMessage(theMsg);
}
} catch (IOException ex) {
result = false;
// FIXME evaluate log level
if(_pipelogger.isLoggable(Level.INFO)) {