Package hec.heclib.dss
Class LocalDssDataManager
java.lang.Object
hec.heclib.dss.AbstractDssDataManager
hec.heclib.dss.LocalDssDataManager
- All Implemented Interfaces:
DssDataManager
Provides a class that can access the HecDataManager (actually
HecDSSUtilities)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
cleanDSSFileName
(String inName, stringContainer outName) void
int
convertVersion
(String convertFileName) int
copyFile
(DssDataManager dataManager, String secondDSSFilename) int
copyRecordsFrom
(DssDataManager toDataManager, String toDSSFilename, List<String> pathnameList) int
copyRecordsInto
(DssDataManager fromDataManager, String fromDSSFilename, List<String> pathnameList) Returns either remote or local dataManagerint
boolean
doesDSSFileExist
(String DSSFileName) int
exportFile
(String pathname, File file, String directory) int
fileAccessInfo
(int[] accessMode, int[] numberAccesses, int[] numberWrites, int[] pidsArray, int[] modesArray, int[] numberPids) String[]
getCatalog
(boolean sorted, String pathWithWildChars) getCondensedCatalog
(String pathWithWildChars) protected List
getGriddedDataLocal
(DSSIdentifier dssId) Reads a Grid from a DSS file using a DSSIdentifierGets the pasteListPathnames attribute of the DssDataManager objectint
void
getProcessStatus
(int[] numberRecs, int[] currentRec) boolean
getRecordInfo
(DataReference dataReference, HecDSSRecordInfo recordInfo) int
readData
(DataReference dataReference, ArrayContainer arrayContainer) int
readData
(DataReference dataReference, DssFileContainer fileContainer) int
readData
(DataReference dataReference, PairedDataContainer pairedDataContainer) int
readData
(DataReference dataReference, TextContainer textContainer) int
readData
(DataReference dataReference, TimeSeriesCollectionContainer timeSeriesCollectionContainer, boolean trimMissing) int
readData
(DataReference dataReference, TimeSeriesContainer timeSeriesContainer, boolean trimMissing) readGriddedData
(DSSIdentifier dssId) int
readImage
(DataReference dataSet, PhotoViewerInfo info) int
readLocation
(DataContainer dataContainer) short[]
readRawShorts
(String pathname) protected List
readTinData
(DSSIdentifier dssId, TinContainer tinContainer) int
recordsUpdated
(long startTime, List<String> pathnames, List<Long> updateTimes, List<Integer> recordTypes) Retrieves infomation about record updated since the specified time.void
setMessageLevel
(int level) Sets the messageLevel attribute of the DssDataManager objectvoid
setUnit
(int unit) Sets the unit attribute of the DssDataManager objectint
int
int
writeData
(GridContainer gridContainer) int
writeData
(PairedDataContainer pairedDataContainer) int
writeData
(TextContainer textContainer) int
writeData
(TimeSeriesContainer timeSeriesContainer, int regularStoreMethod, int irregularStoreMethod) int
writeFile
(File file, DSSPathname pathname, boolean imageFile) int
writeLocation
(DataContainer dataContainer) Methods inherited from class hec.heclib.dss.AbstractDssDataManager
allSevereErrorMessages, cancelProcess, cancelSqueeze, checkAllPathnames, checkForSevereError, checkLinks, checkPathnameBins, clearStatus, close, createNewCatalog, done, DSSFileName, DSSFileName, duplicateRecords, fileAccessible, fileOpened, fileStats, forceMultiUserAccess, getCatalogName, getCatalogNeedsUpdate, getColor, getComponent, getCondensedCatalog, getDisplayUnitSystem, getDSSFileName, getDssFileVersion, getPathnameList, getTabNum, getTimeSeriesExtents, getTimeZone, getTitle, getTSRecordInfo, isExplicitlyClosed, isSameFile, lastSevereErrorMessage, numberRecords, open, readData, readData, recordExists, recordsExist, recordType, recordTypes, renameRecords, searchDSSCatalog, searchDSSPaths, setCatalogNeedsUpdate, setDisplayUnitSystem, setDSSFileName, setForceNewCatalog, setInterrupt, setTimeZone, squeeze, writeAccess, writeData, zinqir, zinqir, zquery, zset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hec.heclib.dss.DssDataManager
isRemote, readData, readData, setDSSFileName, setDSSFileName, writeData
-
Constructor Details
-
LocalDssDataManager
public LocalDssDataManager()Constructor for the LocalDssDataManager object
-
-
Method Details
-
setMessageLevel
public void setMessageLevel(int level) Description copied from interface:DssDataManager
Sets the messageLevel attribute of the DssDataManager object- Parameters:
level
- The new messageLevel value
-
getMessageLevel
public int getMessageLevel() -
setUnit
public void setUnit(int unit) Description copied from interface:DssDataManager
Sets the unit attribute of the DssDataManager object- Parameters:
unit
- The new unit value
-
fileAccessInfo
public int fileAccessInfo(int[] accessMode, int[] numberAccesses, int[] numberWrites, int[] pidsArray, int[] modesArray, int[] numberPids) -
getLastDeletePathnames
Description copied from interface:DssDataManager
Gets the pasteListPathnames attribute of the DssDataManager object- Returns:
- The pasteListPathnames value
-
dataManager
Description copied from interface:DssDataManager
Returns either remote or local dataManager- Specified by:
dataManager
in interfaceDssDataManager
- Overrides:
dataManager
in classAbstractDssDataManager
- Returns:
- Returns either HecDSSUtilitiesRemote or HecDSSUtilities
-
DssFileManagerStatus
-
recordsUpdated
public int recordsUpdated(long startTime, List<String> pathnames, List<Long> updateTimes, List<Integer> recordTypes) Description copied from interface:DssDataManager
Retrieves infomation about record updated since the specified time.Any of the vector parameters may be null if that information is not required. Any of the vectors that are not null are cleared before being populated.
- Parameters:
startTime
- Time after which to report updated records - in Java millisecondspathnames
- The list of pathnames of the records that have been updated - may be null.updateTimes
- The list of update times of the records that have been updated - may be null.recordTypes
- The list of types of the records that have been updated - may be null.- Returns:
- Zero if successful.
-
checkForError
public int checkForError() -
clearSevereError
public void clearSevereError() -
lastErrorMessage
-
getProcessStatus
public void getProcessStatus(int[] numberRecs, int[] currentRec) -
cleanDSSFileName
-
copyFile
-
copyRecordsFrom
public int copyRecordsFrom(DssDataManager toDataManager, String toDSSFilename, List<String> pathnameList) -
copyRecordsInto
public int copyRecordsInto(DssDataManager fromDataManager, String fromDSSFilename, List<String> pathnameList) -
delete
-
doesDSSFileExist
-
readData
public int readData(DataReference dataReference, TimeSeriesContainer timeSeriesContainer, boolean trimMissing) trimMissing
- Trim missing data from start and end of regular time series
-
readData
public int readData(DataReference dataReference, TimeSeriesCollectionContainer timeSeriesCollectionContainer, boolean trimMissing) -
readData
-
readData
-
readData
-
readData
-
readRawShorts
- Specified by:
readRawShorts
in interfaceDssDataManager
- Overrides:
readRawShorts
in classAbstractDssDataManager
-
getRecordInfo
-
writeData
-
readGriddedData
-
readTinData
- Specified by:
readTinData
in classAbstractDssDataManager
-
getGriddedDataLocal
Reads a Grid from a DSS file using a DSSIdentifier- Parameters:
dssId
-- Returns:
-
getCatalog
-
getCondensedCatalog
-
convertVersion
-
undelete
-
undoLastDelete
public int undoLastDelete() -
writeData
-
writeData
-
writeLocation
-
writeData
public int writeData(TimeSeriesContainer timeSeriesContainer, int regularStoreMethod, int irregularStoreMethod) -
writeFile
- Throws:
Exception
-
exportFile
- Throws:
Exception
-
readImage
- Throws:
Exception
-
readLocation
- Throws:
Exception
-