@Override public void setBrokerService(Broker broker) { this.scheduler = broker.getScheduler(); this.broker = broker; }
public void setBroker(Broker broker) { this.scheduler = broker.getScheduler(); }
@Override public Scheduler getScheduler() { return getNext().getScheduler(); }
public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException { super(broker,context, info); this.usageManager=usageManager; pending = cursor; try { pending.start(); } catch (Exception e) { throw new JMSException(e.getMessage()); } this.scheduler = broker.getScheduler(); }
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception { super(broker, context, info); this.usageManager = usageManager; String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]"; if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) { this.matched = new VMPendingMessageCursor(false); } else { this.matched = new FilePendingMessageCursor(broker,matchedName,false); } this.scheduler = broker.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(); }
@Override public void setBrokerService(Broker broker) { this.scheduler = broker.getScheduler(); this.broker = broker; }
public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws InvalidSelectorException { super(broker,context, info); this.usageManager=usageManager; pending = cursor; this.scheduler = broker.getScheduler(); }
@Override public void setBrokerService(Broker broker) { this.scheduler = broker.getScheduler(); this.broker = broker; }
public void setBrokerService(Broker broker) { this.scheduler = broker.getScheduler(); this.broker = broker; }
@Override public void setBrokerService(Broker broker) { this.scheduler = broker.getScheduler(); this.broker = broker; }
@Override public Scheduler getScheduler() { return getNext().getScheduler(); }
@Override public Scheduler getScheduler() { return getNext().getScheduler(); }
@Override public Scheduler getScheduler() { return getNext().getScheduler(); }
public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException { super(broker,context, info); this.usageManager=usageManager; pending = cursor; try { pending.start(); } catch (Exception e) { throw new JMSException(e.getMessage()); } this.scheduler = broker.getScheduler(); }
public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException { super(broker,context, info); this.usageManager=usageManager; pending = cursor; try { pending.start(); } catch (Exception e) { throw new JMSException(e.getMessage()); } this.scheduler = broker.getScheduler(); }
public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException { super(broker,context, info); this.usageManager=usageManager; pending = cursor; try { pending.start(); } catch (Exception e) { throw new JMSException(e.getMessage()); } this.scheduler = broker.getScheduler(); }
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception { super(broker, context, info); this.usageManager = usageManager; String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]"; if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) { this.matched = new VMPendingMessageCursor(false); } else { this.matched = new FilePendingMessageCursor(broker,matchedName,false); } this.scheduler = broker.getScheduler(); }
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception { super(broker, context, info); this.usageManager = usageManager; String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]"; if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) { this.matched = new VMPendingMessageCursor(false); } else { this.matched = new FilePendingMessageCursor(broker,matchedName,false); } this.scheduler = broker.getScheduler(); }
public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception { super(broker, context, info); this.usageManager = usageManager; String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]"; if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) { this.matched = new VMPendingMessageCursor(false); } else { this.matched = new FilePendingMessageCursor(broker,matchedName,false); } this.scheduler = broker.getScheduler(); }