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
ede2f972
Commit
ede2f972
authored
8 years ago
by
Gwenaelle ABEILLE
Browse files
Options
Downloads
Patches
Plain Diff
release hdbtdbArchivingServers-2.5.8
parent
2a8fc946
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/main/java/TdbArchiver/Collector/Tools/FileTools.java
+10
-6
10 additions, 6 deletions
src/main/java/TdbArchiver/Collector/Tools/FileTools.java
with
11 additions
and
7 deletions
pom.xml
+
1
−
1
View file @
ede2f972
...
...
@@ -9,7 +9,7 @@
</parent>
<groupId>
fr.soleil.deviceservers
</groupId>
<artifactId>
hdbtdbArchivingServers
</artifactId>
<version>
2.5.
7-SNAPSHOT
</version>
<version>
2.5.
8
</version>
<name>
hdbtdbArchivingServers
</name>
<developers>
<developer>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/TdbArchiver/Collector/Tools/FileTools.java
+
10
−
6
View file @
ede2f972
...
...
@@ -232,6 +232,7 @@ import fr.soleil.archiving.hdbtdb.api.tools.SpectrumEvent_RO;
import
fr.soleil.archiving.hdbtdb.api.tools.SpectrumEvent_RW
;
public
class
FileTools
{
private
static
final
String
NAN_VALUE
=
"NAN"
;
private
final
int
dataFormat
;
private
final
int
writable
;
private
String
fileName
;
...
...
@@ -302,7 +303,7 @@ public class FileTools {
exportFileToDB
(
fileName
);
}
}
catch
(
final
IOException
e
)
{
StringBuilder
messageBuilder
=
new
StringBuilder
();
final
StringBuilder
messageBuilder
=
new
StringBuilder
();
messageBuilder
.
append
(
"ERROR !! "
).
append
(
"\r\n"
).
append
(
"\t Origin : \t "
).
append
(
"FileTools.initFile"
)
.
append
(
"\r\n"
).
append
(
"\t Reason : \t "
).
append
(
e
.
getClass
().
getName
()).
append
(
"\r\n"
)
.
append
(
"\t Description : \t "
).
append
(
e
.
getMessage
()).
append
(
"\r\n"
)
...
...
@@ -334,10 +335,13 @@ public class FileTools {
if
(
isValidLine
(
timeStampValue
))
{
doExport
();
if
(
dbProxy
.
getDataBase
().
isOracle
())
{
if
(
readValue
==
null
||
GlobalConst
.
ARCHIVER_NULL_VALUE
.
equalsIgnoreCase
(
readValue
.
trim
()))
{
// XXX : regression for oracle that do no more support NaN. cf JIRA SOLEIL CTRLDESK-2282
if
(
readValue
==
null
||
readValue
.
equalsIgnoreCase
(
NAN_VALUE
)
||
GlobalConst
.
ARCHIVER_NULL_VALUE
.
equalsIgnoreCase
(
readValue
.
trim
()))
{
readValue
=
GlobalConst
.
ORACLE_NULL_VALUE
;
}
if
(
writeValue
==
null
||
GlobalConst
.
ARCHIVER_NULL_VALUE
.
equalsIgnoreCase
(
writeValue
.
trim
()))
{
if
(
writeValue
==
null
||
writeValue
.
equalsIgnoreCase
(
NAN_VALUE
)
||
GlobalConst
.
ARCHIVER_NULL_VALUE
.
equalsIgnoreCase
(
writeValue
.
trim
()))
{
writeValue
=
GlobalConst
.
ORACLE_NULL_VALUE
;
}
if
(
scalarEvent
.
getDataType
()
==
TangoConst
.
Tango_DEV_STRING
)
{
...
...
@@ -415,7 +419,7 @@ public class FileTools {
logger
.
error
(
"IOException for "
+
scalarEvent
.
getAttributeCompleteName
());
throw
new
NoRetryException
(
"File access error"
,
e
.
getClass
().
getName
(),
null
,
ErrSeverity
.
ERR
,
e
.
getMessage
(),
"FileTools.processEventScalar"
,
e
);
}
catch
(
Exception
e
)
{
}
catch
(
final
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"Unknow Exception for "
+
scalarEvent
.
getAttributeCompleteName
());
if
(
e
instanceof
ArchivingException
)
{
...
...
@@ -668,7 +672,7 @@ public class FileTools {
}
}
catch
(
final
IOException
e
)
{
StringBuilder
messageBuilder
=
new
StringBuilder
();
final
StringBuilder
messageBuilder
=
new
StringBuilder
();
messageBuilder
.
append
(
"ERROR !! "
).
append
(
"\r\n"
).
append
(
"\t Origin : \t "
)
.
append
(
"FileTools.processEventImage"
).
append
(
"\r\n"
).
append
(
"\t Reason : \t "
)
.
append
(
e
.
getClass
().
getName
()).
append
(
"\r\n"
).
append
(
"\t Description : \t "
)
...
...
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