@Override public Executor executor( Group group ) { return delegate.executor( group ); }
public Builder withRotation( long internalLogRotationThreshold, long internalLogRotationDelay, int maxInternalLogArchives, JobScheduler jobScheduler ) { return withRotation( internalLogRotationThreshold, internalLogRotationDelay, maxInternalLogArchives, jobScheduler.executor( Group.LOG_ROTATION ) ); }
private void startDeferredExecutors( JobScheduler jobScheduler, Iterable<Pair<DeferredExecutor,Group>> deferredExecutors ) { for ( Pair<DeferredExecutor,Group> executorGroupPair : deferredExecutors ) { DeferredExecutor executor = executorGroupPair.first(); Group group = executorGroupPair.other(); executor.satisfyWith( jobScheduler.executor( group ) ); } }
public Builder withRotation( long internalLogRotationThreshold, long internalLogRotationDelay, int maxInternalLogArchives, JobScheduler jobScheduler ) { return withRotation( internalLogRotationThreshold, internalLogRotationDelay, maxInternalLogArchives, jobScheduler.executor( Group.LOG_ROTATION ) ); }
private void buildRotatingLog( long rotationThreshold, int maxArchives ) throws IOException { RotatingFileOutputStreamSupplier rotatingSupplier = new RotatingFileOutputStreamSupplier( fileSystem, currentQueryLogFile, rotationThreshold, 0, maxArchives, scheduler.executor( JobScheduler.Groups.queryLogRotation ) ); log = logBuilder.toOutputStream( rotatingSupplier ); closable = rotatingSupplier; }
public static SecurityLog create( Config config, Log log, FileSystemAbstraction fileSystem, JobScheduler jobScheduler ) { try { return new SecurityLog( config, fileSystem, jobScheduler.executor( JobScheduler.Groups.internalLogRotation ) ); } catch ( IOException ioe ) { log.warn( "Unable to create log for auth-manager. Auth logging turned off." ); return null; } }
private void startDeferredExecutors( JobScheduler jobScheduler, Iterable<Pair<DeferredExecutor,Group>> deferredExecutors ) { for ( Pair<DeferredExecutor,Group> executorGroupPair : deferredExecutors ) { DeferredExecutor executor = executorGroupPair.first(); Group group = executorGroupPair.other(); executor.satisfyWith( jobScheduler.executor( group ) ); } }