Issue #2216 Removetime stamp filer when copying to a hdf5 file.
Change-Id: Ib3ff230e410a73ea63c5d5f5dc2a27efa663921f Former-commit-id:be52979c8c
[formerly1978a71986
] [formerlye0ebe8fa37
] [formerlybe52979c8c
[formerly1978a71986
] [formerlye0ebe8fa37
] [formerly96092b3ea8
[formerlye0ebe8fa37
[formerly c8a179b6e7962ff2ac5aa05a31e745c2c2e63ef3]]]] Former-commit-id:96092b3ea8
Former-commit-id:e35c1f793c
[formerly552005fd8d
] [formerly 9d82426b7299d439657afae87ec1b64b07eb0aee [formerly59c77e70f3
]] Former-commit-id: efdf08e448e71f13e61185fa2211441cb5ec6a6f [formerly3fca397fc1
] Former-commit-id:e01f1194ec
This commit is contained in:
parent
3a21a9eb6c
commit
2aa41319ce
1 changed files with 3 additions and 6 deletions
|
@ -43,6 +43,7 @@ import com.raytheon.uf.edex.maintenance.archive.config.DataArchiveConfig;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Dec 8, 2011 njensen Initial creation
|
* Dec 8, 2011 njensen Initial creation
|
||||||
* Jan 14, 2013 1469 bkowal Removed the hdf5 data directory.
|
* Jan 14, 2013 1469 bkowal Removed the hdf5 data directory.
|
||||||
|
* Jul 23, 2013 2216 rferrel Removed the time stamp filter in hdf5 copy.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -68,12 +69,8 @@ public class DataStoreArchiver {
|
||||||
String outputDir = archiveDir; // + dirs of hdf5 file
|
String outputDir = archiveDir; // + dirs of hdf5 file
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// data must be older than 30 minutes, and no older than hours
|
// Do not perform time stamp check.
|
||||||
// to keep hours need to lookup plugin and see if compression
|
ds.copy(outputDir, compression, null, 0, 0);
|
||||||
// matches, or embed in configuration the compression level on
|
|
||||||
// archive, but would still need to lookup plugin
|
|
||||||
ds.copy(outputDir, compression, "lastArchived", 1800000,
|
|
||||||
conf.getHoursToKeep() * 60000 + 1800000);
|
|
||||||
} catch (StorageException e) {
|
} catch (StorageException e) {
|
||||||
statusHandler.handle(Priority.PROBLEM, e.getLocalizedMessage());
|
statusHandler.handle(Priority.PROBLEM, e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue