@ Override public void exportDevices ( ) throws DevFailed { // load server class for ( final Entry < String , Class < ? > > entry : tangoClasses . entrySet ( ) ) { final String tangoClass = entry . getKey ( ) ; final Class < ? > deviceClass = entry . getValue ( ) ; logger . debug ( "loading class {}" , deviceClass . getCanonicalName ( ) ) ; final DeviceClassBuilder deviceClassBuilder = new DeviceClassBuilder ( deviceClass , tangoClass ) ; deviceClassList . add ( deviceClassBuilder ) ; // export all its devices final String [ ] deviceList = DatabaseFactory . getDatabase ( ) . getDeviceList ( serverName , tangoClass ) ; logger . debug ( "devices found {}" , Arrays . toString ( deviceList ) ) ; // if (deviceList.length == 0) { // throw DevFailedUtils.newDevFailed(ExceptionMessages.DB_ACCESS, "No device defined in database for class " // + tangoClass); // } for ( final String deviceName : deviceList ) { buildDevice ( deviceName , deviceClassBuilder ) ; } } }
Export all devices except admin device