public class ApplicationResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationResource.ResourceType
The resource type.
|
static class |
ApplicationResource.ResourceVisibility
Visibility of the resource.
|
Constructor and Description |
---|
ApplicationResource(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getClasspathEntries()
Get the list of relative classpath entries.
|
String |
getResourcePath()
Get the resource path
|
ApplicationResource.ResourceType |
getType()
Get the resource type.
|
ApplicationResource.ResourceVisibility |
getVisibility()
Get the resource visibility.
|
int |
hashCode() |
boolean |
isAddToClasspath()
Gets the indicator of whether or not the resource should be
added to container classpath.
|
String |
toString() |
public ApplicationResource(String resourcePath, ApplicationResource.ResourceType type, ApplicationResource.ResourceVisibility visibility, boolean addToClasspath, String... classpathEntries)
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)public ApplicationResource(String resourcePath)
resourcePath
- path to the resource in a shared repository (i.e. HDFS)public String getResourcePath()
public ApplicationResource.ResourceType getType()
public ApplicationResource.ResourceVisibility getVisibility()
public boolean isAddToClasspath()
public List<String> getClasspathEntries()
Copyright © 2024 Actian Corporation. All rights reserved.