|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.LocalResourceProto>
org.apache.hadoop.yarn.api.records.impl.pb.LocalResourcePBImpl
public class LocalResourcePBImpl
| Constructor Summary | |
|---|---|
LocalResourcePBImpl()
|
|
LocalResourcePBImpl(YarnProtos.LocalResourceProto proto)
|
|
| Method Summary | |
|---|---|
YarnProtos.LocalResourceProto |
getProto()
|
URL |
getResource()
Get the location of the resource to be localized. |
long |
getSize()
Get the size of the resource to be localized. |
long |
getTimestamp()
Get the original timestamp of the resource to be localized, used for verification. |
LocalResourceType |
getType()
Get the LocalResourceType of the resource to be localized. |
LocalResourceVisibility |
getVisibility()
Get the LocalResourceVisibility of the resource to be
localized. |
void |
setResource(URL resource)
Set location of the resource to be localized. |
void |
setSize(long size)
Set the size of the resource to be localized. |
void |
setTimestamp(long timestamp)
Set the timestamp of the resource to be localized, used for verification. |
void |
setType(LocalResourceType type)
Set the LocalResourceType of the resource to be localized. |
void |
setVisibility(LocalResourceVisibility visibility)
Set the LocalResourceVisibility of the resource to be
localized. |
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalResourcePBImpl()
public LocalResourcePBImpl(YarnProtos.LocalResourceProto proto)
| Method Detail |
|---|
public YarnProtos.LocalResourceProto getProto()
getProto in class ProtoBase<YarnProtos.LocalResourceProto>public long getSize()
LocalResource
getSize in interface LocalResourcepublic void setSize(long size)
LocalResource
setSize in interface LocalResourcesize - size of the resource to be localizedpublic long getTimestamp()
LocalResource
getTimestamp in interface LocalResourcepublic void setTimestamp(long timestamp)
LocalResource
setTimestamp in interface LocalResourcetimestamp - timestamp of the resource to be localizedpublic LocalResourceType getType()
LocalResourceLocalResourceType of the resource to be localized.
getType in interface LocalResourceLocalResourceType of the resource to be localizedpublic void setType(LocalResourceType type)
LocalResourceLocalResourceType of the resource to be localized.
setType in interface LocalResourcetype - LocalResourceType of the resource to be localizedpublic URL getResource()
LocalResource
getResource in interface LocalResourcepublic void setResource(URL resource)
LocalResource
setResource in interface LocalResourceresource - location of the resource to be localizedpublic LocalResourceVisibility getVisibility()
LocalResourceLocalResourceVisibility of the resource to be
localized.
getVisibility in interface LocalResourceLocalResourceVisibility of the resource to be
localizedpublic void setVisibility(LocalResourceVisibility visibility)
LocalResourceLocalResourceVisibility of the resource to be
localized.
setVisibility in interface LocalResourcevisibility - LocalResourceVisibility of the resource to be
localized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||