- java.lang.Object
-
- com.pervasive.datarush.cal.ClasspathSpecifier
-
- All Implemented Interfaces:
Serializable
public final class ClasspathSpecifier extends Object implements Serializable
The classpath specifies for a job. The classpath refers to files and directories on the local machine that are to be included in the classpath of the executing job. In the event that osgi is enabled, the entities in the classpath must refer to OSGI plugins (either jars or directories).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClasspathSpecifier.Element
An element of a classpath.
-
Constructor Summary
Constructors Constructor Description ClasspathSpecifier(boolean osgi, List<ClasspathSpecifier.Element> classpath)
Create a new classpath specifier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClasspathSpecifier.Element>
classpath()
Returns the classpath consisting of elements on the client machinestatic ClasspathSpecifier
defaultSpecifier()
Returns the default classpath specifier based on the system property java.class.path.boolean
osgi()
Returns whether osgi is enabledClasspathSpecifier
resolve()
If this is the default, this will force resolution of the default classpath.String
toString()
-
-
-
Constructor Detail
-
ClasspathSpecifier
public ClasspathSpecifier(boolean osgi, List<ClasspathSpecifier.Element> classpath)
Create a new classpath specifier.- Parameters:
osgi
- whether to run in osgi mode.classpath
- the classpath consisting of elements on the client machine
-
-
Method Detail
-
defaultSpecifier
public static ClasspathSpecifier defaultSpecifier()
Returns the default classpath specifier based on the system property java.class.path. By default, directories haveCacheScopeSpecifier.JOB
scope and Files haveCacheScopeSpecifier.NODE
scope. Note that the java.class.path system property is not immediately resolved. A call toresolve()
can be used to force resolution.- Returns:
- the default classpath specifier
-
osgi
public boolean osgi()
Returns whether osgi is enabled- Returns:
- whether osgi is enabled
-
classpath
public List<ClasspathSpecifier.Element> classpath()
Returns the classpath consisting of elements on the client machine- Returns:
- the classpath
-
resolve
public ClasspathSpecifier resolve()
If this is the default, this will force resolution of the default classpath. Otherwise it will return an instance of "this".- Returns:
- a resolved classpath specifier.
-
-