public class VarReplacementProvider extends Object
| Modifier and Type | Method and Description |
|---|---|
static VarReplacementProvider |
getInstance()
Gets the single instance of VarReplacementProvider.
|
void |
updateRequestByAddingReplaceVarPair(ParallelTask task,
String replaceVarKey,
String replaceVarValue)
GENERIC!!! HELPER FUNCION FOR REPLACEMENT
update the var: DYNAMIC REPLACEMENT of VAR.
|
void |
updateRequestByAddingReplaceVarPairNodeSpecific(ParallelTask task,
Map<String,StrStrMap> replacementVarMapNodeSpecific)
Will change replacementVarMapNodeSpecific according to each node
specifically
With KEY set as NA; will not run the command ONLY if the NA is
the last replacement; note in this logic; when it is not NA; will set AS
True.
|
void |
updateRequestWithReplacement(ParallelTask task,
boolean useReplacementVarMap,
Map<String,String> replacementVarMap,
boolean useReplacementVarMapNodeSpecific,
Map<String,StrStrMap> replacementVarMapNodeSpecific)
20130916: add node specific replacement Var Map; replacementVarMap VS.
|
public static VarReplacementProvider getInstance()
public void updateRequestWithReplacement(ParallelTask task, boolean useReplacementVarMap, Map<String,String> replacementVarMap, boolean useReplacementVarMapNodeSpecific, Map<String,StrStrMap> replacementVarMapNodeSpecific)
task - the parallel taskuseReplacementVarMap - boolean: use uniform replacement mapreplacementVarMap - the replacement variable mapuseReplacementVarMapNodeSpecific - boolean: use target host specific replacement mapreplacementVarMapNodeSpecific - the replacement variable map node specificpublic void updateRequestByAddingReplaceVarPair(ParallelTask task, String replaceVarKey, String replaceVarValue)
task - the taskreplaceVarKey - the replace var keyreplaceVarValue - the replace var valuepublic void updateRequestByAddingReplaceVarPairNodeSpecific(ParallelTask task, Map<String,StrStrMap> replacementVarMapNodeSpecific)
task - the taskreplacementVarMapNodeSpecific - the replacement var map node specificCopyright © 2015–2016 eBay. All rights reserved.