List of usage examples for java.util.concurrent Callable interface-usage
From source file org.apache.tika.batch.fs.strawman.StrawManTikaAppDriver.java
/**
* Simple single-threaded class that calls tika-app against every file in a directory.
*
* This is exceedingly robust. One file per process.
*
* However, you can use this to compare performance against tika-batch fs code.
From source file com.skcraft.launcher.launch.Runner.java
/** * Handles the launching of an instance. */ @Log public class Runner implements Callable<Process>, ProgressObservable {
From source file org.oscarehr.admin.traceability.TraceabilityReportProcessor.java
/**
* Build 'traceability report' from compressed serialized stream
* Send to output stream for later consuming
*
* @author oscar
*
From source file com.mnxfst.testing.handler.exec.client.PTestPlanExecutorClientCallable.java
/** * Executes a test plan on a single ptest-server instance and collects the result * @author mnxfst * @since 08.05.2012 */ public class PTestPlanExecutorClientCallable implements Callable<NameValuePair> {
From source file org.qifu.support.ExpressionJobExecuteCallable.java
public class ExpressionJobExecuteCallable implements Callable<ExpressionJobObj> { protected static Logger logger = Logger.getLogger(ExpressionJobExecuteCallable.class); private ExpressionJobObj jobObj = null; public ExpressionJobExecuteCallable(ExpressionJobObj jobObj) { this.jobObj = jobObj;
From source file org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.FSDownload.java
/** * Download a single URL to the local disk. * */ public class FSDownload implements Callable<Path> {
From source file io.fabric8.camel.ClusteredSingletonLifecycleStrategy.java
/** * */ public class ClusteredSingletonLifecycleStrategy implements LifecycleStrategy, GroupListener<CamelNodeState>, Callable<CuratorFramework> {
From source file org.apache.usergrid.chop.client.ssh.Job.java
public class Job implements Callable<ResponseInfo> { private static final Logger LOG = LoggerFactory.getLogger(Job.class); protected static final int SESSION_CONNECT_TIMEOUT = 100000;
From source file org.saiku.reporting.backend.temp.cpf.InterPluginCall.java
/** * Call to another pentaho plugin through its content generator. * Not thread safe. */ public class InterPluginCall implements IPluginCall, Runnable, Callable<String> {
From source file com.alibaba.wasp.client.ServerCallable.java
/**
* Abstract class that implements {@link java.util.concurrent.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>