use of com.alipay.sofa.jraft.rhea.MetadataStore in project sofa-jraft by sofastack.
the class RegionStatsPersistenceHandler method readMessage.
@Override
public void readMessage(final HandlerContext ctx, final RegionPingEvent event) throws Exception {
final MetadataStore metadataStore = event.getMetadataStore();
final RegionHeartbeatRequest request = event.getMessage();
// sync
metadataStore.batchUpdateRegionStats(request.getClusterId(), request.getRegionStatsList()).get();
}
Aggregations