Changeset 2741
- Timestamp:
- 03/26/13 15:23:25 (11 years ago)
- Location:
- vlo/branches/vlo-2.13-param/vlo_importer/src
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-2.13-param/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java
r2677 r2741 158 158 private static boolean deleteAllFirst = false; 159 159 160 @Element 161 private static int maxOnHeap = 1000; 162 160 163 @Element 161 164 private static boolean printMapping = false; … … 237 240 * application. 238 241 */ 242 243 /** 244 * Get the value of the maxOnHeap parameter<br><br> 245 * 246 * For a description of the parameter, refer to the general VLO 247 * documentation. 248 * 249 * @return the value 250 */ 251 public static int getMaxOnHeap (){ 252 return maxOnHeap; 253 } 254 255 256 /** 257 * Set the value of the maxOnHeap parameter<br><br> 258 * 259 * For a description of the parameter, refer to the general VLO 260 * documentation. 261 * 262 * @return the value 263 */ 264 public static void setMaxOnHeap (int param){ 265 maxOnHeap = param; 266 } 267 268 /** 269 * Get the list of dataRoots parameters<br><br> 270 * 271 * For a description of the parameter, refer to the general VLO 272 * documentation. 273 * 274 * @return the value 275 */ 239 276 public static List<DataRoot> getDataRoots() { 240 277 return dataRoots; … … 242 279 243 280 /** 244 * Set the value of the dataRoots parameter<br><br>281 * Set the value of a list of dataRoots parameters<br><br> 245 282 * 246 283 * For a description of the parameter, refer to the general VLO -
vlo/branches/vlo-2.13-param/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/importer/MetadataImporter.java
r2677 r2741 301 301 addResourceData(solrDocument, cmdiData); 302 302 docs.add(solrDocument); 303 if (docs.size() == 1000) {303 if (docs.size() == VloConfig.getMaxOnHeap()) { 304 304 sendDocs(); 305 305 } -
vlo/branches/vlo-2.13-param/vlo_importer/src/main/resources/VloConfig.xml
r2663 r2741 2 2 3 3 <deleteAllFirst>false</deleteAllFirst> 4 5 <maxOnHeap>500</maxOnHeap> 4 6 5 7 <printMapping>false</printMapping>
Note: See TracChangeset
for help on using the changeset viewer.