Package hec.heclib.dss
Interface DssDataManager
- All Known Implementing Classes:
AbstractDssDataManager,LocalDssDataManager
public interface DssDataManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintintbooleanintintbooleancleanDSSFileName(String inName, stringContainer outName) voidvoidvoidclose()intconvertVersion(String convertFileName) intcopyFile(DssDataManager dataManager, String secondDSSFilename) intcopyRecordsFrom(DssDataManager toDataManager, String toDSSFilename, List<String> pathnameList) intcopyRecordsInto(DssDataManager fromDataManager, String fromDSSFilename, List<String> pathnameList) intcreateNewCatalog(int catalogType) Returns either remote or local dataManagerintbooleandoesDSSFileExist(String DSSFileName) voiddone()Returns either Remote or local call to DSSFileName()DSSFileName(int i) intduplicateRecords(List<String> pathnameList, List<String> newPathnameList) intexportFile(String pathname, File file, String directory) booleanintfileAccessInfo(int[] accessMode, int[] numberAccesses, int[] numberWrites, int[] pidsArray, int[] modesArray, int[] numberPids) booleanvoidintString[]getCatalog(boolean sorted, String pathWithWildChars) getCatalogName(int catalogType) booleangetCondensedCatalog(String pathWithWildChars) gets current dss filenameintgets the version of the dss file opened by the DataManager.Gets the pasteListPathnames attribute of the DssDataManager objectintString[]getPathnameList(boolean forceUpdate) voidgetProcessStatus(int[] numberRecs, int[] currentRec) booleangetRecordInfo(DataReference dataReference, HecDSSRecordInfo recordInfo) booleangetTimeSeriesExtents(String pathname, HecTime start, HecTime end) intgetTSRecordInfo(String pathname, HecTime start, HecTime end, stringContainer units, stringContainer type) booleandefault booleanisRemote()static booleanisRemoteFileName(String dssFileName) booleanisSameFile(String dssFileName) intintopen()intreadData(DataReference dataReference, ArrayContainer arrayContainer) intreadData(DataReference dataReference, DssFileContainer fileContainer) intreadData(DataReference dataReference, GridContainer gridContainer) intreadData(DataReference dataReference, PairedDataContainer pairedDataContainer) intreadData(DataReference dataReference, TextContainer textContainer) intreadData(DataReference dataReference, TimeSeriesCollectionContainer timeSeriesCollectionContainer, boolean trimMissing) default intreadData(DataReference dataReference, TimeSeriesContainer timeSeriesContainer) intreadData(DataReference dataReference, TimeSeriesContainer timeSeriesContainer, boolean trimMissing) intreadData(DataReference dataReference, TinContainer tinContainer) default int[]readData(ArrayList<DataReference> dataReferenceList, ArrayList<TimeSeriesContainer> timeSeriesContainerList, boolean trimMissing) readGriddedData(DSSIdentifier dssId) intreadImage(DataReference dataSet, PhotoViewerInfo info) intreadLocation(DataContainer dataContainer) short[]readRawShorts(String pathname) booleanrecordExists(String pathname) boolean[]recordsExist(List<String> pathnames) intrecordsUpdated(long startTime, List<String> pathnames, List<Long> updateTimes, List<Integer> recordTypes) Retrieves infomation about record updated since the specified time.intrecordType(String pathname) recordTypes(String[] pathname) intrenameRecords(List<String> pathnameList, List<String> newPathnameList) intsearchDSSCatalog(String scanString, List<String> pathnameList) intsearchDSSPaths(String scanString, List<String> pathnameList) voidsetCatalogNeedsUpdate(boolean catalogNeedsUpdate) voidsetDisplayUnitSystem(int unitSystem) default voidsetDSSFileName(String name) Sets the dSSFileName attribute of the DssDataManager objectdefault intsetDSSFileName(String dssFileName, boolean fileMustExist) intsetDSSFileName(String dssFileName, boolean fileMustExist, int dssVersion) Sets the dSSFileName attribute of the DssDataManager objectvoidsetForceNewCatalog(boolean newCatalog) Sets the forceNewCatalog attribute of the DssDataManager objectvoidsetInterrupt(boolean interrupt) voidsetMessageLevel(int level) Sets the messageLevel attribute of the DssDataManager objectvoidsetTimeZone(TimeZone timeZone) voidsetUnit(int unit) Sets the unit attribute of the DssDataManager objectintsqueeze()intintbooleanintwriteData(DataContainer dataContainer) intwriteData(GridContainer gridContainer) intwriteData(PairedDataContainer pairedDataContainer) intwriteData(TextContainer textContainer) default intwriteData(TimeSeriesContainer timeSeriesContainer) intwriteData(TimeSeriesContainer timeSeriesContainer, int regularStoreMethod, int irregularStoreMethod) intwriteFile(File file, DSSPathname pathname, boolean imageFile) intwriteLocation(DataContainer dataContainer) intvoidzinqir(String parameter, stringContainer alpha, int[] numb) voidzquery(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()
-