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
a1525f13
Commit
a1525f13
authored
Mar 8, 2011
by
Gwenaelle ABEILLE
Browse files
Options
Downloads
Patches
Plain Diff
stop_archive_conf state management
parent
ef50c244
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/HdbArchiver/HdbArchiver.java
+15
-20
15 additions, 20 deletions
src/main/java/HdbArchiver/HdbArchiver.java
with
15 additions
and
20 deletions
src/main/java/HdbArchiver/HdbArchiver.java
+
15
−
20
View file @
a1525f13
...
...
@@ -690,6 +690,7 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
this
.
updateAMTTable
=
updateAMTTable
;
}
@Override
public
void
run
()
{
try
{
...
...
@@ -1059,7 +1060,8 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"insertModeRecord - out"
);
}
// update period in dbProxy, used in cmd retry_for_ko_attributes
// update period in dbProxy, used in cmd
// retry_for_ko_attributes
final
int
period
=
attributeLightMode
.
getMode
().
getModeP
().
getPeriod
();
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
attCompleteName
+
"'s period is "
+
period
);
dbProxy
.
setPeriodForAttribute
(
attCompleteName
,
period
);
...
...
@@ -1096,13 +1098,14 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
archivingException
.
addStack
(
message
,
reason
,
ErrSeverity
.
PANIC
,
desc
,
""
,
e
);
logger
.
trace
(
ILogger
.
LEVEL_ERROR
,
reason
+
" "
+
desc
);
archivingStatus
.
put
(
attCompleteName
,
false
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"KO: "
+
attCompleteName
);
}
}
computeLoads
();
TangoStateUtils
.
setOn
(
this
,
archivingStatus
);
if
(!
archivingException
.
getMessage
().
equals
(
""
))
{
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"trigger_archive_conf - out"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"trigger_archive_conf
ERROR
- out"
);
throw
archivingException
.
toTangoException
();
}
...
...
@@ -1162,20 +1165,17 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
*/
// =========================================================
public
void
stop_archive_conf
(
final
String
[]
argin
)
throws
DevFailed
{
TangoStateUtils
.
isAllowed
(
this
);
TangoStateUtils
.
setRunning
(
this
);
//
TangoStateUtils.isAllowed(this);
//
TangoStateUtils.setRunning(this);
try
{
get_logger
().
info
(
"Entering stop_archive_conf()"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"===> Entering stop_archive_conf()"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"stop_archive_conf - in"
);
final
Vector
<
AttributeLightMode
>
myConf
=
ArchivingManagerApiRef
.
stoppingVector
(
argin
);
for
(
int
i
=
0
;
i
<
myConf
.
size
();
i
++)
{
stop_archive_att
(
myConf
.
elementAt
(
i
).
toArray
());
}
get_logger
().
info
(
"Exiting stop_archive_conf()"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"===> Exiting stop_archive_conf()"
);
}
finally
{
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"stop_archive_conf - out"
);
TangoStateUtils
.
setOn
(
this
,
archivingStatus
);
}
}
...
...
@@ -1699,15 +1699,12 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
public
void
stop_archive_att
(
final
String
[]
argin
)
throws
DevFailed
{
TangoStateUtils
.
isAllowed
(
this
);
TangoStateUtils
.
setRunning
(
this
);
get_logger
().
info
(
"Entering stop_archive_att()"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"===> Entering stop_archive_att()"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"stop_archive_att - in"
);
final
AttributeLightMode
attributeLightMode
=
AttributeLightMode
.
creationWithFullInformation
(
argin
);
HdbCollector
hdbCollector
=
null
;
try
{
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"===> Attribute Name = "
+
attributeLightMode
.
getAttribute_complete_name
());
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"attribute: "
+
attributeLightMode
.
getAttribute_complete_name
());
dbProxy
.
updateModeRecord
(
attributeLightMode
);
...
...
@@ -1742,12 +1739,10 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
e
.
printStackTrace
();
throw
e
.
toTangoException
();
}
finally
{
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"
===> Exiting
stop_archive_att
()
"
);
logger
.
trace
(
ILogger
.
LEVEL_INFO
,
"stop_archive_att
- out
"
);
TangoStateUtils
.
setOn
(
this
,
archivingStatus
);
}
get_logger
().
info
(
"Exiting stop_archive_att()"
);
}
// private void throwDevFailed() throws DevFailed {
...
...
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