List of usage examples for java.util.concurrent Callable interface-usage
From source file com.anrisoftware.sscontrol.scripts.signrepo.SignRepo.java
/**
* Signs the repository.
*
* @author Erwin Mueller, erwin.mueller@deventm.org
* @since 1.0
*/
From source file de.ks.idnadrev.expimp.xls.SingleSheetImport.java
public class SingleSheetImport implements Callable<Void> { private static final Logger log = LoggerFactory.getLogger(SingleSheetImport.class); protected final ColumnProvider columnProvider; private final Class<?> clazz; private final InputStream sheetStream;
From source file org.grouplens.lenskit.eval.traintest.TrainTestJob.java
/**
* Run a single train-test evaluation of a single algorithmInfo.
*
* @author <a href="http://www.grouplens.org">GroupLens Research</a>
* @since 0.8
*/
From source file com.sinacloud.scs.services.scs.transfer.internal.UploadCallable.java
public class UploadCallable implements Callable<UploadResult> { private final SCS s3; private final ExecutorService threadPool; private final PutObjectRequest putObjectRequest; private String multipartUploadId; private final UploadImpl upload;
From source file com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.java
class UploadTask implements Callable<Boolean> { private static final Log LOGGER = LogFactory.getLog(UploadTask.class); private final AmazonS3 s3; private final TransferRecord upload;
From source file com.github.rvesse.airline.help.Help.java
@Command(name = "help", description = "Display help information") public class Help<T> implements Runnable, Callable<Void> { @Inject public GlobalMetadata<T> global; @Arguments
From source file org.apache.hadoop.hbase.client.ServerCallable.java
/**
* Abstract class that implements {@link Callable}. Implementation stipulates
* return type and method we actually invoke on remote Server. Usually
* used inside a try/catch that fields usual connection failures all wrapped
* up in a retry loop.
* <p>Call {@link #prepare(boolean)} to connect to server hosting region
From source file com.mnxfst.testing.client.TSClientPlanResultCollectCallable.java
/** * Collects the test plan execution results from the server * @author ckreutzfeldt * @since 13.02.2012 */ public class TSClientPlanResultCollectCallable implements Callable<TSClientPlanExecutionResult> {
From source file org.nmdp.ngs.tools.DownsampleInterleavedFastq.java
/** * Downsample sequences from a file in interleaved FASTQ format. */ public final class DownsampleInterleavedFastq implements Callable<Integer> { private final File inputFastqFile; private final File outputFastqFile;
From source file ezbake.amino.cli.Main.java
public class Main implements Callable<Integer>, AutoCloseable { private static final String DN = "CN=Smith, Joe, OU=People, OU=EzBake, OU=CSC, O=Foo, C=US"; private static final Set<String> AUTHORIZATIONS = Sets.newHashSet("U"); static final Logger logger = LoggerFactory.getLogger(Main.class); @Option(name = "--use-mock-security", usage = "Use a mock security token", required = false)