public CommitLogArchiver(String archiveCommand, String restoreCommand, String restoreDirectories, long restorePointInTime, TimeUnit precision) { this.archiveCommand = archiveCommand; this.restoreCommand = restoreCommand; this.restoreDirectories = restoreDirectories; this.restorePointInTime = restorePointInTime; this.precision = precision; executor = !Strings.isNullOrEmpty(archiveCommand) ? new JMXEnabledThreadPoolExecutor("CommitLogArchiver") : null; }
public CommitLogArchiver(String archiveCommand, String restoreCommand, String restoreDirectories, long restorePointInTime, TimeUnit precision) { this.archiveCommand = archiveCommand; this.restoreCommand = restoreCommand; this.restoreDirectories = restoreDirectories; this.restorePointInTime = restorePointInTime; this.precision = precision; executor = !Strings.isNullOrEmpty(archiveCommand) ? new JMXEnabledThreadPoolExecutor("CommitLogArchiver") : null; }
public CommitLogArchiver(String archiveCommand, String restoreCommand, String restoreDirectories, long restorePointInTime, TimeUnit precision) { this.archiveCommand = archiveCommand; this.restoreCommand = restoreCommand; this.restoreDirectories = restoreDirectories; this.restorePointInTime = restorePointInTime; this.precision = precision; executor = !Strings.isNullOrEmpty(archiveCommand) ? new JMXEnabledThreadPoolExecutor("CommitLogArchiver") : null; }
HintsDispatchExecutor(File hintsDirectory, int maxThreads, AtomicBoolean isPaused, Function<InetAddress, Boolean> isAlive) { this.hintsDirectory = hintsDirectory; this.isPaused = isPaused; this.isAlive = isAlive; scheduledDispatches = new ConcurrentHashMap<>(); executor = new JMXEnabledThreadPoolExecutor(maxThreads, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new NamedThreadFactory("HintsDispatcher", Thread.MIN_PRIORITY), "internal"); }
HintsDispatchExecutor(File hintsDirectory, int maxThreads, AtomicBoolean isPaused, Function<InetAddress, Boolean> isAlive) { this.hintsDirectory = hintsDirectory; this.isPaused = isPaused; this.isAlive = isAlive; scheduledDispatches = new ConcurrentHashMap<>(); executor = new JMXEnabledThreadPoolExecutor(maxThreads, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new NamedThreadFactory("HintsDispatcher", Thread.MIN_PRIORITY), "internal"); }
HintsDispatchExecutor(File hintsDirectory, int maxThreads, AtomicBoolean isPaused, Function<InetAddress, Boolean> isAlive) { this.hintsDirectory = hintsDirectory; this.isPaused = isPaused; this.isAlive = isAlive; scheduledDispatches = new ConcurrentHashMap<>(); executor = new JMXEnabledThreadPoolExecutor(maxThreads, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new NamedThreadFactory("HintsDispatcher", Thread.MIN_PRIORITY), "internal"); }
private static JMXEnabledThreadPoolExecutor multiThreadedStage(Stage stage, int numThreads) { return new JMXEnabledThreadPoolExecutor(numThreads, KEEPALIVE, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(stage.getJmxName()), stage.getJmxType()); }
private static JMXEnabledThreadPoolExecutor multiThreadedStage(Stage stage, int numThreads) { return new JMXEnabledThreadPoolExecutor(numThreads, KEEPALIVE, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(stage.getJmxName()), stage.getJmxType()); }
private static JMXEnabledThreadPoolExecutor multiThreadedStage(Stage stage, int numThreads) { return new JMXEnabledThreadPoolExecutor(numThreads, KEEPALIVE, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(stage.getJmxName()), stage.getJmxType()); }
private static JMXEnabledThreadPoolExecutor multiThreadedStage(Stage stage, int numThreads) { return new JMXEnabledThreadPoolExecutor(numThreads, KEEPALIVE, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(stage.getJmxName()), stage.getJmxType()); }
ThreadPoolExecutor invoker = new JMXEnabledThreadPoolExecutor(DatabaseDescriptor.getRpcMinThreads(), DatabaseDescriptor.getRpcMaxThreads(), 60L,
ThreadPoolExecutor invoker = new JMXEnabledThreadPoolExecutor(DatabaseDescriptor.getRpcMinThreads(), DatabaseDescriptor.getRpcMaxThreads(), 60L,
ThreadPoolExecutor invoker = new JMXEnabledThreadPoolExecutor(DatabaseDescriptor.getRpcMinThreads(), DatabaseDescriptor.getRpcMaxThreads(), 60L,