@Override public void close() throws Exception { if (transactionChain != null) { transactionChain.close(); } }
@Override public void close() { chain.close(); }
@Override public void onTransactionChainFailed(final TransactionChain<?, ?> transactionChain, final AsyncTransaction<?, ?> asyncTransaction, final Throwable throwable) { LOG.error("Transaction chain {} failed.", transactionChain, throwable); txChain.close(); }
@Override public void close() { if (closed.getAndSet(0) > 0) synchronized (dataBroker) { bindingTransactionChain.close(); } } }
@Override public void close() { thread.interrupt(); try { thread.join(); } catch(InterruptedException e) { LOG.debug("Join of thread {} was interrupted", thread.getName(), e); } if (transactionChain != null) { transactionChain.close(); } LOG.debug("OperationProcessor closed"); } }
/** * Recreate transaction chain if error occurred and decrement allowed error rate counter */ private void reinitializeChain() { closed.decrementAndGet(); bindingTransactionChain.close(); bindingTransactionChain = dataBroker.createTransactionChain(chainListener); }
private void recreateTxChain() { txChainFactory.close(); createTxChain(dataBroker); synchronized (txLock) { wTx = null; } }
private void resetTransactionQueue() { chain.close(); chain = db.createTransactionChain(this); pendingTransactions = new ArrayList<>(); transactionToCommand = new HashMap<>(); failedTransactionQueue.clear(); successfulTransactionQueue.clear(); }
static synchronized void initTransactionChain() { try { if (fibTransact != null) { fibTransact.close(); LOG.error("*** TxChain Close, *** Attempts: {}", txChainAttempts); fibTransact = null; } } catch (Exception ignore) { } BgpUtil.fibTransact = dataBroker.createTransactionChain(new BgpUtilTransactionChainListener()); txChainAttempts++; }
private void notifyReadyForNewTransactionChainAndCloseFactory() { synchronized (this) { try { LOG.debug("Closing registration in manager."); managerRegistration.close(); } catch (Exception e) { LOG.warn("Failed to close transaction chain manager's registration.", e); } managerRegistration = null; if (null != readyForNewTransactionChainHandler) { readyForNewTransactionChainHandler.onReadyForNewTransactionChain(); } } txChainFactory.close(); LOG.debug("Transaction chain factory closed."); }
@Override public void close() throws InterruptedException { LOG.info("Flow Capable Inventory Provider stopped."); if (this.listenerRegistration != null) { try { this.listenerRegistration.close(); } catch (final Exception e) { LOG.error("Failed to stop inventory provider", e); } listenerRegistration = null; } if (thread != null) { thread.interrupt(); thread.join(); thread = null; } if (txChain != null) { try { txChain.close(); } catch (final IllegalStateException e) { // It is possible chain failed and was closed by #onTransactionChainFailed LOG.debug("Chain was already closed."); } txChain = null; } } }
@Override public void onTransactionChainFailed(TransactionChain<?, ?> chain, AsyncTransaction<?, ?> transaction, Throwable cause) { LOG.warn("Failed to export Topology manager operations, Transaction {} failed: {}", transaction.getIdentifier(), cause.getMessage()); LOG.debug("Failed to export Topology manager operations.. ", cause); transactionChain.close(); transactionChain = dataBroker.createTransactionChain(this); cleanDataStoreOperQueue(); }
private void chainFailure() { try { transactionChain.close(); transactionChain = dataBroker.createTransactionChain(this); clearQueue(); } catch (IllegalStateException e) { LOG.warn(e.getLocalizedMessage()); } }
public void close() { final WriteTransaction wTx = this.dataBroker.newWriteOnlyTransaction(); wTx.delete(LogicalDatastoreType.OPERATIONAL, this.counterInstanceId); try { wTx.submit().checkedGet(); } catch (TransactionCommitFailedException except) { LOG.warn("Error on remove data change counter {}", this.counterId, except); } this.chain.close(); LOG.debug("Data change counter {} removed", this.counterId); }
@Override public void close() { this.rpcRegistration.close(); final WriteTransaction dTx = this.txChain.newWriteOnlyTransaction(); dTx.delete(LogicalDatastoreType.CONFIGURATION, this.iid); try { dTx.submit().checkedGet(); } catch (final TransactionCommitFailedException e) { LOG.warn("Failed to clean-up BGP Application RIB.", e); } this.txChain.close(); LOG.info("BGP Application Peer Benchmark Application closed."); }
public void close() throws Exception { mountInstance.close(); datastoreAdapter.close(); datastoreAdapter = null; topologyDatastoreAdapter.close(); topologyDatastoreAdapter = null; txChain.close(); }
private void submitTransaction(ReadWriteTransaction tx) { try { tx.submit().checkedGet(); } catch (final TransactionCommitFailedException e) { LOG.warn("Stat DataStoreOperation unexpected State!", e); transactionChain.close(); transactionChain = dataBroker.createTransactionChain(this); cleanDataStoreOperQueue(); } }
} catch (final IllegalStateException e) { LOG.warn("Stat DataStoreOperation unexpected State!", e); transactionChain.close(); transactionChain = dataBroker.createTransactionChain(this); cleanDataStoreOperQueue();
@Override public void close() throws Exception { final WriteTransaction wTx = txChain.newWriteOnlyTransaction(); wTx.delete(LogicalDatastoreType.CONFIGURATION, BGP_IID); wTx.submit().checkedGet(); txChain.close(); }
} catch (final Exception e) { LOG.warn("Unhandled exception during processing statistics. Restarting transaction chain.", e); txChain.close(); txChain = dataBroker.createTransactionChain(StatisticsManagerImpl.this); cleanDataStoreOperQueue();