use of com.emc.vipr.model.sys.diagutil.DiagutilInfo in project coprhd-controller by CoprHD.
the class DiagutilJobStatus method toDiagutilInfo.
/**
* Returns an object containing diagutils info
*
* @return diagutilInfo
* Object containing diagutil info such as status, node etc
*/
@JsonIgnore
public DiagutilInfo toDiagutilInfo() {
DiagutilInfo diagutilInfo = new DiagutilInfo();
diagutilInfo.setStatus(status);
diagutilInfo.setStartTimeStr(startTime);
diagutilInfo.setNodeId(nodeId);
diagutilInfo.setDesc(description);
diagutilInfo.setLocation(location);
diagutilInfo.setErrcode(errCode);
diagutilInfo.setEndTimeStr(endTime);
diagutilInfo.setJobType(jobType);
return diagutilInfo;
}
use of com.emc.vipr.model.sys.diagutil.DiagutilInfo in project coprhd-controller by CoprHD.
the class Diagutil method getStatus.
/**
* Gets the diagutil Status
*
* @return response
* DiagutilInfo object
*/
public DiagutilInfo getStatus() {
UriBuilder builder = client.uriBuilder(PathConstants.DIAGUTIL_STATUS_URL);
DiagutilInfo response = client.getURI(DiagutilInfo.class, builder.build());
return response;
}
use of com.emc.vipr.model.sys.diagutil.DiagutilInfo in project coprhd-controller by CoprHD.
the class SystemHealth method getDiagutilsStatus.
/**
* Collect the diagutil status.
*/
public static void getDiagutilsStatus() {
DiagutilInfo diagutilInfo = BourneUtil.getSysClient().diagutil().getStatus();
renderJSON(diagutilInfo);
}
Aggregations