@Test public void testNeverAlignedDeviceState() { Device deviceX = createDevice("X"); m_das.deviceAdded(deviceX.getDeviceName()); Assert.assertEquals(NEVER_ALIGNED, deviceX.getDeviceManagement().getDeviceState().getConfigAlignmentState()); }
@Override public void deviceAdded(String deviceName) { m_queue.put(deviceName, new ArrayList<>()); }
NetconfDeviceAlignmentServiceImpl implements NetconfDeviceAlignmentService { @Override public void deviceAdded(String deviceName) { m_queue.put(deviceName, new ArrayList<>()); } }
NetconfDeviceAlignmentServiceImpl implements NetconfDeviceAlignmentService { @Override public void deviceAdded(String deviceName) { m_queue.put(deviceName, new ArrayList<>()); } NetconfDeviceAlignmentServiceImpl(DeviceManager dm, NetconfConnectionManager ncm, AdapterManager manager); }
NetconfDeviceAlignmentServiceImpl implements NetconfDeviceAlignmentService { @Override public void deviceAdded(String deviceName) { m_queue.put(deviceName, new ArrayList<>()); } NetconfDeviceAlignmentServiceImpl(DeviceManager dm, NetconfConnectionManager ncm, AdapterManager manager); void init(); void destroy(); TxService getTxService(); void setTxService(TxService txService); @Override void queueEdit(String deviceName, EditConfigRequest request); @Override List<EditConfigRequest> getEditQueue(String deviceName); void alignAllDevices(); @Override String getAlignmentState(String deviceName); @Override void deviceAdded(String deviceName); @Override void deviceRemoved(String deviceName); @Override void forceAlign(Device device, NetConfResponse getConfigResponse); @Override void align(Device device, NetConfResponse getConfigResponse); }
NetconfDeviceAlignmentServiceImpl implements NetconfDeviceAlignmentService { @Override public void deviceAdded(String deviceName) { m_queue.put(deviceName, new ArrayList<>()); } NetconfDeviceAlignmentServiceImpl(DeviceManager dm, NetconfConnectionManager ncm, AdapterManager manager); void init(); void destroy(); TxService getTxService(); void setTxService(TxService txService); @Override void queueEdit(String deviceName, EditConfigRequest request); @Override List<EditConfigRequest> getEditQueue(String deviceName); void alignAllDevices(); @Override String getAlignmentState(String deviceName); @Override void deviceAdded(String deviceName); @Override void deviceRemoved(String deviceName); @Override void forceAlign(Device device, NetConfResponse getConfigResponse); @Override void align(Device device, NetConfResponse getConfigResponse); static final String EDITS_PENDING; static final String REQUEST_TIMED_OUT; static final String LINE_SEPARATOR; static final String RESPONSE_RECEIVED; static final String REQUEST_SENT; static final String COMMA; static final String ALIGNMENT_STATE; }