Search in sources :

Example 1 with GetBucketListMessage

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

the class BucketStatsRetriever method retrieveBucketList.

public List<GetBucketListReply.BucketInfo> retrieveBucketList(BucketId bucketId, String bucketSpace) throws BucketStatsException {
    GetBucketListMessage msg = new GetBucketListMessage(bucketId, bucketSpace);
    GetBucketListReply bucketListReply = sendMessage(msg, GetBucketListReply.class);
    return bucketListReply.getBuckets();
}
Also used : GetBucketListReply(com.yahoo.documentapi.messagebus.protocol.GetBucketListReply) GetBucketListMessage(com.yahoo.documentapi.messagebus.protocol.GetBucketListMessage)

Aggregations

GetBucketListMessage (com.yahoo.documentapi.messagebus.protocol.GetBucketListMessage)1 GetBucketListReply (com.yahoo.documentapi.messagebus.protocol.GetBucketListReply)1