Examples of finished()


Examples of org.activiti.engine.history.HistoricTaskInstanceQuery.finished()

        query.taskAssignee(task.getAssignee());
     
      //任务是否完成
      if( task.getFinish() != null ){
        if( task.getFinish() )
          query.finished();
        else
          query.unfinished();
      }
    }
   
View Full Code Here

Examples of org.agilewiki.jactor.parallel.JAResponseCounter2.finished()

            System.out.println(i);
            printResponse.send(this, responsePrinters[i], psrp);
            i += 1;
        }
        psrp.sent = count;
        psrp.finished();
        System.out.println(count + " sends");
    }
}
View Full Code Here

Examples of org.agilewiki.jactor.parallel.JAResponseCounter3.finished()

                rc.sent += 1;
                publishRequest.send(this, s, rc);
            }
            i += 1;
        }
        rc.finished();

    }

    /**
     * This actor's subscription has been dropped.
View Full Code Here

Examples of org.apache.cassandra.io.sstable.SSTableRewriter.finished()

                throw new RuntimeException(e);
            }
        }

        Collection<SSTableReader> oldSStables = this.sstables;
        List<SSTableReader> newSStables = writer.finished();
        if (!offline)
            cfs.getDataTracker().markCompactedSSTablesReplaced(oldSStables, newSStables, compactionType);

        // log a bunch of statistics about the result and save to system table compaction_history
        long dTime = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start);
View Full Code Here

Examples of org.apache.hadoop.fs.swift.util.Duration.finished()

    //check file exists
    Duration head = new Duration();
    Header[] responseHeaders = client.headRequest("expect success",
                                                  sobject,
                                                  SwiftRestClient.NEWEST);
    head.finished();
    LOG.info("head request duration " + head);
    for (Header header: responseHeaders) {
      LOG.info(header.toString());
    }
    //delete the file
View Full Code Here

Examples of org.apache.hadoop.io.compress.lz4.Lz4Decompressor.finished()

      // set as input for decompressor only compressed data indicated with cSize
      decompressor.setInput(compressed, 0, cSize);
      byte[] decompressed = new byte[BYTE_SIZE];
      decompressor.decompress(decompressed, 0, decompressed.length);

      assertTrue("testLz4CompressDecompress finished error !!!", decompressor.finished());     
      assertArrayEquals(bytes, decompressed);
      compressor.reset();
      decompressor.reset();
      assertTrue("decompressor getRemaining error !!!",decompressor.getRemaining() == 0);
    } catch (Exception e) {
View Full Code Here

Examples of org.apache.hadoop.io.compress.snappy.SnappyDecompressor.SnappyDirectDecompressor.finished()

    inBuf.flip();   

    ByteBuffer expected = ByteBuffer.wrap(rawData);
   
    outBuf.clear();
    while(!decompressor.finished()) {
      decompressor.decompress(inBuf, outBuf);
      if (outBuf.remaining() == 0) {
        outBuf.flip();
        while (outBuf.remaining() > 0) {       
          assertEquals(expected.get(), outBuf.get());
View Full Code Here

Examples of org.apache.hadoop.io.compress.zlib.ZlibDecompressor.ZlibDirectDecompressor.finished()

    inBuf.flip();   

    ByteBuffer expected = ByteBuffer.wrap(rawData);
   
    outBuf.clear();
    while(!decompressor.finished()) {
      decompressor.decompress(inBuf, outBuf);
      if (outBuf.remaining() == 0) {
        outBuf.flip();
        while (outBuf.remaining() > 0) {       
          assertEquals(expected.get(), outBuf.get());
View Full Code Here

Examples of org.apache.hadoop.mapreduce.v2.app.job.impl.JobImpl.finished()

    when(mockJob.getCommitter()).thenReturn(mockCommitter);
    when(mockJob.getEventHandler()).thenReturn(mockEventHandler);
    when(mockJob.getJobContext()).thenReturn(mockJobContext);
    doNothing().when(mockJob).setFinishTime();
    doNothing().when(mockJob).logJobHistoryFinishedEvent();
    when(mockJob.finished(any(JobState.class))).thenReturn(JobState.SUCCEEDED);

    try {
      doNothing().when(mockCommitter).commitJob(any(JobContext.class));
    } catch (IOException e) {
      // commitJob stubbed out, so this can't happen
View Full Code Here

Examples of org.apache.sling.event.impl.jobs.JobHandler.finished()

        }

        if ( !rescheduleInfo.reschedule ) {
            // we keep cancelled jobs and succeeded jobs if the queue is configured like this.
            final boolean keepJobs = resultState != Job.JobState.SUCCEEDED || this.configuration.isKeepJobs();
            handler.finished(resultState, keepJobs, rescheduleInfo.processingTime);
        } else {
            this.reschedule(handler);
        }
        this.notifyFinished(rescheduleInfo.reschedule);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.