public class ApiParcelState extends Object
The complete progress of a parcel is broken up into two different reporting indicators - progress and count. Progress is the primary indicator that reports the global state of transitions. For example, when downloading, progress and totalProgress will show the current number of bytes downloaded and the total number of bytes needed to be downloaded respectively.
The count and totalCount indicator is used when a state transition affects multiple hosts. The count and totalCount show the current number of hosts completed and the total number of hosts respectively. For example, during distribution, the progress and totalProgress will show how many bytes have been transferred to each host and the count will indicate how many hosts of of totalCount have had parcels unpacked.
Along with the two progress indicators, the ApiParcelState shows both errors and warnings that may have turned up during a state transition.
Constructor and Description |
---|
ApiParcelState() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getCount()
The current hosts that have completed.
|
List<String> |
getErrors()
The errors that exist for this parcel.
|
long |
getProgress()
The progress of the state transition.
|
long |
getTotalCount()
The total amount that
getCount() needs to get to. |
long |
getTotalProgress()
The total amount that
getProgress() needs to get to. |
List<String> |
getWarnings()
The warnings that exist for this parcel.
|
int |
hashCode() |
void |
setCount(long count) |
void |
setErrors(List<String> errors) |
void |
setProgress(long progress) |
void |
setTotalCount(long totalCount) |
void |
setTotalProgress(long totalProgress) |
void |
setWarnings(List<String> warnings) |
String |
toString() |
public long getProgress()
public void setProgress(long progress)
public long getTotalProgress()
getProgress()
needs to get to.public void setTotalProgress(long totalProgress)
public long getCount()
public void setCount(long count)
public long getTotalCount()
getCount()
needs to get to.public void setTotalCount(long totalCount)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.