예제 #1
0
파일: Job.java 프로젝트: shjgiser/h2o
 /** Clean-up code which is executed after each {@link Job#exec()} call in any case (normal/exceptional). */
 protected void cleanup() {
   // Clean-up global list of temporary vectors
   Futures fs = new Futures();
   cleanupTrash(_gVecTrash, fs);
   if (!_lVecTrash.isEmpty()) cleanupTrash(_lVecTrash, fs);
   fs.blockForPending();
 }
예제 #2
0
파일: Job.java 프로젝트: shjgiser/h2o
 /** User call which empty local trash of vectors. */
 protected final void emptyLTrash() {
   if (_lVecTrash.isEmpty()) return;
   Futures fs = new Futures();
   cleanupTrash(_lVecTrash, fs);
   fs.blockForPending();
 }