Class JobAPI
java.lang.Object
com.jedox.etl.core.scriptapi.ScriptAPI
com.jedox.etl.components.scriptapi.BaseAPI
com.jedox.etl.components.scriptapi.ExecutionAPI
com.jedox.etl.components.scriptapi.JobAPI
- All Implemented Interfaces:
com.jedox.etl.core.scriptapi.IPropertiesAware
,com.jedox.etl.core.scriptapi.IScriptAPI
Use with binding
API
, only available in Integrator jobs. Use it to
define workflows for ETL processes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteJob
(String name) Executes a job with all variable values set withBaseAPI.setProperty(String, String)
.executeLoad
(String name) Executes a load with all variable values set withBaseAPI.setProperty(String, String)
.getConnectionMetadata
(String name, String selector, Properties metadataProps) Returns the metadata (see Metadata Extract) of a connection with all variable values set withBaseAPI.setProperty(String, String)
.Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and will be removed.testConnection
(String name) Tests a connection with all variable values set withBaseAPI.setProperty(String, String)
.Tests a job with all variable values set withBaseAPI.setProperty(String, String)
.Tests a load with all variable values set withBaseAPI.setProperty(String, String)
.testSource
(String name) Tests a source with all variable values set withBaseAPI.setProperty(String, String)
.void
tracepoint
(Object... watches) Creates a tracepoint for the currently executed script.Methods inherited from class com.jedox.etl.components.scriptapi.ExecutionAPI
getMailer, getSource, getState, initSource, initSource, isNumeric
Methods inherited from class com.jedox.etl.components.scriptapi.BaseAPI
clearProperties, getComponentName, getConfigSetting, getConfigSetting, getGlobalConnections, getLocalFilesDir, getProjectName, getProperty, setProperty
Methods inherited from class com.jedox.etl.core.scriptapi.ScriptAPI
getDefaultImports, getExtensionPoint, getParameters, setAPIDescriptor
-
Constructor Details
-
JobAPI
public JobAPI()
-
-
Method Details
-
executeJob
Executes a job with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the job to execute- Returns:
- the
State
of the executed job - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during job execution
-
executeLoad
Executes a load with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the load to execute- Returns:
- the
State
of the executed load - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during load execution
-
testJob
Tests a job with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the job to test- Returns:
- the
State
of the completed job test - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during job test
-
testLoad
Tests a load with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the load to test- Returns:
- the
State
of the completed load test - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during load test
-
testSource
Tests a source with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the source to test- Returns:
- the
State
of the completed source test - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during source test
-
testConnection
Tests a connection with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the connection to test- Returns:
- the
State
of the completed connection test - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during connection test
-
getConnectionMetadata
public State getConnectionMetadata(String name, String selector, Properties metadataProps) throws com.jedox.etl.core.component.ETLRuntimeException Returns the metadata (see Metadata Extract) of a connection with all variable values set withBaseAPI.setProperty(String, String)
.- Parameters:
name
- the name of the connectionselector
- the connection specific characteristic (see Metadata Extract)metadataProps
-Properties
with additional filter parameters for the characteristic provied withselector
, ornull
- Returns:
- the
State
of the executed metadata execution,State.getData()
returns the result - Throws:
com.jedox.etl.core.component.ETLRuntimeException
- if an error occurs during metadata execution
-
getJobState
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and will be removed. UseExecutionAPI.getState()
instead.Gets theState
of the current execution including start date, first error message (if one exists) and status.- Returns:
- the
State
of the current execution
-
tracepoint
Creates a tracepoint for the currently executed script.- Parameters:
watches
- an array ofObject
s to add to the tracepoint
-