use of com.thinkbiganalytics.spark.service.IdleMonitorService in project kylo by Teradata.
the class SparkShellApp method idleMonitorService.
/**
* Creates a service to stop this app after a period of inactivity.
*/
@Bean
public IdleMonitorService idleMonitorService(final SparkShellOptions parameters) {
final IdleMonitorService idleMonitorService = new IdleMonitorService(parameters.getIdleTimeout(), TimeUnit.SECONDS);
idleMonitorService.startAsync();
return idleMonitorService;
}
use of com.thinkbiganalytics.spark.service.IdleMonitorService in project kylo by Teradata.
the class KyloShellConfig method idleMonitorService.
/**
* Creates a service to stop this app after a period of inactivity.
*/
@Bean
public IdleMonitorService idleMonitorService(final SparkShellOptions parameters) {
final IdleMonitorService idleMonitorService = new IdleMonitorService(parameters.getIdleTimeout(), TimeUnit.SECONDS);
idleMonitorService.startAsync();
return idleMonitorService;
}
Aggregations