@@ -34,31 +34,31 @@ public class SandboxService extends AbstractLifecycleComponent {
34
34
private static final Logger logger = LogManager .getLogger (SandboxService .class );
35
35
36
36
private final SandboxUsageTracker sandboxUsageTracker ;
37
- // private final SandboxPruner sandboxPruner;
37
+ // private final SandboxPruner sandboxPruner;
38
38
private volatile Scheduler .Cancellable scheduledFuture ;
39
- // private final SandboxServiceSettings sandboxServiceSettings;
39
+ // private final SandboxServiceSettings sandboxServiceSettings;
40
40
private final ThreadPool threadPool ;
41
41
private final ClusterService clusterService ;
42
42
43
43
/**
44
44
* Guice managed constructor
45
45
*
46
46
* @param sandboxUsageTracker
47
- // * @param sandboxPruner
48
- // * @param sandboxServiceSettings
47
+ // * @param sandboxPruner
48
+ // * @param sandboxServiceSettings
49
49
* @param threadPool
50
50
*/
51
51
@ Inject
52
52
public SandboxService (
53
53
SandboxUsageTracker sandboxUsageTracker ,
54
- // SandboxServiceSettings sandboxServiceSettings,
55
- // SandboxPruner sandboxPruner,
54
+ // SandboxServiceSettings sandboxServiceSettings,
55
+ // SandboxPruner sandboxPruner,
56
56
ClusterService clusterService ,
57
57
ThreadPool threadPool
58
58
) {
59
59
this .sandboxUsageTracker = sandboxUsageTracker ;
60
- // this.sandboxServiceSettings = sandboxServiceSettings;
61
- // this.sandboxPruner = sandboxPruner;
60
+ // this.sandboxServiceSettings = sandboxServiceSettings;
61
+ // this.sandboxPruner = sandboxPruner;
62
62
this .clusterService = clusterService ;
63
63
this .threadPool = threadPool ;
64
64
}
@@ -88,14 +88,15 @@ private Set<Sandbox> getActiveSandboxes() {
88
88
@ Override
89
89
protected void doStart () {
90
90
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
+ },
97
97
new TimeValue (1 , TimeUnit .SECONDS ), // TODO get this from SandboxServiceSettings
98
- ThreadPool .Names .GENERIC );
98
+ ThreadPool .Names .GENERIC
99
+ );
99
100
}
100
101
101
102
@ Override
0 commit comments