Search in sources :

Example 21 with EmptyReply

use of com.yahoo.messagebus.EmptyReply in project vespa by vespa-engine.

the class ReplyMerger method mergeAllReplyErrors.

private void mergeAllReplyErrors(Reply r) {
    if (handleReplyWithOnlyIgnoredErrors(r)) {
        return;
    }
    if (error == null) {
        error = new EmptyReply();
        r.swapState(error);
        return;
    }
    for (int j = 0; j < r.getNumErrors(); ++j) {
        error.addError(r.getError(j));
    }
}
Also used : EmptyReply(com.yahoo.messagebus.EmptyReply)

Aggregations

EmptyReply (com.yahoo.messagebus.EmptyReply)21 Reply (com.yahoo.messagebus.Reply)15 Error (com.yahoo.messagebus.Error)8 Test (org.junit.Test)3 RouteMetricSet (com.yahoo.clientmetrics.RouteMetricSet)2 Version (com.yahoo.component.Version)2 Response (com.yahoo.jdisc.Response)2 TestDriver (com.yahoo.jdisc.test.TestDriver)2 Message (com.yahoo.messagebus.Message)2 Hop (com.yahoo.messagebus.routing.Hop)2 Route (com.yahoo.messagebus.routing.Route)2 RoutingNode (com.yahoo.messagebus.routing.RoutingNode)2 SimpleMessage (com.yahoo.messagebus.test.SimpleMessage)2 Utf8Array (com.yahoo.text.Utf8Array)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)2 PrintStream (java.io.PrintStream)2 CompressionType (com.yahoo.compress.CompressionType)1 DocumentIgnoredReply (com.yahoo.documentapi.messagebus.protocol.DocumentIgnoredReply)1 DocumentMessage (com.yahoo.documentapi.messagebus.protocol.DocumentMessage)1 PutDocumentMessage (com.yahoo.documentapi.messagebus.protocol.PutDocumentMessage)1