@Test public void testAddConnection() throws Exception { SxpConnection sxpConnection = node.addConnection(new ConnectionBuilder().setPeerAddress(IpAddressBuilder.getDefaultInstance("1.1.1.1")) .setTcpPort(new PortNumber(64977)) .setMode(ConnectionMode.Both) .setVersion(Version.Version4) .build(), SxpNode.DEFAULT_DOMAIN); assertTrue(sxpConnection instanceof SxpDatastoreConnection); }
@Override public SxpConnection addConnection(Connection connection, String domain) { return addConnection( SxpDatastoreConnection.create(datastoreAccess, this, Preconditions.checkNotNull(connection), Preconditions.checkNotNull(domain))); }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public SxpConnection addConnection(Connection connection, String domain) { return addConnection( SxpDatastoreConnection.create(datastoreAccess, this, Preconditions.checkNotNull(connection), Preconditions.checkNotNull(domain))); } }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public SxpConnection addConnection(Connection connection, String domain) { return addConnection( SxpDatastoreConnection.create(datastoreAccess, this, Preconditions.checkNotNull(connection), Preconditions.checkNotNull(domain))); } protected  SxpDatastoreNode(NodeId nodeId, DatastoreAccess datastoreAccess, SxpNodeIdentity node); }
SxpDatastoreNode extends org.opendaylight.sxp.core.SxpNode implements AutoCloseable { @Override public SxpConnection addConnection(Connection connection, String domain) { return addConnection( SxpDatastoreConnection.create(datastoreAccess, this, Preconditions.checkNotNull(connection), Preconditions.checkNotNull(domain))); } 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 SxpConnection addConnection(Connection connection, String domain) { return addConnection( SxpDatastoreConnection.create(datastoreAccess, this, Preconditions.checkNotNull(connection), Preconditions.checkNotNull(domain))); } 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();  }