@Test public void testGetIdentifier() throws Exception { assertNotNull(templateListener.getIdentifier( new ConnectionTemplateBuilder().setTemplateTcpPort(new PortNumber(64)) .setTemplatePrefix(IpPrefixBuilder.getDefaultInstance("1.1.1.1/32")) .build(), getIdentifier())); assertTrue(templateListener.getIdentifier(new ConnectionTemplateBuilder().setTemplateTcpPort(new PortNumber(64)) .setTemplatePrefix(IpPrefixBuilder.getDefaultInstance("1.1.1.1/32")) .build(), getIdentifier()).getTargetType().equals(ConnectionTemplate.class)); }
@Override protected InstanceIdentifier<ConnectionTemplate> getIdentifier(ConnectionTemplate d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(ConnectionTemplates.class) .child(ConnectionTemplate.class, new ConnectionTemplateKey(d.getTemplatePrefix())); }
ConnectionTemplateListener extends ListListener<SxpDomain, ConnectionTemplates, ConnectionTemplate> { @Override protected InstanceIdentifier<ConnectionTemplate> getIdentifier(ConnectionTemplate d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(ConnectionTemplates.class) .child(ConnectionTemplate.class, new ConnectionTemplateKey(d.getTemplatePrefix())); } }
ConnectionTemplateListener extends ListListener<SxpDomain, ConnectionTemplates, ConnectionTemplate> { @Override protected InstanceIdentifier<ConnectionTemplate> getIdentifier(ConnectionTemplate d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(ConnectionTemplates.class) .child(ConnectionTemplate.class, new ConnectionTemplateKey(d.getTemplatePrefix())); } ConnectionTemplateListener(DatastoreAccess datastoreAccess); }
ConnectionTemplateListener extends ListListener<SxpDomain, ConnectionTemplates, ConnectionTemplate> { @Override protected InstanceIdentifier<ConnectionTemplate> getIdentifier(ConnectionTemplate d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(ConnectionTemplates.class) .child(ConnectionTemplate.class, new ConnectionTemplateKey(d.getTemplatePrefix())); } ConnectionTemplateListener(DatastoreAccess datastoreAccess);  }
ConnectionTemplateListener extends ListListener<SxpDomain, ConnectionTemplates, ConnectionTemplate> { @Override protected InstanceIdentifier<ConnectionTemplate> getIdentifier(ConnectionTemplate d, InstanceIdentifier<SxpDomain> parentIdentifier) { Preconditions.checkNotNull(d); Preconditions.checkNotNull(parentIdentifier); return parentIdentifier.child(ConnectionTemplates.class) .child(ConnectionTemplate.class, new ConnectionTemplateKey(d.getTemplatePrefix())); } ConnectionTemplateListener(DatastoreAccess datastoreAccess);   }