@@ -34,31 +34,31 @@ public class SandboxService extends AbstractLifecycleComponent {
3434 private static final Logger logger = LogManager .getLogger (SandboxService .class );
3535
3636 private final SandboxUsageTracker sandboxUsageTracker ;
37- // private final SandboxPruner sandboxPruner;
37+ // private final SandboxPruner sandboxPruner;
3838 private volatile Scheduler .Cancellable scheduledFuture ;
39- // private final SandboxServiceSettings sandboxServiceSettings;
39+ // private final SandboxServiceSettings sandboxServiceSettings;
4040 private final ThreadPool threadPool ;
4141 private final ClusterService clusterService ;
4242
4343 /**
4444 * Guice managed constructor
4545 *
4646 * @param sandboxUsageTracker
47- // * @param sandboxPruner
48- // * @param sandboxServiceSettings
47+ // * @param sandboxPruner
48+ // * @param sandboxServiceSettings
4949 * @param threadPool
5050 */
5151 @ Inject
5252 public SandboxService (
5353 SandboxUsageTracker sandboxUsageTracker ,
54- // SandboxServiceSettings sandboxServiceSettings,
55- // SandboxPruner sandboxPruner,
54+ // SandboxServiceSettings sandboxServiceSettings,
55+ // SandboxPruner sandboxPruner,
5656 ClusterService clusterService ,
5757 ThreadPool threadPool
5858 ) {
5959 this .sandboxUsageTracker = sandboxUsageTracker ;
60- // this.sandboxServiceSettings = sandboxServiceSettings;
61- // this.sandboxPruner = sandboxPruner;
60+ // this.sandboxServiceSettings = sandboxServiceSettings;
61+ // this.sandboxPruner = sandboxPruner;
6262 this .clusterService = clusterService ;
6363 this .threadPool = threadPool ;
6464 }
@@ -88,14 +88,15 @@ private Set<Sandbox> getActiveSandboxes() {
8888 @ Override
8989 protected void doStart () {
9090 scheduledFuture = threadPool .scheduleWithFixedDelay (() -> {
91- try {
92- doRun ();
93- } catch (Exception e ) {
94- logger .debug ("Exception occurred in Query Sandbox service" , e );
95- }
96- },
91+ try {
92+ doRun ();
93+ } catch (Exception e ) {
94+ logger .debug ("Exception occurred in Query Sandbox service" , e );
95+ }
96+ },
9797 new TimeValue (1 , TimeUnit .SECONDS ), // TODO get this from SandboxServiceSettings
98- ThreadPool .Names .GENERIC );
98+ ThreadPool .Names .GENERIC
99+ );
99100 }
100101
101102 @ Override
0 commit comments