@Test public void testGetIdentifier() throws Exception { assertNotNull(peerGroupListener.getIdentifier(new SxpPeerGroupBuilder().setName("TO").build(), getIdentifier())); assertTrue(peerGroupListener.getIdentifier(new SxpPeerGroupBuilder().setName("TO").build(), getIdentifier()) .getTargetType() .equals(SxpPeerGroup.class)); }
@Override protected InstanceIdentifier<SxpPeerGroup> getIdentifier(SxpPeerGroup d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(SxpPeerGroups.class).child(SxpPeerGroup.class, new SxpPeerGroupKey(d.getName())); }
PeerGroupListener extends ListListener<SxpNodeIdentity, SxpPeerGroups, SxpPeerGroup> { @Override protected InstanceIdentifier<SxpPeerGroup> getIdentifier(SxpPeerGroup d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(SxpPeerGroups.class).child(SxpPeerGroup.class, new SxpPeerGroupKey(d.getName())); } }
PeerGroupListener extends ListListener<SxpNodeIdentity, SxpPeerGroups, SxpPeerGroup> { @Override protected InstanceIdentifier<SxpPeerGroup> getIdentifier(SxpPeerGroup d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(SxpPeerGroups.class).child(SxpPeerGroup.class, new SxpPeerGroupKey(d.getName())); } PeerGroupListener(DatastoreAccess datastoreAccess); }
PeerGroupListener extends ListListener<SxpNodeIdentity, SxpPeerGroups, SxpPeerGroup> { @Override protected InstanceIdentifier<SxpPeerGroup> getIdentifier(SxpPeerGroup d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(SxpPeerGroups.class).child(SxpPeerGroup.class, new SxpPeerGroupKey(d.getName())); } PeerGroupListener(DatastoreAccess datastoreAccess);  }
PeerGroupListener extends ListListener<SxpNodeIdentity, SxpPeerGroups, SxpPeerGroup> { @Override protected InstanceIdentifier<SxpPeerGroup> getIdentifier(SxpPeerGroup d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(SxpPeerGroups.class).child(SxpPeerGroup.class, new SxpPeerGroupKey(d.getName())); } PeerGroupListener(DatastoreAccess datastoreAccess);   }