/** * @return the consumerUsageManager * @throws IOException */ public SystemUsage getConsumerSystemUsage() throws IOException { if (this.consumerSystemUsaage == null) { if (splitSystemUsageForProducersConsumers) { this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer"); float portion = consumerSystemUsagePortion / 100f; this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion); addService(this.consumerSystemUsaage); } else { consumerSystemUsaage = getSystemUsage(); } } return this.consumerSystemUsaage; }
/** * @return the producerUsageManager * @throws IOException */ public SystemUsage getProducerSystemUsage() throws IOException { if (producerSystemUsage == null) { if (splitSystemUsageForProducersConsumers) { producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer"); float portion = producerSystemUsagePortion / 100f; producerSystemUsage.getMemoryUsage().setUsagePortion(portion); addService(producerSystemUsage); } else { producerSystemUsage = getSystemUsage(); } } return producerSystemUsage; }
public SystemUsage getSystemUsage() { try { if (systemUsage == null) { systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore(), getJobSchedulerStore()); systemUsage.setExecutor(getExecutor()); systemUsage.getMemoryUsage().setLimit(1024L * 1024 * 1024 * 1); // 1 GB systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB systemUsage.getJobSchedulerUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB addService(this.systemUsage); } return systemUsage; } catch (IOException e) { LOG.error("Cannot create SystemUsage", e); throw new RuntimeException("Fatally failed to create SystemUsage" + e.getMessage(), e); } }
/** * @param brokerService * @param store * @param destination * @param parentStats * @throws Exception */ public BaseDestination(BrokerService brokerService, MessageStore store, ActiveMQDestination destination, DestinationStatistics parentStats) throws Exception { this.brokerService = brokerService; this.broker = brokerService.getBroker(); this.store = store; this.destination = destination; // let's copy the enabled property from the parent DestinationStatistics this.destinationStatistics.setEnabled(parentStats.isEnabled()); this.destinationStatistics.setParent(parentStats); this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString()); this.memoryUsage = this.systemUsage.getMemoryUsage(); this.memoryUsage.setUsagePortion(1.0f); this.regionBroker = brokerService.getRegionBroker(); this.scheduler = brokerService.getBroker().getScheduler(); }
/** * @return the consumerUsageManager * @throws IOException */ public SystemUsage getConsumerSystemUsage() throws IOException { if (this.consumerSystemUsaage == null) { if (splitSystemUsageForProducersConsumers) { this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer"); float portion = consumerSystemUsagePortion / 100f; this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion); addService(this.consumerSystemUsaage); } else { consumerSystemUsaage = getSystemUsage(); } } return this.consumerSystemUsaage; }
/** * @return the producerUsageManager * @throws IOException */ public SystemUsage getProducerSystemUsage() throws IOException { if (producerSystemUsage == null) { if (splitSystemUsageForProducersConsumers) { producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer"); float portion = producerSystemUsagePortion / 100f; producerSystemUsage.getMemoryUsage().setUsagePortion(portion); addService(producerSystemUsage); } else { producerSystemUsage = getSystemUsage(); } } return producerSystemUsage; }
/** * @return the producerUsageManager * @throws IOException */ public SystemUsage getProducerSystemUsage() throws IOException { if (producerSystemUsage == null) { if (splitSystemUsageForProducersConsumers) { producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer"); float portion = producerSystemUsagePortion / 100f; producerSystemUsage.getMemoryUsage().setUsagePortion(portion); addService(producerSystemUsage); } else { producerSystemUsage = getSystemUsage(); } } return producerSystemUsage; }
/** * @return the producerUsageManager * @throws IOException */ public SystemUsage getProducerSystemUsage() throws IOException { if (producerSystemUsage == null) { if (splitSystemUsageForProducersConsumers) { producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer"); float portion = producerSystemUsagePortion / 100f; producerSystemUsage.getMemoryUsage().setUsagePortion(portion); addService(producerSystemUsage); } else { producerSystemUsage = getSystemUsage(); } } return producerSystemUsage; }
/** * @return the consumerUsageManager * @throws IOException */ public SystemUsage getConsumerSystemUsage() throws IOException { if (this.consumerSystemUsaage == null) { if (splitSystemUsageForProducersConsumers) { this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer"); float portion = consumerSystemUsagePortion / 100f; this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion); addService(this.consumerSystemUsaage); } else { consumerSystemUsaage = getSystemUsage(); } } return this.consumerSystemUsaage; }
/** * @return the consumerUsageManager * @throws IOException */ public SystemUsage getConsumerSystemUsage() throws IOException { if (this.consumerSystemUsaage == null) { if (splitSystemUsageForProducersConsumers) { this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer"); float portion = consumerSystemUsagePortion / 100f; this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion); addService(this.consumerSystemUsaage); } else { consumerSystemUsaage = getSystemUsage(); } } return this.consumerSystemUsaage; }
public SystemUsage getSystemUsage() { try { if (systemUsage == null) { systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore()); systemUsage.setExecutor(getExecutor()); systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // Default // 64 // Meg systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 100); // 10 // Gb systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 // GB addService(this.systemUsage); } return systemUsage; } catch (IOException e) { LOG.error("Cannot create SystemUsage", e); throw new RuntimeException("Fatally failed to create SystemUsage" + e.getMessage()); } }
/** * @return the consumerUsageManager * @throws IOException */ public SystemUsage getConsumerSystemUsage() throws IOException { if (this.consumerSystemUsaage == null) { if (splitSystemUsageForProducersConsumers) { this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer"); float portion = consumerSystemUsagePortion / 100f; this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion); addService(this.consumerSystemUsaage); } else { consumerSystemUsaage = getSystemUsage(); } } return this.consumerSystemUsaage; }
/** * @return the producerUsageManager * @throws IOException */ public SystemUsage getProducerSystemUsage() throws IOException { if (producerSystemUsage == null) { if (splitSystemUsageForProducersConsumers) { producerSystemUsage = new SystemUsage(getSystemUsage(), "Producer"); float portion = producerSystemUsagePortion / 100f; producerSystemUsage.getMemoryUsage().setUsagePortion(portion); addService(producerSystemUsage); } else { producerSystemUsage = getSystemUsage(); } } return producerSystemUsage; }
public SystemUsage getSystemUsage() { try { if (systemUsage == null) { systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore(), getJobSchedulerStore()); systemUsage.setExecutor(getExecutor()); systemUsage.getMemoryUsage().setLimit(1024L * 1024 * 1024 * 1); // 1 GB systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB systemUsage.getJobSchedulerUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB addService(this.systemUsage); } return systemUsage; } catch (IOException e) { LOG.error("Cannot create SystemUsage", e); throw new RuntimeException("Fatally failed to create SystemUsage" + e.getMessage(), e); } }
public SystemUsage getSystemUsage() { try { if (systemUsage == null) { systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore(), getJobSchedulerStore()); systemUsage.setExecutor(getExecutor()); systemUsage.getMemoryUsage().setLimit(1024L * 1024 * 1024 * 1); // 1 GB systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB systemUsage.getJobSchedulerUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB addService(this.systemUsage); } return systemUsage; } catch (IOException e) { LOG.error("Cannot create SystemUsage", e); throw new RuntimeException("Fatally failed to create SystemUsage" + e.getMessage(), e); } }
public SystemUsage getSystemUsage() { try { if (systemUsage == null) { systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore(), getJobSchedulerStore()); systemUsage.setExecutor(getExecutor()); systemUsage.getMemoryUsage().setLimit(1024L * 1024 * 1024 * 1); // 1 GB systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB systemUsage.getJobSchedulerUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB addService(this.systemUsage); } return systemUsage; } catch (IOException e) { LOG.error("Cannot create SystemUsage", e); throw new RuntimeException("Fatally failed to create SystemUsage" + e.getMessage(), e); } }
/** * @param broker * @param store * @param destination * @param parentStats * @throws Exception */ public BaseDestination(BrokerService brokerService, MessageStore store, ActiveMQDestination destination, DestinationStatistics parentStats) throws Exception { this.brokerService = brokerService; this.broker = brokerService.getBroker(); this.store = store; this.destination = destination; // let's copy the enabled property from the parent DestinationStatistics this.destinationStatistics.setEnabled(parentStats.isEnabled()); this.destinationStatistics.setParent(parentStats); this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString()); this.memoryUsage = this.systemUsage.getMemoryUsage(); this.memoryUsage.setUsagePortion(1.0f); this.regionBroker = brokerService.getRegionBroker(); }
/** * @param brokerService * @param store * @param destination * @param parentStats * @throws Exception */ public BaseDestination(BrokerService brokerService, MessageStore store, ActiveMQDestination destination, DestinationStatistics parentStats) throws Exception { this.brokerService = brokerService; this.broker = brokerService.getBroker(); this.store = store; this.destination = destination; // let's copy the enabled property from the parent DestinationStatistics this.destinationStatistics.setEnabled(parentStats.isEnabled()); this.destinationStatistics.setParent(parentStats); this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString()); this.memoryUsage = this.systemUsage.getMemoryUsage(); this.memoryUsage.setUsagePortion(1.0f); this.regionBroker = brokerService.getRegionBroker(); this.scheduler = brokerService.getBroker().getScheduler(); }
/** * @param brokerService * @param store * @param destination * @param parentStats * @throws Exception */ public BaseDestination(BrokerService brokerService, MessageStore store, ActiveMQDestination destination, DestinationStatistics parentStats) throws Exception { this.brokerService = brokerService; this.broker = brokerService.getBroker(); this.store = store; this.destination = destination; // let's copy the enabled property from the parent DestinationStatistics this.destinationStatistics.setEnabled(parentStats.isEnabled()); this.destinationStatistics.setParent(parentStats); this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString()); this.memoryUsage = this.systemUsage.getMemoryUsage(); this.memoryUsage.setUsagePortion(1.0f); this.regionBroker = brokerService.getRegionBroker(); this.scheduler = brokerService.getBroker().getScheduler(); }
/** * @param brokerService * @param store * @param destination * @param parentStats * @throws Exception */ public BaseDestination(BrokerService brokerService, MessageStore store, ActiveMQDestination destination, DestinationStatistics parentStats) throws Exception { this.brokerService = brokerService; this.broker = brokerService.getBroker(); this.store = store; this.destination = destination; // let's copy the enabled property from the parent DestinationStatistics this.destinationStatistics.setEnabled(parentStats.isEnabled()); this.destinationStatistics.setParent(parentStats); this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString()); this.memoryUsage = this.systemUsage.getMemoryUsage(); this.memoryUsage.setUsagePortion(1.0f); this.regionBroker = brokerService.getRegionBroker(); this.scheduler = brokerService.getBroker().getScheduler(); }