Closed GoogleCodeExporter closed 8 years ago
Fixed in branch at r2217 and up integrated to trunk at r2218.
Log message
Within HostLoadManger, changed BATCH_SIZE from class constant set at 100 to
instance variable defaulted to 500. Also, made it settable from Spring. Added
a related test.
Tried to place changes in areas close to related changes in truck to minimize
merge problems.
TESTS PASSED: All unit tests.
CHANGE LOG:
M
source/java/com/google/enterprise/connector/scheduler/TraversalScheduler.java:
- Changed constructor to take HostLoadManager rather than construct one.
M source/java/com/google/enterprise/connector/scheduler/HostLoadManager.java:
- Removed class constant for batch size and replaced with settable field.
M source/javatests/com/google/enterprise/connector/scheduler/TraversalSchedule
rTest.java:
- Fixed for new constructor.
M source/javatests/com/google/enterprise/connector/scheduler/HostLoadManagerTe
st.java:
- Added test to check HostLoadManager coming from Spring.
A testdata/schedulerTests/applicationContext.xml:
- New test file used to confirm HostLoadManager bean created
M testdata/mocktestdata/applicationContext.xml:
M etc/applicationContext.xml:
- Added bean for HostLoadManager to support making the batchSize
configurable outside the code.
Original comment by mgron...@gmail.com
on 2 Sep 2009 at 6:39
Original comment by jla...@google.com
on 9 Dec 2010 at 10:43
Original issue reported on code.google.com by
mgron...@gmail.com
on 2 Sep 2009 at 6:33