Search in sources :

Example 1 with StatBucketMessage

use of com.yahoo.documentapi.messagebus.protocol.StatBucketMessage in project vespa by vespa-engine.

the class BucketStatsRetriever method retrieveBucketStats.

public String retrieveBucketStats(ClientParameters.SelectionType type, String id, BucketId bucketId, String bucketSpace) throws BucketStatsException {
    String documentSelection = createDocumentSelection(type, id);
    StatBucketMessage msg = new StatBucketMessage(bucketId, bucketSpace, documentSelection);
    StatBucketReply statBucketReply = sendMessage(msg, StatBucketReply.class);
    return statBucketReply.getResults();
}
Also used : StatBucketReply(com.yahoo.documentapi.messagebus.protocol.StatBucketReply) StatBucketMessage(com.yahoo.documentapi.messagebus.protocol.StatBucketMessage)

Aggregations

StatBucketMessage (com.yahoo.documentapi.messagebus.protocol.StatBucketMessage)1 StatBucketReply (com.yahoo.documentapi.messagebus.protocol.StatBucketReply)1