protected synchronized JobScheduler getInternalScheduler() throws Exception { if (this.started.get()) { if (this.scheduler == null && store != null) { this.scheduler = store.getJobScheduler("JMS"); this.scheduler.addListener(this); this.scheduler.startDispatching(); } return this.scheduler; } return null; }
if (pa != null) { this.jobSchedulerStore = pa.createJobSchedulerStore(); jobSchedulerStore.setDirectory(getSchedulerDirectoryFile()); configureService(jobSchedulerStore); return this.jobSchedulerStore; PersistenceAdapter adaptor = (PersistenceAdapter)getClass().getClassLoader().loadClass(clazz).newInstance(); jobSchedulerStore = adaptor.createJobSchedulerStore(); jobSchedulerStore.setDirectory(getSchedulerDirectoryFile()); configureService(jobSchedulerStore); LOG.info("JobScheduler using directory: {}", getSchedulerDirectoryFile());
if (jobSchedulerStore != null) { try { jobSchedulerStore.start(); } catch (Exception e) { RuntimeException exception = new RuntimeException(
File dir = scheduler.getDirectory(); if (brokerService.isPersistent()) { SystemUsage usage = brokerService.getSystemUsage(); dir = dir.getParentFile(); long storeSize = scheduler.size(); long storeLimit = usage.getJobSchedulerUsage().getLimit(); long dirFreeSpace = dir.getUsableSpace();
private JobSchedulerStore getStore() throws Exception { if (started.get()) { if (this.store == null) { this.store = new JobSchedulerStore(); this.store.setDirectory(directory); this.store.start(); } return this.store; } return null; }
@Override public void stop() throws Exception { if (this.started.compareAndSet(true, false)) { if (this.store != null) { this.store.stop(); } if (this.scheduler != null) { this.scheduler.removeListener(this); this.scheduler = null; } } super.stop(); }
@Override protected long retrieveUsage() { if (store == null) { return 0; } return store.size(); }
File schedulerDir = scheduler.getDirectory(); if (schedulerDir != null) {
jobSchedulerStore.stop(); jobSchedulerStore = null;
File dir = scheduler.getDirectory(); if (brokerService.isPersistent()) { SystemUsage usage = brokerService.getSystemUsage(); dir = dir.getParentFile(); long storeSize = scheduler.size(); long storeLimit = usage.getJobSchedulerUsage().getLimit(); long dirFreeSpace = dir.getUsableSpace();
@Override protected long retrieveUsage() { if (store == null) { return 0; } return store.size(); }
File schedulerDir = scheduler.getDirectory(); if (schedulerDir != null) {
@Override public void stop() throws Exception { if (this.started.compareAndSet(true, false)) { if (this.store != null) { this.store.stop(); } if (this.scheduler != null) { this.scheduler.removeListener(this); this.scheduler = null; } } super.stop(); }
File dir = scheduler.getDirectory(); if (brokerService.isPersistent()) { SystemUsage usage = brokerService.getSystemUsage(); dir = dir.getParentFile(); long storeSize = scheduler.size(); long storeLimit = usage.getJobSchedulerUsage().getLimit(); long dirFreeSpace = dir.getUsableSpace();
protected synchronized JobScheduler getInternalScheduler() throws Exception { if (this.started.get()) { if (this.scheduler == null && store != null) { this.scheduler = store.getJobScheduler("JMS"); this.scheduler.addListener(this); this.scheduler.startDispatching(); } return this.scheduler; } return null; }
if (jobSchedulerStore != null) { try { jobSchedulerStore.start(); } catch (Exception e) { RuntimeException exception = new RuntimeException(
if (pa != null) { this.jobSchedulerStore = pa.createJobSchedulerStore(); jobSchedulerStore.setDirectory(getSchedulerDirectoryFile()); configureService(jobSchedulerStore); return this.jobSchedulerStore; PersistenceAdapter adaptor = (PersistenceAdapter)getClass().getClassLoader().loadClass(clazz).newInstance(); jobSchedulerStore = adaptor.createJobSchedulerStore(); jobSchedulerStore.setDirectory(getSchedulerDirectoryFile()); configureService(jobSchedulerStore); LOG.info("JobScheduler using directory: {}", getSchedulerDirectoryFile());
@Override protected long retrieveUsage() { if (store == null) { return 0; } return store.size(); }
File schedulerDir = scheduler.getDirectory(); if (schedulerDir != null) {
@Override public void stop() throws Exception { if (this.started.compareAndSet(true, false)) { if (this.store != null) { this.store.stop(); } if (this.scheduler != null) { this.scheduler.removeListener(this); this.scheduler = null; } } super.stop(); }