@InterfaceAudience.Private @InterfaceStability.Unstable public class LocalResourcePBImpl extends LocalResource
| Constructor and Description |
|---|
LocalResourcePBImpl() |
LocalResourcePBImpl(YarnProtos.LocalResourceProto proto) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getPattern()
Get the pattern that should be used to extract entries from the
archive (only used when type is
PATTERN). |
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. |
int |
hashCode() |
void |
setPattern(String pattern)
Set the pattern that should be used to extract entries from the
archive (only used when type is
PATTERN). |
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. |
String |
toString() |
newInstance, newInstancepublic LocalResourcePBImpl()
public LocalResourcePBImpl(YarnProtos.LocalResourceProto proto)
public YarnProtos.LocalResourceProto getProto()
public long getSize()
LocalResourcegetSize in class LocalResourcepublic void setSize(long size)
LocalResourcesetSize in class LocalResourcesize - size of the resource to be localizedpublic long getTimestamp()
LocalResourcegetTimestamp in class LocalResourcepublic void setTimestamp(long timestamp)
LocalResourcesetTimestamp in class LocalResourcetimestamp - timestamp of the resource to be localizedpublic LocalResourceType getType()
LocalResourceLocalResourceType of the resource to be localized.getType in class LocalResourceLocalResourceType of the resource to be localizedpublic void setType(LocalResourceType type)
LocalResourceLocalResourceType of the resource to be localized.setType in class LocalResourcetype - LocalResourceType of the resource to be localizedpublic URL getResource()
LocalResourcegetResource in class LocalResourcepublic void setResource(URL resource)
LocalResourcesetResource in class LocalResourceresource - location of the resource to be localizedpublic LocalResourceVisibility getVisibility()
LocalResourceLocalResourceVisibility of the resource to be
localized.getVisibility in class LocalResourceLocalResourceVisibility of the resource to be
localizedpublic void setVisibility(LocalResourceVisibility visibility)
LocalResourceLocalResourceVisibility of the resource to be
localized.setVisibility in class LocalResourcevisibility - LocalResourceVisibility of the resource to be
localizedpublic String getPattern()
LocalResourcePATTERN).getPattern in class LocalResourcepublic void setPattern(String pattern)
LocalResourcePATTERN).setPattern in class LocalResourcepattern - pattern that should be used to extract entries
from the archive.Copyright © 2013 Apache Software Foundation. All rights reserved.