@Test public void testGetIdentifier() throws Exception { assertNotNull(connectionsListener.getIdentifier(new ConnectionBuilder().setTcpPort(new PortNumber(64)) .setPeerAddress(IpAddressBuilder.getDefaultInstance("1.1.1.1")) .build(), getIdentifier())); assertTrue(connectionsListener.getIdentifier(new ConnectionBuilder().setTcpPort(new PortNumber(64)) .setPeerAddress(IpAddressBuilder.getDefaultInstance("1.1.1.1")) .build(), getIdentifier()).getTargetType().equals(Connection.class)); }
@Override protected InstanceIdentifier<Connection> getIdentifier(Connection d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(Connections.class) .child(Connection.class, new ConnectionKey(d.getPeerAddress(), d.getTcpPort())); }
ConnectionsListener extends ListListener<SxpDomain, Connections, Connection> { @Override protected InstanceIdentifier<Connection> getIdentifier(Connection d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(Connections.class) .child(Connection.class, new ConnectionKey(d.getPeerAddress(), d.getTcpPort())); } }
ConnectionsListener extends ListListener<SxpDomain, Connections, Connection> { @Override protected InstanceIdentifier<Connection> getIdentifier(Connection d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(Connections.class) .child(Connection.class, new ConnectionKey(d.getPeerAddress(), d.getTcpPort())); } ConnectionsListener(DatastoreAccess datastoreAccess); }
ConnectionsListener extends ListListener<SxpDomain, Connections, Connection> { @Override protected InstanceIdentifier<Connection> getIdentifier(Connection d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(Connections.class) .child(Connection.class, new ConnectionKey(d.getPeerAddress(), d.getTcpPort())); } ConnectionsListener(DatastoreAccess datastoreAccess);  }
ConnectionsListener extends ListListener<SxpDomain, Connections, Connection> { @Override protected InstanceIdentifier<Connection> getIdentifier(Connection d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(Connections.class) .child(Connection.class, new ConnectionKey(d.getPeerAddress(), d.getTcpPort())); } ConnectionsListener(DatastoreAccess datastoreAccess);   }