Example usage for Java org.apache.hadoop.yarn.api.records LocalResource fields, constructors, methods, implement or subclass
The text is from its open source code.
String | getPattern() Get the pattern that should be used to extract entries from the archive (only used when type is PATTERN ). |
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. |
LocalResource | newInstance(URL url, LocalResourceType type, LocalResourceVisibility visibility, long size, long timestamp) |
LocalResource | newInstance(URL url, LocalResourceType type, LocalResourceVisibility visibility, long size, long timestamp, String pattern) |
LocalResource | newInstance(URL url, LocalResourceType type, LocalResourceVisibility visibility, long size, long timestamp, boolean shouldBeUploadedToSharedCache) |
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. |