Package hec.heclib.dss
Interface DssDataManager
- All Known Implementing Classes:
AbstractDssDataManager
,LocalDssDataManager
public interface DssDataManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
int
boolean
int
int
boolean
cleanDSSFileName
(String inName, stringContainer outName) void
void
void
close()
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) int
createNewCatalog
(int catalogType) Returns either remote or local dataManagerint
boolean
doesDSSFileExist
(String DSSFileName) void
done()
Returns either Remote or local call to DSSFileName()DSSFileName
(int i) int
duplicateRecords
(List<String> pathnameList, List<String> newPathnameList) int
exportFile
(String pathname, File file, String directory) boolean
int
fileAccessInfo
(int[] accessMode, int[] numberAccesses, int[] numberWrites, int[] pidsArray, int[] modesArray, int[] numberPids) boolean
void
int
String[]
getCatalog
(boolean sorted, String pathWithWildChars) getCatalogName
(int catalogType) boolean
getCondensedCatalog
(String pathWithWildChars) gets current dss filenameint
gets the version of the dss file opened by the DataManager.Gets the pasteListPathnames attribute of the DssDataManager objectint
String[]
getPathnameList
(boolean forceUpdate) void
getProcessStatus
(int[] numberRecs, int[] currentRec) boolean
getRecordInfo
(DataReference dataReference, HecDSSRecordInfo recordInfo) boolean
getTimeSeriesExtents
(String pathname, HecTime start, HecTime end) int
getTSRecordInfo
(String pathname, HecTime start, HecTime end, stringContainer units, stringContainer type) boolean
default boolean
isRemote()
static boolean
isRemoteFileName
(String dssFileName) boolean
isSameFile
(String dssFileName) int
int
open()
int
readData
(DataReference dataReference, ArrayContainer arrayContainer) int
readData
(DataReference dataReference, DssFileContainer fileContainer) int
readData
(DataReference dataReference, GridContainer gridContainer) int
readData
(DataReference dataReference, PairedDataContainer pairedDataContainer) int
readData
(DataReference dataReference, TextContainer textContainer) int
readData
(DataReference dataReference, TimeSeriesCollectionContainer timeSeriesCollectionContainer, boolean trimMissing) default int
readData
(DataReference dataReference, TimeSeriesContainer timeSeriesContainer) int
readData
(DataReference dataReference, TimeSeriesContainer timeSeriesContainer, boolean trimMissing) int
readData
(DataReference dataReference, TinContainer tinContainer) default int[]
readData
(ArrayList<DataReference> dataReferenceList, ArrayList<TimeSeriesContainer> timeSeriesContainerList, boolean trimMissing) readGriddedData
(DSSIdentifier dssId) int
readImage
(DataReference dataSet, PhotoViewerInfo info) int
readLocation
(DataContainer dataContainer) short[]
readRawShorts
(String pathname) boolean
recordExists
(String pathname) boolean[]
recordsExist
(List<String> pathnames) int
recordsUpdated
(long startTime, List<String> pathnames, List<Long> updateTimes, List<Integer> recordTypes) Retrieves infomation about record updated since the specified time.int
recordType
(String pathname) recordTypes
(String[] pathname) int
renameRecords
(List<String> pathnameList, List<String> newPathnameList) int
searchDSSCatalog
(String scanString, List<String> pathnameList) int
searchDSSPaths
(String scanString, List<String> pathnameList) void
setCatalogNeedsUpdate
(boolean catalogNeedsUpdate) void
setDisplayUnitSystem
(int unitSystem) default void
setDSSFileName
(String name) Sets the dSSFileName attribute of the DssDataManager objectdefault int
setDSSFileName
(String dssFileName, boolean fileMustExist) int
setDSSFileName
(String dssFileName, boolean fileMustExist, int dssVersion) Sets the dSSFileName attribute of the DssDataManager objectvoid
setForceNewCatalog
(boolean newCatalog) Sets the forceNewCatalog attribute of the DssDataManager objectvoid
setInterrupt
(boolean interrupt) void
setMessageLevel
(int level) Sets the messageLevel attribute of the DssDataManager objectvoid
setTimeZone
(TimeZone timeZone) void
setUnit
(int unit) Sets the unit attribute of the DssDataManager objectint
squeeze()
int
int
boolean
int
writeData
(DataContainer dataContainer) int
writeData
(GridContainer gridContainer) int
writeData
(PairedDataContainer pairedDataContainer) int
writeData
(TextContainer textContainer) default int
writeData
(TimeSeriesContainer timeSeriesContainer) int
writeData
(TimeSeriesContainer timeSeriesContainer, int regularStoreMethod, int irregularStoreMethod) int
writeFile
(File file, DSSPathname pathname, boolean imageFile) int
writeLocation
(DataContainer dataContainer) int
void
zinqir
(String parameter, stringContainer alpha, int[] numb) void
zquery
(String parameter, stringContainer alpha, int[] numb) void
-
Method Details
-
isRemoteFileName
-
setDSSFileName
Sets the dSSFileName attribute of the DssDataManager object- Parameters:
name
- The new dSSFileName value
-
setDSSFileName
-
setDSSFileName
Sets the dSSFileName attribute of the DssDataManager object- Parameters:
dssFileName
- The new dSSFileName valuefileMustExist
- The new dSSFileName value- Returns:
- Description of the Returned Value
-
getDssFileVersion
int getDssFileVersion()gets the version of the dss file opened by the DataManager. -
setForceNewCatalog
void setForceNewCatalog(boolean newCatalog) Sets the forceNewCatalog attribute of the DssDataManager object- Parameters:
newCatalog
- The new forceNewCatalog value
-
setMessageLevel
void setMessageLevel(int level) Sets the messageLevel attribute of the DssDataManager object- Parameters:
level
- The new messageLevel value
-
getMessageLevel
int getMessageLevel() -
setUnit
void setUnit(int unit) Sets the unit attribute of the DssDataManager object- Parameters:
unit
- The new unit value
-
fileStats
void fileStats() -
fileAccessInfo
int fileAccessInfo(int[] accessMode, int[] numberAccesses, int[] numberWrites, int[] pidsArray, int[] modesArray, int[] numberPids) -
getLastDeletePathnames
Gets the pasteListPathnames attribute of the DssDataManager object- Returns:
- The pasteListPathnames value
-
dataManager
IHecDSSUtilities dataManager()Returns either remote or local dataManager- Returns:
- Returns either HecDSSUtilitiesRemote or HecDSSUtilities
-
setCatalogNeedsUpdate
void setCatalogNeedsUpdate(boolean catalogNeedsUpdate) -
getCatalogNeedsUpdate
boolean getCatalogNeedsUpdate() -
DssFileManagerStatus
List<HecDSSFileData> DssFileManagerStatus() -
checkForSevereError
boolean checkForSevereError() -
checkForError
int checkForError() -
setDisplayUnitSystem
void setDisplayUnitSystem(int unitSystem) -
setTimeZone
-
getTimeZone
TimeZone getTimeZone() -
createNewCatalog
int createNewCatalog(int catalogType) -
getCatalogName
-
recordsUpdated
int recordsUpdated(long startTime, List<String> pathnames, List<Long> updateTimes, List<Integer> recordTypes) 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.
-
recordExists
-
recordsExist
-
clearSevereError
void clearSevereError() -
done
void done() -
lastSevereErrorMessage
DSSErrorMessage lastSevereErrorMessage() -
lastErrorMessage
DSSErrorMessage lastErrorMessage() -
allSevereErrorMessages
List<DSSErrorMessage> allSevereErrorMessages() -
cancelProcess
void cancelProcess() -
cancelSqueeze
void cancelSqueeze() -
getProcessStatus
void getProcessStatus(int[] numberRecs, int[] currentRec) -
setInterrupt
void setInterrupt(boolean interrupt) -
clearStatus
void clearStatus() -
cleanDSSFileName
-
close
void close() -
isExplicitlyClosed
boolean isExplicitlyClosed() -
checkAllPathnames
int checkAllPathnames() -
checkLinks
int checkLinks() -
checkPathnameBins
int checkPathnameBins() -
copyFile
-
copyRecordsFrom
-
copyRecordsInto
int copyRecordsInto(DssDataManager fromDataManager, String fromDSSFilename, List<String> pathnameList) -
delete
-
doesDSSFileExist
-
duplicateRecords
-
getDSSFileName
String getDSSFileName()gets current dss filename- Returns:
- Returns DSS filename
-
DSSFileName
String DSSFileName()Returns either Remote or local call to DSSFileName()- Returns:
- Returns DSS filename
-
isSameFile
-
fileOpened
boolean fileOpened() -
open
int open() -
fileAccessible
boolean fileAccessible() -
getTSRecordInfo
int getTSRecordInfo(String pathname, HecTime start, HecTime end, stringContainer units, stringContainer type) -
getTimeSeriesExtents
-
numberRecords
int numberRecords() -
readData
-
readData
default int[] readData(ArrayList<DataReference> dataReferenceList, ArrayList<TimeSeriesContainer> timeSeriesContainerList, boolean trimMissing) -
readData
int readData(DataReference dataReference, TimeSeriesContainer timeSeriesContainer, boolean trimMissing) - Parameters:
trimMissing
- Trim missing data from start and end of regular time series
-
readData
int readData(DataReference dataReference, TimeSeriesCollectionContainer timeSeriesCollectionContainer, boolean trimMissing) -
readData
-
readData
-
readData
-
readData
-
readData
-
readData
-
readRawShorts
-
getRecordInfo
-
writeData
-
readGriddedData
-
recordType
-
recordTypes
-
renameRecords
-
getPathnameList
-
getCatalog
-
searchDSSCatalog
-
searchDSSPaths
-
getCondensedCatalog
List<CondensedReference> getCondensedCatalog() -
getCondensedCatalog
-
forceMultiUserAccess
int forceMultiUserAccess() -
squeeze
int squeeze() -
convertVersion
-
undelete
-
undoLastDelete
int undoLastDelete() -
writeAccess
boolean writeAccess() -
writeData
-
writeData
-
writeData
-
writeLocation
-
writeData
-
writeData
int writeData(TimeSeriesContainer timeSeriesContainer, int regularStoreMethod, int irregularStoreMethod) -
writeFile
- Throws:
Exception
-
exportFile
- Throws:
Exception
-
readImage
- Throws:
Exception
-
readLocation
- Throws:
Exception
-
zinqir
-
zinqir
-
zset
-
DSSFileName
-
zquery
-
isRemote
default boolean isRemote()
-