Skip to content
Snippets Groups Projects
Commit 13d98d65 authored by gwen-soleil's avatar gwen-soleil
Browse files

split attribute archiversErrorList in 2 attributes: one for Tango collect...

split attribute archiversErrorList in 2 attributes: one for Tango collect errors, the other for database insertions errors
parent 35d38791
No related branches found
No related tags found
No related merge requests found
......@@ -411,15 +411,23 @@ public class ArchiversMonitor {
}
@Attribute
@AttributeProperties(description = "List archiving attributes in error")
public String[][] getArchiversErrorList() throws DevFailed {
@AttributeProperties(description = "List archiving attributes with collecting errors")
public String[][] getArchiversCollectErrorList() throws DevFailed {
Set<String[]> result = new LinkedHashSet<>();
result.add(new String[]{"Device name", "Attribute in error name", "Error message"});
getArchiverErrors("GetInsertionErrorMessages", result);
getArchiverErrors("GetErrorMessages", result);
return result.toArray(new String[][]{});
}
@Attribute
@AttributeProperties(description = "List archiving attributes with insertion errors")
public String[][] getArchiversInsertionErrorList() throws DevFailed {
Set<String[]> result = new LinkedHashSet<>();
result.add(new String[]{"Device name", "Attribute in error name", "Error message"});
getArchiverErrors("GetInsertionErrorMessages", result);
return result.toArray(new String[][]{});
}
private void getArchiverErrors(String cmdName, Set<String[]> result) throws DevFailed {
GroupCmdReplyList groupResult = group.command_inout(cmdName, true);
final Enumeration<?> tmpReplyEnumeration = groupResult.elements();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment