@Override public void setBrokerService(BrokerService brokerService) { super.setBrokerService(brokerService); for (PersistenceAdapter persistenceAdapter : adapters) { if( persistenceAdapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)persistenceAdapter).setBrokerService(getBrokerService()); } } }
private void configureAdapter(PersistenceAdapter adapter) { // need a per store factory that will put the store in the branch qualifier to disiambiguate xid mbeans ((TransactionIdTransformerAware)adapter).setTransactionIdTransformer(transactionIdTransformer); if (isUseLock()) { if( adapter instanceof Lockable ) { ((Lockable)adapter).setUseLock(false); } } if( adapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)adapter).setBrokerService(getBrokerService()); } }
Broker broker = multiKahaDBPersistenceAdapter.getBrokerService().getBroker();
@Override public void registerIndexListener(IndexListener indexListener) { getDelegate().registerIndexListener(indexListener); try { if (indexListener instanceof BaseDestination) { // update queue storeUsage Object matchingPersistenceAdapter = multiKahaDBPersistenceAdapter.destinationMap.chooseValue(getDelegate().getDestination()); if (matchingPersistenceAdapter instanceof FilteredKahaDBPersistenceAdapter) { FilteredKahaDBPersistenceAdapter filteredAdapter = (FilteredKahaDBPersistenceAdapter) matchingPersistenceAdapter; if (filteredAdapter.getUsage() != null && filteredAdapter.getPersistenceAdapter() instanceof KahaDBPersistenceAdapter) { StoreUsage storeUsage = filteredAdapter.getUsage(); storeUsage.setStore(filteredAdapter.getPersistenceAdapter()); storeUsage.setParent(multiKahaDBPersistenceAdapter.getBrokerService().getSystemUsage().getStoreUsage()); ((BaseDestination) indexListener).getSystemUsage().setStoreUsage(storeUsage); } } } } catch (Exception ignored) { LOG.warn("Failed to set mKahaDB destination store usage", ignored); } } };
@Override public void setBrokerService(BrokerService brokerService) { super.setBrokerService(brokerService); for (PersistenceAdapter persistenceAdapter : adapters) { if( persistenceAdapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)persistenceAdapter).setBrokerService(getBrokerService()); } } }
@Override public void setBrokerService(BrokerService brokerService) { super.setBrokerService(brokerService); for (PersistenceAdapter persistenceAdapter : adapters) { if( persistenceAdapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)persistenceAdapter).setBrokerService(getBrokerService()); } } }
@Override public void setBrokerService(BrokerService brokerService) { super.setBrokerService(brokerService); for (PersistenceAdapter persistenceAdapter : adapters) { if( persistenceAdapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)persistenceAdapter).setBrokerService(getBrokerService()); } } }
private void configureAdapter(PersistenceAdapter adapter) { // need a per store factory that will put the store in the branch qualifier to disiambiguate xid mbeans ((TransactionIdTransformerAware)adapter).setTransactionIdTransformer(transactionIdTransformer); if (isUseLock()) { if( adapter instanceof Lockable ) { ((Lockable)adapter).setUseLock(false); } } if( adapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)adapter).setBrokerService(getBrokerService()); } }
private void configureAdapter(PersistenceAdapter adapter) { // need a per store factory that will put the store in the branch qualifier to disiambiguate xid mbeans ((TransactionIdTransformerAware)adapter).setTransactionIdTransformer(transactionIdTransformer); if (isUseLock()) { if( adapter instanceof Lockable ) { ((Lockable)adapter).setUseLock(false); } } if( adapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)adapter).setBrokerService(getBrokerService()); } }
private void configureAdapter(PersistenceAdapter adapter) { // need a per store factory that will put the store in the branch qualifier to disiambiguate xid mbeans ((TransactionIdTransformerAware)adapter).setTransactionIdTransformer(transactionIdTransformer); if (isUseLock()) { if( adapter instanceof Lockable ) { ((Lockable)adapter).setUseLock(false); } } if( adapter instanceof BrokerServiceAware ) { ((BrokerServiceAware)adapter).setBrokerService(getBrokerService()); } }
Broker broker = multiKahaDBPersistenceAdapter.getBrokerService().getBroker();
Broker broker = multiKahaDBPersistenceAdapter.getBrokerService().getBroker();
Broker broker = multiKahaDBPersistenceAdapter.getBrokerService().getBroker();
@Override public void registerIndexListener(IndexListener indexListener) { getDelegate().registerIndexListener(indexListener); try { if (indexListener instanceof BaseDestination) { // update queue storeUsage Object matchingPersistenceAdapter = multiKahaDBPersistenceAdapter.destinationMap.chooseValue(getDelegate().getDestination()); if (matchingPersistenceAdapter instanceof FilteredKahaDBPersistenceAdapter) { FilteredKahaDBPersistenceAdapter filteredAdapter = (FilteredKahaDBPersistenceAdapter) matchingPersistenceAdapter; if (filteredAdapter.getUsage() != null && filteredAdapter.getPersistenceAdapter() instanceof KahaDBPersistenceAdapter) { StoreUsage storeUsage = filteredAdapter.getUsage(); storeUsage.setStore(filteredAdapter.getPersistenceAdapter()); storeUsage.setParent(multiKahaDBPersistenceAdapter.getBrokerService().getSystemUsage().getStoreUsage()); ((BaseDestination) indexListener).getSystemUsage().setStoreUsage(storeUsage); } } } } catch (Exception ignored) { LOG.warn("Failed to set mKahaDB destination store usage", ignored); } } };
@Override public void registerIndexListener(IndexListener indexListener) { getDelegate().registerIndexListener(indexListener); try { if (indexListener instanceof BaseDestination) { // update queue storeUsage Object matchingPersistenceAdapter = multiKahaDBPersistenceAdapter.destinationMap.chooseValue(getDelegate().getDestination()); if (matchingPersistenceAdapter instanceof FilteredKahaDBPersistenceAdapter) { FilteredKahaDBPersistenceAdapter filteredAdapter = (FilteredKahaDBPersistenceAdapter) matchingPersistenceAdapter; if (filteredAdapter.getUsage() != null && filteredAdapter.getPersistenceAdapter() instanceof KahaDBPersistenceAdapter) { StoreUsage storeUsage = filteredAdapter.getUsage(); storeUsage.setStore(filteredAdapter.getPersistenceAdapter()); storeUsage.setParent(multiKahaDBPersistenceAdapter.getBrokerService().getSystemUsage().getStoreUsage()); ((BaseDestination) indexListener).getSystemUsage().setStoreUsage(storeUsage); } } } } catch (Exception ignored) { LOG.warn("Failed to set mKahaDB destination store usage", ignored); } } };
@Override public void registerIndexListener(IndexListener indexListener) { getDelegate().registerIndexListener(indexListener); try { if (indexListener instanceof BaseDestination) { // update queue storeUsage Object matchingPersistenceAdapter = multiKahaDBPersistenceAdapter.destinationMap.chooseValue(getDelegate().getDestination()); if (matchingPersistenceAdapter instanceof FilteredKahaDBPersistenceAdapter) { FilteredKahaDBPersistenceAdapter filteredAdapter = (FilteredKahaDBPersistenceAdapter) matchingPersistenceAdapter; if (filteredAdapter.getUsage() != null && filteredAdapter.getPersistenceAdapter() instanceof KahaDBPersistenceAdapter) { StoreUsage storeUsage = filteredAdapter.getUsage(); storeUsage.setStore(filteredAdapter.getPersistenceAdapter()); storeUsage.setParent(multiKahaDBPersistenceAdapter.getBrokerService().getSystemUsage().getStoreUsage()); ((BaseDestination) indexListener).getSystemUsage().setStoreUsage(storeUsage); } } } } catch (Exception ignored) { LOG.warn("Failed to set mKahaDB destination store usage", ignored); } } };