Bug 4395 - PartitionPlan interface should match JSL attributes
PartitionPlan interface should match JSL attributes
Status: CLOSED FIXED
Product: jbatch
Classification: Unclassified
Component: source
1
All All
: P5 minor
: ---
Assigned To: cvignola
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 22:09 UTC by kmukher
Modified: 2013-01-16 16:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kmukher 2012-12-05 22:09:33 UTC
The PartitionPlan interface method names should match the attribute names for a PartitionPlan JSL element for consistency. 

<partition>
   <plan instances="3" threads="2"/> ...

public void setPartitionCount(int count) ;

public void setThreadCount(int count) ;

public int getPartitionCount() ;

public int getThreadCount() ;

We can change the getters and setters to get/setInstances() and get/setThreads() or change the JSL attribute names to partitionCount and threadCount. Either way, they should match up.
Comment 1 cvignola 2012-12-20 16:45:00 UTC
Will change method names.