Search in sources :

Example 1 with DiagutilInfo

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;
}
Also used : DiagutilInfo(com.emc.vipr.model.sys.diagutil.DiagutilInfo) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 2 with 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;
}
Also used : UriBuilder(javax.ws.rs.core.UriBuilder) DiagutilInfo(com.emc.vipr.model.sys.diagutil.DiagutilInfo)

Example 3 with DiagutilInfo

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);
}
Also used : DiagutilInfo(com.emc.vipr.model.sys.diagutil.DiagutilInfo)

Aggregations

DiagutilInfo (com.emc.vipr.model.sys.diagutil.DiagutilInfo)3 UriBuilder (javax.ws.rs.core.UriBuilder)1 JsonIgnore (org.codehaus.jackson.annotate.JsonIgnore)1