diff options
Diffstat (limited to 'src/main/java/com/att/nsa/mr')
4 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java index 409ee70..8509042 100644 --- a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java +++ b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java @@ -235,7 +235,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP private synchronized boolean shouldSendNow() { boolean shouldSend = false; - if (fPending.size() > 0) { + if (fPending.isEmpty()) { final long nowMs = Clock.now(); shouldSend = (fPending.size() >= fMaxBatchSize); diff --git a/src/main/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandler.java b/src/main/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandler.java index 813ad59..4f04dec 100644 --- a/src/main/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandler.java +++ b/src/main/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandler.java @@ -21,12 +21,12 @@ *******************************************************************************/ package com.att.nsa.mr.dme.client; -//package com.att.aft.dme2.api; + import java.util.logging.Level; import java.util.logging.Logger; -//import com.att.aft.dme2.api.DME2FailoverFaultHandler; + //import com.att.aft.dme2.api.util.DME2Constants; //import com.att.aft.dme2.api.util.DME2ExchangeFaultContext; //import com.att.aft.dme2.api.util.LogMessage; @@ -34,19 +34,19 @@ import java.util.logging.Logger; public class DefaultLoggingFailoverFaultHandler /*implements DME2FailoverFaultHandler*/ { //TODO: This code may be enable in the future when we implement DME2FailoverFaultHandler interface /** The logger. */ - //private static Logger logger = DME2Constants.getLogger(DefaultLoggingFailoverFaultHandler.class.getName()); + // @Override -// public void handleEndpointFailover(/*DME2ExchangeFaultContext context*/) { + // // LogUtil.INSTANCE.report(logger, Level.WARNING, LogMessage.SEP_FAILOVER, context.getService(),context.getRequestURL(),context.getRouteOffer(),context.getResponseCode(),context.getException()); // } // @Override // /** // * The DME2Exchange already has a log message when the route offer is failed over. We dont need to log it again here. // */ -// public void handleRouteOfferFailover(DME2ExchangeFaultContext context) { + // //noop // -// } + } diff --git a/src/main/java/com/att/nsa/mr/dme/client/HeaderReplyHandler.java b/src/main/java/com/att/nsa/mr/dme/client/HeaderReplyHandler.java index 99f7044..4363902 100644 --- a/src/main/java/com/att/nsa/mr/dme/client/HeaderReplyHandler.java +++ b/src/main/java/com/att/nsa/mr/dme/client/HeaderReplyHandler.java @@ -44,11 +44,11 @@ import com.att.nsa.mr.client.impl.MRSimplerBatchPublisher; @Override public void handleFault(DME2ExchangeFaultContext responseData) { // TODO Auto-generated method stub - //StaticCache.getInstance().setHandleFaultInvoked(true); + } @Override public void handleEndpointFault(DME2ExchangeFaultContext responseData) { // TODO Auto-generated method stub - //StaticCache.getInstance().setHandleEndpointFaultInvoked(true); + } @Override public void handleReply(DME2ExchangeResponseContext responseData) { diff --git a/src/main/java/com/att/nsa/mr/dme/client/PreferredRouteReplyHandler.java b/src/main/java/com/att/nsa/mr/dme/client/PreferredRouteReplyHandler.java index 0878359..2da5ce9 100644 --- a/src/main/java/com/att/nsa/mr/dme/client/PreferredRouteReplyHandler.java +++ b/src/main/java/com/att/nsa/mr/dme/client/PreferredRouteReplyHandler.java @@ -56,7 +56,7 @@ public class PreferredRouteReplyHandler implements DME2ExchangeReplyHandler { } @Override public void handleEndpointFault(DME2ExchangeFaultContext responseData) { // TODO Auto-generated method stub - //StaticCache.getInstance().setHandleEndpointFaultInvoked(true); + } public void routeWriter(String routeKey, String routeValue){ |