public class JDFMerge extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
bAddMergeToProcessRun
set this to true if you want to update the ProcessRun(s) timestamps for this merge
|
boolean |
bUpdateStati
set this to true if you want to update the stati of the relevant parent nodes based on the new Stati of the merged node
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
findSpawnAudit() |
JDFResource.EnumAmountMerge |
getAmountPolicy() |
JDFNode.EnumCleanUpMerge |
getCleanPolicy() |
JDFNode |
mergeJDF(JDFNode _toMerge)
merge a previously spawned JDF into a node that is a child of, or this root
|
JDFNode |
mergeJDF(JDFNode _toMerge,
String urlMerge,
JDFNode.EnumCleanUpMerge cleanPolicy,
JDFResource.EnumAmountMerge amountPolicy)
merge a previously spawned JDF into a node that is a child of, or this root
|
protected void |
mergeLocalResourcePool(JDFNode overwriteLocalNode,
JDFNode toMergeLocalNode) |
static JDFResource |
mergePartition(JDFResource targetRes,
JDFResource resToMerge,
String spawnID,
JDFResource.EnumAmountMerge amountPolicy,
boolean bLocalResource)
Merges partitioned resources into this resource uses PartIDKey to identify the correct resources
|
protected void |
remergeAuditPools() |
JDFNode |
remergeJDF(JDFNode _toMerge)
merge a previously spawned and previously merged JDF into a node that is a child of, or this root
|
void |
setAmountPolicy(JDFResource.EnumAmountMerge amountPolicy) |
void |
setCleanPolicy(JDFNode.EnumCleanUpMerge cleanPolicy) |
String |
toString() |
public boolean bUpdateStati
public boolean bAddMergeToProcessRun
public JDFMerge(JDFNode parentNode)
parentNode - the parent node to merge into. MAY be the actual node to be replace or any Parent thereofpublic JDFNode mergeJDF(JDFNode _toMerge, String urlMerge, JDFNode.EnumCleanUpMerge cleanPolicy, JDFResource.EnumAmountMerge amountPolicy)
default: mergeJDF(subJDFNode, null, JDFNode.EnumCleanUpMerge.None, JDFResource.EnumAmountMerge.None)
_toMerge - the previously spawned jdf nodeurlMerge - the url of the ???cleanPolicy - policy how to clean up the spawn and merge audits after mergingamountPolicy - policy how to clean up the Resource amounts after mergingtrue always.JDFException - if subJDFNode has already been mergedJDFException - if subJDFNode was not spawned from thisJDFException - if subJDFNode has no AncestorPool
default: mergeJDF(subJDFNode, null, JDFNode.EnumCleanUpMerge.None, JDFResource.EnumAmountMerge.None)public JDFNode mergeJDF(JDFNode _toMerge)
_toMerge - the previously spawned jdf nodetrue always.JDFException - if subJDFNode has already been mergedJDFException - if subJDFNode was not spawned from thisJDFException - if subJDFNode has no AncestorPoolpublic JDFNode remergeJDF(JDFNode _toMerge)
_toMerge - the previously spawned jdf nodetrue always.JDFException - if subJDFNode has no AncestorPoolprotected void remergeAuditPools()
protected void findSpawnAudit()
protected void mergeLocalResourcePool(JDFNode overwriteLocalNode, JDFNode toMergeLocalNode)
public static JDFResource mergePartition(JDFResource targetRes, JDFResource resToMerge, String spawnID, JDFResource.EnumAmountMerge amountPolicy, boolean bLocalResource)
targetRes - resToMerge - the resource leaf to merge into thisspawnID - the spawnID of the spawning that will now be mergedamountPolicy - how to clean up the Resource amounts after mergingbLocalResource - must be true for the local resources in a spawned node and its subnodes, which default to RWJDFException - if here is an attempt to merge incompatible resourcesJDFException - if here is an attempt to merge incompatible partitionspublic String toString()
toString in class ObjectObject.toString()public JDFNode.EnumCleanUpMerge getCleanPolicy()
public void setCleanPolicy(JDFNode.EnumCleanUpMerge cleanPolicy)
cleanPolicy - public JDFResource.EnumAmountMerge getAmountPolicy()
public void setAmountPolicy(JDFResource.EnumAmountMerge amountPolicy)
amountPolicy - Copyright © 2013. All Rights Reserved.