@Test public void testSetTimers() throws Exception { ConnectionTimers timers = new ConnectionTimersBuilder().setHoldTime(60).setHoldTimeMax(180).setHoldTimeMinAcceptable(90).build(); connection.setTimers(timers); assertEquals(60, connection.getHoldTime()); assertEquals(180, connection.getHoldTimeMax()); assertEquals(90, connection.getHoldTimeMinAcceptable()); verify(writeTransaction, atLeastOnce()).put(any(LogicalDatastoreType.class), any(InstanceIdentifier.class), eq(timers)); }
@Override protected void setTimers(ConnectionTimers timers) { super.setTimers(timers); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(ConnectionTimers.class), Preconditions.checkNotNull(timers), LogicalDatastoreType.OPERATIONAL, true); } }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setTimers(ConnectionTimers timers) { super.setTimers(timers); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(ConnectionTimers.class), Preconditions.checkNotNull(timers), LogicalDatastoreType.OPERATIONAL, true); } } }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setTimers(ConnectionTimers timers) { super.setTimers(timers); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(ConnectionTimers.class), Preconditions.checkNotNull(timers), LogicalDatastoreType.OPERATIONAL, true); } } private  SxpDatastoreConnection(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection, String domain); }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setTimers(ConnectionTimers timers) { super.setTimers(timers); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(ConnectionTimers.class), Preconditions.checkNotNull(timers), LogicalDatastoreType.OPERATIONAL, true); } } private  SxpDatastoreConnection(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection, String domain); static SxpDatastoreConnection create(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection,
            String domain); @Override void setNodeIdRemote(NodeId remoteNodeId); @Override void setUpdateOrKeepaliveMessageTimestamp(); @Override void shutdown(); }
SxpDatastoreConnection extends org.opendaylight.sxp.core.SxpConnection { @Override protected void setTimers(ConnectionTimers timers) { super.setTimers(timers); if (datastoreAccess != null) { datastoreAccess.checkAndPut(getIdentifier().child(ConnectionTimers.class), Preconditions.checkNotNull(timers), LogicalDatastoreType.OPERATIONAL, true); } } private  SxpDatastoreConnection(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection, String domain); static SxpDatastoreConnection create(DatastoreAccess datastoreAccess, SxpNode owner, Connection connection,
            String domain); @Override void setNodeIdRemote(NodeId remoteNodeId); @Override void setUpdateOrKeepaliveMessageTimestamp(); @Override void shutdown();  }