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

add write type criteria to distribute spectrum attributes on collectors

parent a8815c9d
No related branches found
No related tags found
No related merge requests found
......@@ -149,11 +149,11 @@ public class CollectorPool {
PollingMode pollingMode;
if (config.getAttributeConfig().getFormat() != AttrDataFormat._SCALAR) {
pollingMode = new PollingMode(config.getAttributeConfig().getFormat(),
config.getModes());
config.getModes(), config.getAttributeConfig().getWriteType());
} else {
// Scalar, one collector per archiving mode
pollingMode = new PollingMode(config.getAttributeConfig().getFormat(),
config.getModes());
config.getModes(), 0);
}
return pollingMode;
}
......@@ -271,10 +271,12 @@ public class CollectorPool {
private static class PollingMode {
private final int format;
private final String mode;
private final int writable;
public PollingMode(int format, InsertionModes mode) {
public PollingMode(int format, InsertionModes mode, int writable) {
this.format = format;
this.mode = mode.toSimpleString();
this.writable= writable;
}
@Override
......@@ -292,6 +294,7 @@ public class CollectorPool {
return new ToStringBuilder(this)
.append("format", format)
.append("mode", mode)
.append("writable", writable)
.toString();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment