public static String [ ] getDevicesForPattern ( final String deviceNamePattern ) throws DevFailed { String [ ] devices ; // is p a device name or a device name pattern ? if ( ! deviceNamePattern . contains ( "*" ) ) { // p is a pure device name devices = new String [ 1 ] ; devices [ 0 ] = TangoUtil . getfullNameForDevice ( deviceNamePattern ) ; } else { // ask the db the list of device matching pattern p final Database db = ApiUtil . get_db_obj ( ) ; devices = db . get_device_exported ( deviceNamePattern ) ; } return devices ; }
Get the list of device names which matches the pattern p