public EchoSCP(DicomConfiguration dicomConfiguration, String deviceName) throws Exception { init(dicomConfiguration.findDevice(deviceName)); this.dicomConfiguration = dicomConfiguration; DicomServiceRegistry serviceRegistry = new DicomServiceRegistry(); serviceRegistry.addDicomService(new BasicCEchoSCP()); device.setDimseRQHandler(serviceRegistry); EchoSCP.instance = this; }
@Override public void reload() throws Exception { device.reconfigure(dicomConfiguration.findDevice(device.getDeviceName())); }