List of usage examples for java.util.concurrent Callable interface-usage
From source file com.sinacloud.scs.services.scs.transfer.internal.UploadMonitor.java
/**
* Manages an upload by periodically checking to see if the upload is done, and
* returning a result if so. Otherwise, schedules a copy of itself to be run in
* the future and returns null. When waiting on the result of this class via a
* Future object, clients must call {@link UploadMonitor#isDone()} and
* {@link UploadMonitor#getFuture()}
From source file org.n52.wps.server.request.Request.java
/**
* The client requests some operation from the server.
* The request generates a unique reference based on the client, time and a count.
* Not secure! Upcoming references are easily guessed or altered.
* @see java.rmi.server.UID
*/
From source file com.zinnia.nectar.regression.hadoop.primitive.jobs.SigmaXYJob.java
public class SigmaXYJob implements Callable<Double> { private ControlledJob controlledJob; private Job job; private FileSystem fs; Log log = LogFactory.getLog(SigmaXYJob.class);
From source file org.lightjason.agentspeak.consistency.IConsistency.java
/** * consistency interface */ public interface IConsistency extends Callable<IConsistency> { /**
From source file com.github.rholder.esthree.command.GetMultipart.java
public class GetMultipart implements Callable<Integer> { // TODO parameterize internal buffer size? public static final int DEFAULT_BUF_SIZE = 4096 * 4; public static final int DEFAULT_CHUNK_SIZE = 1024 * 1024 * 5; // 5 MB
From source file org.apache.usergrid.chop.webapp.coordinator.SetupStackThread.java
/** Encapsulates a CoordinatedStack and sets it up asynchronously */ public class SetupStackThread implements Callable<CoordinatedStack> { private static final Logger LOG = LoggerFactory.getLogger(SetupStackThread.class); @Inject
From source file org.silverpeas.migration.jcr.wysiwyg.WysiwygDocumentMerger.java
this.service = service; this.console = console; } @Override public Long call() throws Exception {
From source file com.zinnia.nectar.regression.hadoop.primitive.jobs.SortJob.java
public class SortJob implements Callable<Double[]> { private List<Double> value = new ArrayList<Double>(); private Job job; private FileSystem fs; private ControlledJob controlledJob; Log log = LogFactory.getLog(SortJob.class);
From source file com.jivesoftware.os.upena.uba.service.NannyDeployCallable.java
class NannyDeployCallable implements Callable<Boolean> { private final RepositoryProvider repositoryProvider; private final String datacenter; private final String rack; private final String publicHostName;
From source file com.anrisoftware.sscontrol.scripts.processinfo.ProcessInfo.java
/**
* Search a specific process and returns information about that process.
*
* @author Erwin Mueller, erwin.mueller@deventm.org
* @since 1.0
*/