Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HdbTdbArchivingServers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango controls archiving
HdbTdbArchivingServers
Commits
06fb9b8c
Commit
06fb9b8c
authored
5 months ago
by
gwen-soleil
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdbarchiver/src/main/java/org/tango/archiving/collector/CollectorPool.java
+6
-3
6 additions, 3 deletions
...ain/java/org/tango/archiving/collector/CollectorPool.java
with
6 additions
and
3 deletions
hdbarchiver/src/main/java/org/tango/archiving/collector/CollectorPool.java
+
6
−
3
View file @
06fb9b8c
...
...
@@ -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
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment