java.lang.Object
com.pervasive.datarush.cal.ClasspathSpecifier
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn element of a classpath. -
Constructor Summary
ConstructorsConstructorDescriptionClasspathSpecifier(boolean osgi, List<ClasspathSpecifier.Element> classpath) Create a new classpath specifier. -
Method Summary
Modifier and TypeMethodDescriptionReturns the classpath consisting of elements on the client machinestatic ClasspathSpecifierReturns the default classpath specifier based on the system property java.class.path.booleanosgi()Returns whether osgi is enabledresolve()If this is the default, this will force resolution of the default classpath.toString()
-
Constructor Details
-
ClasspathSpecifier
Create a new classpath specifier.- Parameters:
osgi- whether to run in osgi mode.classpath- the classpath consisting of elements on the client machine
-
-
Method Details
-
defaultSpecifier
Returns the default classpath specifier based on the system property java.class.path. By default, directories haveCacheScopeSpecifier.JOBscope and Files haveCacheScopeSpecifier.NODEscope. 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
Returns the classpath consisting of elements on the client machine- Returns:
- the classpath
-
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.
-
toString
-