java.lang.Object
com.actian.dataflow.cal.yarn.client.ApplicationResource
An application specific resource that is required at run-time on the target execution cluster.
Resources are files that must already be present in HDFS on the target cluster. The path to
the resource is provided along with metadata about the resource.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe resource type.static enumVisibility of the resource. -
Constructor Summary
ConstructorsConstructorDescriptionApplicationResource(String resourcePath) Construct an application resource using the given path to the resource in the shared repository.ApplicationResource(String resourcePath, ApplicationResource.ResourceType type, ApplicationResource.ResourceVisibility visibility, boolean addToClasspath, String... classpathEntries) Construct a new application resource. -
Method Summary
-
Constructor Details
-
ApplicationResource
public ApplicationResource(String resourcePath, ApplicationResource.ResourceType type, ApplicationResource.ResourceVisibility visibility, boolean addToClasspath, String... classpathEntries) Construct a new application resource.- Parameters:
resourcePath- path to the resource in a shared repository (i.e. HDFS)type- the type of resource (either file or archive)visibility- visibility of the resource in the repository cacheaddToClasspath- set to true to add the resource to the classpathclasspathEntries- relative path entries contained within the resource (must be an archive)
-
ApplicationResource
Construct an application resource using the given path to the resource in the shared repository. Defaults to a regular file with application level visibility.- Parameters:
resourcePath- path to the resource in a shared repository (i.e. HDFS)
-
-
Method Details
-
getResourcePath
Get the resource path- Returns:
- resource path
-
getType
Get the resource type.- Returns:
- resource type
-
getVisibility
Get the resource visibility.- Returns:
- resource visibility
-
isAddToClasspath
public boolean isAddToClasspath()Gets the indicator of whether or not the resource should be added to container classpath.- Returns:
- true implies add to classpath
-
getClasspathEntries
Get the list of relative classpath entries.- Returns:
- list of relative classpath entries.
-
toString
-
hashCode
public int hashCode() -
equals
-