private void registerExistingAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, File candidate) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, candidate.getName()); startAdapter(adapter, candidate.getName()); Set<ActiveMQDestination> destinations = adapter.getDestinations(); if (destinations.size() != 0) { registerAdapter(filteredAdapter, adapter, destinations.toArray(new ActiveMQDestination[]{})[0]); } else { stopAdapter(adapter, candidate.getName()); } }
private FilteredKahaDBPersistenceAdapter addAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, ActiveMQDestination destination) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, nameFromDestinationFilter(destination)); return registerAdapter(filteredAdapter, adapter, destination); }
private void registerExistingAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, File candidate) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, candidate.getName()); startAdapter(adapter, candidate.getName()); Set<ActiveMQDestination> destinations = adapter.getDestinations(); if (destinations.size() != 0) { registerAdapter(filteredAdapter, adapter, destinations.toArray(new ActiveMQDestination[]{})[0]); } else { stopAdapter(adapter, candidate.getName()); } }
private void registerExistingAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, File candidate) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, candidate.getName()); startAdapter(adapter, candidate.getName()); Set<ActiveMQDestination> destinations = adapter.getDestinations(); if (destinations.size() != 0) { registerAdapter(filteredAdapter, adapter, destinations.toArray(new ActiveMQDestination[]{})[0]); } else { stopAdapter(adapter, candidate.getName()); } }
private void registerExistingAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, File candidate) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, candidate.getName()); startAdapter(adapter, candidate.getName()); Set<ActiveMQDestination> destinations = adapter.getDestinations(); if (destinations.size() != 0) { registerAdapter(filteredAdapter, adapter, destinations.toArray(new ActiveMQDestination[]{})[0]); } else { stopAdapter(adapter, candidate.getName()); } }
private FilteredKahaDBPersistenceAdapter addAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, ActiveMQDestination destination) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, nameFromDestinationFilter(destination)); return registerAdapter(filteredAdapter, adapter, destination); }
private FilteredKahaDBPersistenceAdapter addAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, ActiveMQDestination destination) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, nameFromDestinationFilter(destination)); return registerAdapter(filteredAdapter, adapter, destination); }
private FilteredKahaDBPersistenceAdapter addAdapter(FilteredKahaDBPersistenceAdapter filteredAdapter, ActiveMQDestination destination) throws IOException { PersistenceAdapter adapter = adapterFromTemplate(filteredAdapter, nameFromDestinationFilter(destination)); return registerAdapter(filteredAdapter, adapter, destination); }