JTR 4.0 API Documentation

jtr.assigner.impl
Class AbstractParamsAssigner

java.lang.Object
  extended by jtr.assigner.impl.AbstractParamsAssigner
All Implemented Interfaces:
IParamsAssigner
Direct Known Subclasses:
CyclicParamsAssigner, IndexedParamsAssigner

public abstract class AbstractParamsAssigner
extends java.lang.Object
implements IParamsAssigner

This class is the base class for all the concrete IParamsAssigner implementations. It provides all the basic methods necessary for injecting the configuration parameters that can be found in the jtr.xml configuration file into the concrete IRunner implementation.

Since:
1.0
Version:
4.0
Author:
Francesco Russo (frusso@dev.java.net)

Constructor Summary
AbstractParamsAssigner()
           
 
Method Summary
protected  void assignEnterpriseCfg(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
          This method loads into the provided map the ENTERPRISE configuration to be assigned to the provided runner implementation using StdParameters.ENTERPRISE as a key.
protected  void assignJmsCfg(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
          This method loads into the provided map the JMS configuration to be assigned to the provided runner implementation using StdParameters.JMS as a key.
protected  void assignRuns(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
          This method loads into the provided map the RUNS value to be assigned to the provided runner implementation using StdParameters.RUN as a key.
protected  void assignSleepTime(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
          This method loads into the provided map the SLEEP_TIME value to be assigned to the provided runner implementation using StdParameters.SLEEP_TIME as a key.
protected  void assignWebservice(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
          This method loads into the provided map the WEBSERVICE configuration to be assigned to the provided runner implementation using StdParameters.WEBSERVICE as a key.
protected  void assingBinding(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
          This method loads into the provided map the BINDING configuration to be assigned to the provided runner implementation using StdParameters.BINDING as a key.
protected  void performStdAssignment(IRunnerClean cRunner, RunnerConfig runnerConfig, ParametersMap params, IParamsAssigner caller)
          This method assigns to the input IRunnerClean instance all its configuration parameters specified in the jtr.xml file.
This parameters are stored into the runnerConfig and params input parameters.
 java.util.HashMap readStdParameters(RunnerConfig runnerConfig, ParametersMap params)
          This method reads all the JTR standard parameters and put them all into an HashMap.
The keys used within this HashMap are those specified as constant fields into the StdParameters class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jtr.assigner.IParamsAssigner
assign, backToFirstAssignment, reAssign, requiresReinitialization
 

Constructor Detail

AbstractParamsAssigner

public AbstractParamsAssigner()
Method Detail

readStdParameters

public java.util.HashMap readStdParameters(RunnerConfig runnerConfig,
                                           ParametersMap params)
                                    throws MissingStdParameterException
This method reads all the JTR standard parameters and put them all into an HashMap.
The keys used within this HashMap are those specified as constant fields into the StdParameters class.

Parameters:
runnerConfig - RunnerConfig
params - ParametersMap
Returns:
HashMap
Throws:
MissingStdParameterException
See Also:
StdParameters

assingBinding

protected void assingBinding(java.util.HashMap map,
                             RunnerConfig runnerConfig,
                             ParametersMap params)
                      throws MissingStdParameterException
This method loads into the provided map the BINDING configuration to be assigned to the provided runner implementation using StdParameters.BINDING as a key.

Parameters:
map - HashMap
runnerConfig - RunnerConfig
params - ParametersMap
Throws:
MissingStdParameterException

assignWebservice

protected void assignWebservice(java.util.HashMap map,
                                RunnerConfig runnerConfig,
                                ParametersMap params)
                         throws MissingStdParameterException
This method loads into the provided map the WEBSERVICE configuration to be assigned to the provided runner implementation using StdParameters.WEBSERVICE as a key.

Parameters:
map - HashMap
runnerConfig - RunnerConfig
params - ParametersMap
Throws:
MissingStdParameterException

assignSleepTime

protected void assignSleepTime(java.util.HashMap map,
                               RunnerConfig runnerConfig,
                               ParametersMap params)
                        throws MissingStdParameterException
This method loads into the provided map the SLEEP_TIME value to be assigned to the provided runner implementation using StdParameters.SLEEP_TIME as a key.

Parameters:
map - HashMap
runnerConfig - RunnerConfig
params - ParametersMap
Throws:
MissingStdParameterException

assignRuns

protected void assignRuns(java.util.HashMap map,
                          RunnerConfig runnerConfig,
                          ParametersMap params)
This method loads into the provided map the RUNS value to be assigned to the provided runner implementation using StdParameters.RUN as a key.

Parameters:
map - HashMap
runnerConfig - RunnerConfig
params - ParametersMap

assignEnterpriseCfg

protected void assignEnterpriseCfg(java.util.HashMap map,
                                   RunnerConfig runnerConfig,
                                   ParametersMap params)
                            throws MissingStdParameterException
This method loads into the provided map the ENTERPRISE configuration to be assigned to the provided runner implementation using StdParameters.ENTERPRISE as a key.

Parameters:
map - HashMap
runnerConfig - RunnerConfig
params - ParametersMap
Throws:
MissingStdParameterException

assignJmsCfg

protected void assignJmsCfg(java.util.HashMap map,
                            RunnerConfig runnerConfig,
                            ParametersMap params)
                     throws MissingStdParameterException
This method loads into the provided map the JMS configuration to be assigned to the provided runner implementation using StdParameters.JMS as a key.

Parameters:
map - HashMap
runnerConfig - RunnerConfig
params - ParametersMap
Throws:
MissingStdParameterException

performStdAssignment

protected void performStdAssignment(IRunnerClean cRunner,
                                    RunnerConfig runnerConfig,
                                    ParametersMap params,
                                    IParamsAssigner caller)
This method assigns to the input IRunnerClean instance all its configuration parameters specified in the jtr.xml file.
This parameters are stored into the runnerConfig and params input parameters.

Parameters:
cRunner - IRunnerClean
runnerConfig - RunnerConfig
params - ParametersMap
caller - IParamsAssigner

The JTR Project is licensed under GPL version 2