java.lang.Object
com.pervasive.datarush.cal.ClasspathSpecifier.Element
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ClasspathSpecifier
An element of a classpath. Elements may either be OSGI bundles or "plain old"
java jars/directories. All elements must have a path object. In addition,
elements may specify whether we are to cache the element on a per-node basis
or on a per-job basis.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new classpath for the given path.Element(Path path, CacheScopeSpecifier cacheScope, boolean dynamic, OSGIOptions osgiOptions) Create a new classpath for the given path. -
Method Summary
Modifier and TypeMethodDescriptionReturns the cacheScope of this element.cacheScope(CacheScopeSpecifier cacheScope) Returns a new ClasspathElement, overriding the cacheScope.booleandynamic()Returns whether the classpath element can be dynamically updated at runtime.dynamic(boolean dynamic) Returns a new ClasspathElement, overridingdynamic.Returns the osgi options of this element.osgiOptions(OSGIOptions osgiOptions) Returns a new ClasspathElement, overriding the osgiOptions.path()Returns the path of this classpath element.Returns a new ClasspathElement, overriding the path.
-
Constructor Details
-
Element
Create a new classpath for the given path.- Parameters:
path- the location of the element. May either be a directory or a file.
-
Element
Create a new classpath for the given path.- Parameters:
path- the location of the element. May either be a directory or a file.cacheScope- specifies where to cache the elementdynamic- if true, the classpath element will be scanned each time we run a job to see whether its checksum has changed. if false, the checksum will be cached in-memory so that the checksum is only recomputed upon restart.osgiOptions- extra options for the case where this is an osgi classpath element. May be null in the case of a non-osgi element
-
-
Method Details
-
path
Returns the path of this classpath element. The path may either be a directory or a file.- Returns:
- the path of the classpath element.
-
cacheScope
Returns the cacheScope of this element. The cache scope controls where the element is cached.- Returns:
- the cache scope of this element
-
dynamic
public boolean dynamic()Returns whether the classpath element can be dynamically updated at runtime. If true, the classpath element will be scanned each time we run a job to see whether its checksum has changed. if false, the checksum will be cached in-memory so that so that the checksum is only recomputed upon restart.- Returns:
- whether the classpath element can be dynamically updated at runtime
-
osgiOptions
Returns the osgi options of this element. These are extra options applicable to the case where this is an osgi classpath element.- Returns:
- the osgi options scope of this element
-
path
Returns a new ClasspathElement, overriding the path.- Parameters:
path- the new path- Returns:
- a newly created ClasspathElement
-
cacheScope
Returns a new ClasspathElement, overriding the cacheScope.- Parameters:
cacheScope- the new cacheScope- Returns:
- a newly created ClasspathElement
-
dynamic
Returns a new ClasspathElement, overridingdynamic.- Parameters:
dynamic- the new value fordynamic- Returns:
- a newly created ClasspathElement
-
osgiOptions
Returns a new ClasspathElement, overriding the osgiOptions.- Parameters:
osgiOptions- the new osgiOptions- Returns:
- a newly created ClasspathElement
-