List of usage examples for java.util.concurrent Callable interface-usage
From source file Main.java
class WorkerThread implements Callable { int startIndex, endIndex; public WorkerThread(int startIndex, int endIndex) { this.startIndex = startIndex; this.endIndex = endIndex;
From source file com.cloudera.oryx.als.computation.local.SplitTestTrain.java
final class SplitTestTrain implements Callable<Object> { private static final Logger log = LoggerFactory.getLogger(SplitTestTrain.class); private final File inboundDir; private final File trainDir;
From source file org.rhq.core.pc.event.EventSenderRunner.java
/** * A thread for sending {@link EventReport}s to the Server. * * @author Ian Springer */ public class EventSenderRunner implements Callable<EventReport>, Runnable {
From source file eu.serco.dhus.request.RequestWork.java
public class RequestWork implements Callable<String> { private final String url; private final String type; private final String authorization;
From source file org.apache.stratos.mediator.autoscale.lbautoscale.callables.RunningInstanceCountCallable.java
/** Calculate running instances of each service domain, sub domain combination **/ public class RunningInstanceCountCallable implements Callable<Integer> { private static final Log log = LogFactory.getLog(RunningInstanceCountCallable.class); private String domain; private String subDomain;
From source file cz.lbenda.coursing.client.GlobalExceptionHandler.java
/** Global handler for all exception which is thrown in client * @author Lukas Benda <lbenda at lbenda.cz> */ // @ServiceProvider(service = Handler.class, supersedes = "org.netbeans.core.NbErrorManager") public class GlobalExceptionHandler extends Handler implements Callable<JButton> {
From source file org.wso2.carbon.logging.service.sort.LogEventSorter.java
public class LogEventSorter implements Callable<List<LogEvent>> { private static LogTaskThreadPoolExecuter executer; private static Log log = LogFactory.getLog(LogEventSorter.class); private List<LogEvent> events; private List<LogEvent> preprocessedEvents;
From source file com.oneops.daq.AsyncPerfWorker.java
public class AsyncPerfWorker implements Callable<Void> { private PerfWriter perfDao; private PerfEvent perfEvent; private Logger logger; private String ip;
From source file com.fatwire.dta.sscrawler.UrlRenderingCallable.java
/**
* Callable that downloads the pagelet
*
* @author Dolf Dijkstra
*
*/
From source file com.espertech.esper.multithread.StmtNamedWindowPriorityCallable.java
public class StmtNamedWindowPriorityCallable implements Callable { private final int threadNum; private final EPServiceProvider engine; private final int numRepeats; public StmtNamedWindowPriorityCallable(int threadNum, EPServiceProvider engine, int numRepeats) {