    

 ## On this page

  

 

 # JobManager

 Last update: 30.07.2026 

public class [JobManager](index.md) : [PHXCOMObject](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/index.md)

This is the wrapper class that handles the native COM calls to a JobManager object. The class is used by Java plug-ins to ModelCenter.

#### Author

Woyak, 9-01

## Functions

NameSummary[addInput](add-input.md)public [addInput](add-input.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), label: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
adds an input to the Job Table[addOutput](add-output.md)public [addOutput](add-output.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), label: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
adds an output to the Job Table[addRerun](add-rerun.md)public [addRerun](add-rerun.md)(runNum: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))  
designates a given run already in an associated Data Collector to be rerun when submit() is called.[clearCache](clear-cache.md)public [clearCache](clear-cache.md)()  
Clears cache structures[disableGC](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c.md)public [disableGC](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c.md)(gc: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
If true, prevents releaseObjects from doing anything.[enableCache](enable-cache.md)public [enableCache](enable-cache.md)(enable: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)  
Enables or disables cache completely.[getInput](get-input.md)public [getInput](get-input.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)  
gets the name of an input variable[getInputLabel](get-input-label.md)public [getInputLabel](get-input-label.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)  
gets the name of an input variable[getNumInputs](get-num-inputs.md)public [getNumInputs](get-num-inputs.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)  
gets the number of input variables[getNumOutputs](get-num-outputs.md)public [getNumOutputs](get-num-outputs.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)  
gets the number of output variables[getNumRuns](get-num-runs.md)public [getNumRuns](get-num-runs.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)  
get number of runs[getNumThreads](get-num-threads.md)public [getNumThreads](get-num-threads.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)  
Gets the number of threads to be used when processing a job in parallel[getOutput](get-output.md)public [getOutput](get-output.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)  
gets the name of an output variable[getOutputLabel](get-output-label.md)public [getOutputLabel](get-output-label.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)  
gets the name of an input variable[getRunIndex](get-run-index.md)public [getRunIndex](get-run-index.md)(names: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)&gt;, values: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)&gt;): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)  
Returns Data Explorer Run Index for the given design from the cache (Only works if cache is enabled.[getRunInParallel](get-run-in-parallel.md)public [getRunInParallel](get-run-in-parallel.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)  
Determines whether or not the jobs are to be ran in parallel[getValidateAll](get-validate-all.md)public [getValidateAll](get-validate-all.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)  
return the validate all flag[halt](halt.md)public [halt](halt.md)(halt: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
halts the trade study[release](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release.md)public [release](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release.md)()  
Releases the COM reference to ModelCenter for this object.[releaseObjects](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects.md)public [releaseObjects](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects.md)()  
This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them.[resume](resume.md)public [resume](resume.md)(dh: [DataHistory](./../-data-history/index.md))  
Pick up from the last checkpoint in a data history.[setCustomMetadata](set-custom-metadata.md)public [setCustomMetadata](set-custom-metadata.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), key: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
Add custom metadata to a variable.[setInput](set-input.md)public [setInput](set-input.md)(run: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
sets a given input to a given value for a given run[setNumRuns](set-num-runs.md)public [setNumRuns](set-num-runs.md)(numRuns: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))  
get number of runs[setNumThreads](set-num-threads.md)public [setNumThreads](set-num-threads.md)(numThreads: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))  
Sets the number of threads to be used when processing a job in parallel[setReferenceDebugMode](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode.md)public [setReferenceDebugMode](./../../com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode.md)(on: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked.[setRunInParallel](set-run-in-parallel.md)public [setRunInParallel](set-run-in-parallel.md)(runInParallel: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
Tells the job manager whether or not to run the jobs in parallel[setValidateAll](set-validate-all.md)public [setValidateAll](set-validate-all.md)(flag: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
set the validate all flag[submit](submit.md)public [submit](submit.md)(dc: [DataCollector](./../-data-collector/index.md))  
public [submit](submit.md)(dc: [DataCollector](./../-data-collector/index.md), description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
public [submit](submit.md)(dc: [DataCollector](./../-data-collector/index.md), description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), fireAndForget: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
start solving the defined table of runs  
public [submit](submit.md)(de: [DataExplorer](./../-data-explorer/index.md))  
public [submit](submit.md)(dh: [DataHistory](./../-data-history/index.md))  
public [submit](submit.md)(de: [DataExplorer](./../-data-explorer/index.md), description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
public [submit](submit.md)(dh: [DataHistory](./../-data-history/index.md), description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))  
public [submit](submit.md)(de: [DataExplorer](./../-data-explorer/index.md), description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), fireAndForget: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
public [submit](submit.md)(dh: [DataHistory](./../-data-history/index.md), description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), fireAndForget: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))  
start solving the defined table of runs.[waitForJobCompletion](wait-for-job-completion.md)public [waitForJobCompletion](wait-for-job-completion.md)()  
wait for the current job to complete before continuing