@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, newInstance
public LocalResourcePBImpl()
public LocalResourcePBImpl(YarnProtos.LocalResourceProto proto)
public YarnProtos.LocalResourceProto getProto()
public long getSize()
LocalResource
getSize
in class LocalResource
public void setSize(long size)
LocalResource
setSize
in class LocalResource
size
- size of the resource to be localizedpublic long getTimestamp()
LocalResource
getTimestamp
in class LocalResource
public void setTimestamp(long timestamp)
LocalResource
setTimestamp
in class LocalResource
timestamp
- timestamp of the resource to be localizedpublic LocalResourceType getType()
LocalResource
LocalResourceType
of the resource to be localized.getType
in class LocalResource
LocalResourceType
of the resource to be localizedpublic void setType(LocalResourceType type)
LocalResource
LocalResourceType
of the resource to be localized.setType
in class LocalResource
type
- LocalResourceType
of the resource to be localizedpublic URL getResource()
LocalResource
getResource
in class LocalResource
public void setResource(URL resource)
LocalResource
setResource
in class LocalResource
resource
- location of the resource to be localizedpublic LocalResourceVisibility getVisibility()
LocalResource
LocalResourceVisibility
of the resource to be
localized.getVisibility
in class LocalResource
LocalResourceVisibility
of the resource to be
localizedpublic void setVisibility(LocalResourceVisibility visibility)
LocalResource
LocalResourceVisibility
of the resource to be
localized.setVisibility
in class LocalResource
visibility
- LocalResourceVisibility
of the resource to be
localizedpublic String getPattern()
LocalResource
PATTERN
).getPattern
in class LocalResource
public void setPattern(String pattern)
LocalResource
PATTERN
).setPattern
in class LocalResource
pattern
- pattern that should be used to extract entries
from the archive.Copyright © 2013 Apache Software Foundation. All rights reserved.