Change-Id: I2e5b8cc264acee74530ccbb990014b54649764b1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
public synchronized ObjectName getOrCreateTransaction() {
Optional<ObjectName> ta = getTransaction();
public synchronized ObjectName getOrCreateTransaction() {
Optional<ObjectName> ta = getTransaction();
transaction = configRegistryClient.beginConfig();
allOpenedTransactions.add(transaction);
return transaction;
transaction = configRegistryClient.beginConfig();
allOpenedTransactions.add(transaction);
return transaction;
@Override
public void handleNotification(final Notification notification, final Object handback) {
@Override
public void handleNotification(final Notification notification, final Object handback) {
- if (!(notification instanceof NetconfJMXNotification))
+ if (!(notification instanceof NetconfJMXNotification)) {
// Socket should not be closed at this point
// Activator unregisters this as JMX listener before close is called
// Socket should not be closed at this point
// Activator unregisters this as JMX listener before close is called