|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiParcel
public class ApiParcel
A Parcel encapsulate a specific product and version. For example, (CDH 4.1). A parcel is downloaded, distributed to all the machines of a cluster and then allowed to be activated.
> The available parcels are determined by which cluster they will be running on. For example, a SLES parcel won't show up for a RHEL cluster.
Constructor Summary | |
---|---|
ApiParcel()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
ApiClusterRef |
getClusterRef()
Readonly. |
String |
getProduct()
The name of the product, e.g. |
String |
getStage()
Returns the current stage of the parcel. |
ApiParcelState |
getState()
The state of the parcel. |
String |
getVersion()
The version of the product, e.g. |
int |
hashCode()
|
void |
setClusterRef(ApiClusterRef clusterRef)
|
void |
setProduct(String product)
|
void |
setStage(String stage)
|
void |
setState(ApiParcelState state)
|
void |
setVersion(String version)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApiParcel()
Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getProduct()
public void setProduct(String product)
public String getVersion()
public void setVersion(String version)
public String getStage()
There are a number of stages a parcel can be in. There are two types of stages - stable and transient. A parcel is in a transient stage when it is transitioning between two stable stages. The stages are listed below with some additional information.
public void setStage(String stage)
public ApiParcelState getState()
public void setState(ApiParcelState state)
public ApiClusterRef getClusterRef()
public void setClusterRef(ApiClusterRef clusterRef)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |