public BackupUploadStatus queryBackupUploadStatus(){
  CoordinatorClient coordinatorClient=coordinator.getCoordinatorClient();
  Configuration cfg=coordinatorClient.queryConfiguration(coordinatorClient.getSiteId(),BackupConstants.BACKUP_UPLOAD_STATUS,Constants.GLOBAL_ID);
  Map<String,String> allItems=(cfg == null) ? new HashMap<String,String>() : cfg.getAllConfigs(false);
  BackupUploadStatus uploadStatus=new BackupUploadStatus(allItems);
  log.info("Upload status is: {}",uploadStatus);
  return uploadStatus;
}

public BackupUploadStatus queryBackupUploadStatus ( ) { CoordinatorClient coordinatorClient = coordinator . getCoordinatorClient ( ) ; Configuration cfg = coordinatorClient . queryConfiguration ( coordinatorClient . getSiteId ( ) , BackupConstants . BACKUP_UPLOAD_STATUS , Constants . GLOBAL_ID ) ; Map < String , String > allItems = ( cfg == null ) ? new HashMap < String , String > ( ) : cfg . getAllConfigs ( false ) ; BackupUploadStatus uploadStatus = new BackupUploadStatus ( allItems ) ; log . info ( "Upload status is: {}" , uploadStatus ) ; return uploadStatus ; }
query upload status from zk
