tmf: Fix visibility warning with TmfRequestExecutor
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / component / TmfDataProvider.java
index 5ae7bd90f6693b7e261af9f2012930cd3d00f981..0b2e22cdc8ea1b7cab4422ab4c9c110b5594d980 100644 (file)
@@ -67,7 +67,7 @@ public abstract class TmfDataProvider extends TmfComponent implements ITmfDataPr
 
     protected int fQueueSize = DEFAULT_QUEUE_SIZE;
     protected BlockingQueue<ITmfEvent> fDataQueue;
-    protected TmfRequestExecutor fExecutor;
+    private TmfRequestExecutor fExecutor;
 
     private int fSignalDepth = 0;
     private final Object fLock = new Object();
@@ -470,6 +470,26 @@ public abstract class TmfDataProvider extends TmfComponent implements ITmfDataPr
         return request.isCompleted() || nbRead >= request.getNbRequested();
     }
 
+    // ------------------------------------------------------------------------
+    // Pass-through's to the request executor
+    // ------------------------------------------------------------------------
+
+    /**
+     * @return the shutdown state (i.e. if it is accepting new requests)
+     * @since 2.0
+     */
+    protected boolean executorIsShutdown() {
+        return fExecutor.isShutdown();
+    }
+
+    /**
+     * @return the termination state
+     * @since 2.0
+     */
+    protected boolean executorIsTerminated() {
+        return fExecutor.isTerminated();
+    }
+
     // ------------------------------------------------------------------------
     // Signal handlers
     // ------------------------------------------------------------------------
This page took 0.023831 seconds and 5 git commands to generate.