public abstract class Parameterizer extends SPI
Implement the Parameterizer SPI, by extending this class and implementing the parameterize method.
Configure this SPI with the following declaration in the xd.spi.properties file:
spi.parallel.Parameterizer=<fully-qualified implementation class name>
Notes:
<WAS install root>/properties. E.g. /WebSphere/AppServer/properties
<WAS install root>/lib/classes. E.g. /WebSphere/AppServer/lib/classes
Constructor and Description |
---|
Parameterizer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this SPI instance.
|
abstract com.ibm.wsspi.batch.parallel.Parameters |
parameterize(java.lang.String logicalJobName,
java.lang.String logicalTXID,
java.util.Properties props)
Parameterizes a parallel job submission.
|
compareTo, getInvocationOrder, setInvocationOrder, toString
public abstract com.ibm.wsspi.batch.parallel.Parameters parameterize(java.lang.String logicalJobName, java.lang.String logicalTXID, java.util.Properties props)
This method is invoked by ParallelJobManager at start of parallel job processing.
logicalJobName
- specifies name of the current parallel job.
This name is the same each time you submit the same parallel job.logicalTXID
- specifies a unique identifier for the current parallel job instance.
This identifier defines a logical unit of work in which all subjobs for the current parallel job execute.props
- specifies the input properties to the parallel job. These properties are user specified, but
must include the reserved property, com.ibm.wsspi.batch.parallel.subjob.name, which specifies the name of the job definition (xJCL)
in the job repository that serves as the template for all subjob instances belonging to this parallel job. Optional reserved property,
com.ibm.wsspi.batch.parallel.logicalTXID, may also be specified to provide an external identifier for the parallel job's logical transaction.