|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.Stable public interface LocalResource
LocalResource represents a local resource required to
run a container.
The NodeManager is responsible for localizing the resource
prior to launching the container.
Applications can specify LocalResourceType and
LocalResourceVisibility.
LocalResourceType,
LocalResourceVisibility,
ContainerLaunchContext,
ApplicationSubmissionContext,
ContainerManager.startContainer(org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest)| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
URL getResource()
void setResource(URL resource)
resource - location of the resource to be localizedlong getSize()
void setSize(long size)
size - size of the resource to be localizedlong getTimestamp()
void setTimestamp(long timestamp)
timestamp - timestamp of the resource to be localizedLocalResourceType getType()
LocalResourceType of the resource to be localized.
LocalResourceType of the resource to be localizedvoid setType(LocalResourceType type)
LocalResourceType of the resource to be localized.
type - LocalResourceType of the resource to be localizedLocalResourceVisibility getVisibility()
LocalResourceVisibility of the resource to be
localized.
LocalResourceVisibility of the resource to be
localizedvoid setVisibility(LocalResourceVisibility visibility)
LocalResourceVisibility of the resource to be
localized.
visibility - LocalResourceVisibility of the resource to be
localized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||