Example usage for java.util.concurrent Callable interface-usage

List of usage examples for java.util.concurrent Callable interface-usage

Introduction

In this page you can find the example usage for java.util.concurrent Callable interface-usage.

Usage

From source file de.ingrid.mdek.quartz.jobs.util.URLValidator.java

public class URLValidator implements Callable<URLState> {

    private final static Logger log = Logger.getLogger(URLValidator.class);
    protected final HttpClient httpClient;
    protected final URLState urlState;
    protected String responseString = null;

From source file com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScanCommandCallable.java

public class ScanCommandCallable implements Callable<ScanCommandOutput> {
    private static final List<String> DRY_RUN_FILES_TO_KEEP = Arrays.asList("data");

    private final IntLogger logger;
    private final ScanPathsUtility scanPathsUtility;
    private final IntEnvironmentVariables intEnvironmentVariables;

From source file net.myrrix.common.LoadRunner.java

/**
 * Runs a mixed, concurrent load against a given recommender instance. This could be a 
 * {@code ClientRecommender} configured to access a remote instance.
 * 
 * @author Sean Owen
 */

From source file org.pdfsam.guiclient.commons.business.loaders.callable.AddPdfDocument.java

/**
 * Callable to add a pdf document to the selection panel
 * @author Andrea Vacondio
 *
 */
public class AddPdfDocument implements Callable<Boolean> {

From source file com.amazonaws.services.s3.transfer.DownloadCallable.java

final class DownloadCallable implements Callable<File> {
    private static final Log log = LogFactory.getLog(DownloadCallable.class);

    private final AmazonS3 s3;
    private final CountDownLatch latch;
    private final GetObjectRequest req;

From source file com.linuxbox.enkive.message.search.AsynchronousSearchThread.java

public class AsynchronousSearchThread implements Callable<SearchResult> {

    protected static final Log LOGGER = LogFactory.getLog("com.linuxbox.enkive.message.search");

    private final Authentication searchingUserAuth;
    private final String searchResultId;

From source file com.clustercontrol.repository.DeviceSearchTask.java

/**
 * ????
 */
public class DeviceSearchTask implements Callable<Boolean> {

    private static Log m_log = LogFactory.getLog(DeviceSearchTask.class);

From source file com.cloudera.oryx.kmeans.computation.local.WeightedPointsByFold.java

public final class WeightedPointsByFold implements Callable<List<List<WeightedRealVector>>> {

    private static final Logger log = LoggerFactory.getLogger(WeightedPointsByFold.class);

    private final List<List<RealVector>> foldVecs;

From source file net.amigocraft.mglib.UUIDFetcher.java

/**
 * Utility class for use with Mojang's UUID API.
 *
 * <p>This class has been modified from the original for use with MGLib.</p>
 *
 * @author evilmidget38

From source file edu.odu.cs.cs350.yellow1.jar.ExecuteJar.java

/**
 * Fork a jvm process for each jar to be run and kill the process when it exits
 * <br>To allow for the mutation analysis phase to go by quickly run all mutants in parallel(limited to the number of available cpus)
 * <br>Implements the {@link Callable} interface to allow for this concurrency
 * <br>Takes a mutant jar and runs all tests in the suit on it 
 * <br>Captures the output created by executing the mutant on a test