public String info() throws IOException, BackupExecuteException {
String sURL = path + HTTPBackupAgent.Constants.BASE_URL + HTTPBackupAgent.Constants.OperationType.BACKUP_SERVICE_INFO;
BackupAgentResponse response = transport.executeGET(sURL);
if (response.getStatus() == Response.Status.OK.getStatusCode()) {
BackupServiceInfoBean info;
try {
info = (BackupServiceInfoBean) getObject(BackupServiceInfoBean.class, response.getResponseData());
} catch (Exception e) {
throw new RuntimeException("Can not get BackupServiceInfoBean from responce.", e);
}
String result = "\nThe backup service information : \n"
+ "\tfull backup type : " + info.getFullBackupType() + "\n"
+ "\tincremetal backup type : " + info.getIncrementalBackupType() + "\n"
+ "\tbackup log folder : " + info.getBackupLogDir() + "\n"
+ "\tdefault incremental job period : " + info.getDefaultIncrementalJobPeriod() + "\n\n";
return result;
} else {
return failureProcessing(response);
}