Skip to content
Snippets Groups Projects
Commit 200f90d4 authored by Alexandre TISON's avatar Alexandre TISON
Browse files

Removed support for HDB/TDB API since it queries the TANGO database

parent 4815ec83
No related branches found
No related tags found
1 merge request!6Added getAttributesConfList(final String attributePattern)
......@@ -243,20 +243,6 @@ public class HDBTDBAccess implements IArchivingAccess {
@Override
public String[] getAttributesByPattern(final String pattern) throws DevFailed {
String[] devices = TangoUtil.getDevicesForPattern(pattern);
Pattern p = Pattern.compile(pattern);
List<String> attributes = new ArrayList<>();
for (String device : devices) {
try {
DeviceProxy deviceProxy = new DeviceProxy(device);
Arrays.stream(deviceProxy.get_attribute_list()).filter(attr -> {
Matcher m = p.matcher(attr);
return m.matches();
}).forEach(attributes::add);
} catch (DevFailed e) {
logger.error("Cannot get attributes for device {}", device, e);
}
}
return attributes.toArray(new String[0]);
throw DevFailedUtils.newDevFailed("Not supported for HDB or TDB");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment