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.Returns aMailAPIto send emails via SMTP.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).voidtracepoint(Object... watches) Creates a tracepoint for the currently executed script.Methods inherited from class com.jedox.etl.components.scriptapi.ExecutionAPI
getSource, getState, initSource, initSource, isNumericMethods inherited from class com.jedox.etl.components.scriptapi.BaseAPI
clearProperties, getComponentName, getConfigSetting, getConfigSetting, getGlobalConnections, getLocalFilesDir, getProjectName, getProperty, setPropertyMethods 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
Stateof 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
Stateof 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
Stateof 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
Stateof 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
Stateof 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
Stateof 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-Propertieswith additional filter parameters for the characteristic provied withselector, ornull- Returns:
- the
Stateof 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 theStateof the current execution including start date, first error message (if one exists) and status.- Returns:
- the
Stateof the current execution
-
tracepoint
Creates a tracepoint for the currently executed script.- Parameters:
watches- an array ofObjects to add to the tracepoint
-
getMailer
Returns aMailAPIto send emails via SMTP.- Overrides:
getMailerin classExecutionAPI- Returns:
- a
MailAPI
-