@Test public void testDoubleShutdown() throws Exception { node.start().get(); assertTrue(node.shutdown().get()); node.start().get(); assertTrue(node.shutdown().get()); }
@Override public synchronized ListenableFuture<Boolean> shutdown() { LOG.debug("Shutting down SXPDatastoreNode {}", this); return Futures.transformAsync(super.shutdown(), this::closeDatastoreAccess, getWorker().getDefaultExecutorService()); }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public synchronized ListenableFuture<Boolean> shutdown() { LOG.debug("Shutting down SXPDatastoreNode {}", this); return Futures.transformAsync(super.shutdown(), this::closeDatastoreAccess, getWorker().getDefaultExecutorService()); } }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public synchronized ListenableFuture<Boolean> shutdown() { LOG.debug("Shutting down SXPDatastoreNode {}", this); return Futures.transformAsync(super.shutdown(), this::closeDatastoreAccess, getWorker().getDefaultExecutorService()); } protected  SxpDatastoreNode(NodeId nodeId, DatastoreAccess datastoreAccess, SxpNodeIdentity node); }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public synchronized ListenableFuture<Boolean> shutdown() { LOG.debug("Shutting down SXPDatastoreNode {}", this); return Futures.transformAsync(super.shutdown(), this::closeDatastoreAccess, getWorker().getDefaultExecutorService()); } protected  SxpDatastoreNode(NodeId nodeId, DatastoreAccess datastoreAccess, SxpNodeIdentity node); static InstanceIdentifier<SxpNodeIdentity> getIdentifier(final String nodeId); static SxpDatastoreNode createInstance(NodeId nodeId, DatastoreAccess datastoreAccess,
            SxpNodeIdentity node); @Override boolean addDomain(SxpDomain domain); @Override SxpConnection addConnection(Connection connection, String domain); @Override List<MasterDatabaseBinding> putBindingsMasterDatabase(List<MasterDatabaseBinding> bindings,
            String domainName); @Override List<MasterDatabaseBinding> removeBindingsMasterDatabase(List<MasterDatabaseBinding> bindings,
            String domainName); DatastoreAccess getDatastoreAccess(); @Override synchronized ListenableFuture<Boolean> shutdown(); @Override void close(); }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public synchronized ListenableFuture<Boolean> shutdown() { LOG.debug("Shutting down SXPDatastoreNode {}", this); return Futures.transformAsync(super.shutdown(), this::closeDatastoreAccess, getWorker().getDefaultExecutorService()); } protected  SxpDatastoreNode(NodeId nodeId, DatastoreAccess datastoreAccess, SxpNodeIdentity node); static InstanceIdentifier<SxpNodeIdentity> getIdentifier(final String nodeId); static SxpDatastoreNode createInstance(NodeId nodeId, DatastoreAccess datastoreAccess,
            SxpNodeIdentity node); @Override boolean addDomain(SxpDomain domain); @Override SxpConnection addConnection(Connection connection, String domain); @Override List<MasterDatabaseBinding> putBindingsMasterDatabase(List<MasterDatabaseBinding> bindings,
            String domainName); @Override List<MasterDatabaseBinding> removeBindingsMasterDatabase(List<MasterDatabaseBinding> bindings,
            String domainName); DatastoreAccess getDatastoreAccess(); @Override synchronized ListenableFuture<Boolean> shutdown(); @Override void close();  }