Package hec.heclib.dss
Class HecDssCatalog
java.lang.Object
hec.heclib.dss.HecDSSFileAccess
hec.heclib.dss.HecDssCatalog
- All Implemented Interfaces:
HecDssListener,Cloneable,EventListener
- Direct Known Subclasses:
HecDSSDataAttributes
HecDssCatalog has methods to query or inventory the contents of a DSS file,
supports listeners that report on modifications to the DSS file
Primary calls that are:
Primary calls that are:
getCatalog(boolean, String)getCatalog(boolean, String, int, boolean)getCondensedCatalog(String)getCondensedCatalog(String, int, boolean)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.protected static booleanprotected EventListenerListprotected Hashtable<HecDssListener,Thread> protected booleanprotected int[]protected intprotected intprotected int[]protected longprotected long[]protected booleanprotected booleanprotected booleanprotected intprotected long[]protected long[]protected String[]protected Stringprotected int[]protected intprotected intFields inherited from class hec.heclib.dss.HecDSSFileAccess
_defaultDirectory, _defaultDSSFileName, _fileData, _maxNumberReopensForError, _numberReopensForError, _severeErrorIndex, _severeErrorMessages, _severeErrorRaised, ABBREVIATED_CATALOG, CONDENSED_CATALOG, FULL_CATALOG, MESS_LEVEL_CRITICAL, MESS_LEVEL_GENERAL, MESS_LEVEL_INTERNAL_DIAG_1, MESS_LEVEL_INTERNAL_DIAG_2, MESS_LEVEL_NONE, MESS_LEVEL_TERSE, MESS_LEVEL_USER_DIAG, MESS_METHOD_ALIAS, MESS_METHOD_CATALOG, MESS_METHOD_CHECK, MESS_METHOD_COPY, MESS_METHOD_FILE_CHECK, MESS_METHOD_GENERAL, MESS_METHOD_GET, MESS_METHOD_GLOBAL, MESS_METHOD_JNI, MESS_METHOD_LOCKING, MESS_METHOD_OPEN, MESS_METHOD_PERM, MESS_METHOD_PUT, MESS_METHOD_READ, MESS_METHOD_TS_READ, MESS_METHOD_TS_WRITE, MESS_METHOD_UTILITY, MESS_METHOD_WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHecDssListener(HecDssListener listener) voidaddHecDssListener(HecDssListener listener, HecDssEventType requestedChangeType) voidaddHecDssListener(HecDssListener listener, String pathWithWild) voidaddHecDssListener(HecDssListener listener, String[] pathnames) voidaddHecDssListener(HecDssListener listener, String[] pathnames, HecDssEventType requestedEventType) voidaddHecDssListener(HecDssListener listener, String pathWithWild, HecDssEventType requestedEventType) protected voidaddHecDssListener(HecDssListener listener, String pathWithWild, String[] pathnames, HecDssEventType requestedEventType) protected voidbuildCondensedList(Vector<CondensedReference> condensedList) String[]protected intcallCatalog(String pathnameFilter) Constructs the (optionally filtered) internal pathname list from the DSS file.protected intcallCatalog(String pathnameFilter, int matcherType, boolean ignoreCase) Constructs the (optionally filtered) internal pathname list from the DSS file.protected intcallCatalog(Pattern pattern) Constructs the (optionally filtered) internal pathname list from the DSS file.intcallCatalogOriginal(String pathWithWildChars) Constructs the (optionally filtered) internal pathname list from the DSS file.intcatalogFile(String catalogName, boolean sorted, String pathWithWildChars) protected intcleanCatalogPart(String inPart, StringBuffer outPart) protected voidclone()static booleancompareCondensedPaths(String pathname1, String pathname2) Determine if the only difference between two pathnames is the D (date) part (and that part appears to be a date)intcreateNewCatalog(int catalogType) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadString[]expandPathname(String pathWithWild) Takes either a pathname with wild charaters, or a time series pathname with a implied time window (date span in D part) and returns the full list of pathnames for the input.protected voidfireHecDssEvent(HecDssEventType event) String[]getCatalog(boolean sorted) Obtain a catalog (list of pathnames) in a DSS file.String[]getCatalog(boolean sorted, String pathnameFilter) Obtain a catalog (list of pathnames) in a DSS file.String[]getCatalog(boolean sorted, String pathnameFilter, int matcherType, boolean ignoreCase) Obtain a catalog (list of pathnames) in a DSS filegetCatalogName(int catalogType) protected long[]getCondensedCatalog(String pathnameFilter) Constructs and returns a condensed cataloggetCondensedCatalog(String pathnameFilter, int matcherType, boolean ignoreCase) Constructs and returns a condensed catalogint[]protected static voidgetEPartLoc(String pathname, int[] partLocs) protected int[]protected int[]getMaximumPartLengths(String[] paths) String[]getPathnameList(boolean forceUpdate) Deprecated.protected intgetPathnameList(String instructions, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadprotected intgetPathnameList6(String instructions, Vector<String> pathnameList) protected intgetPathnameList7(String instructions, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) instead NOT THREAD SAFE (only one thread can call this at a time)String[]getPathnameListAndDates(intArrayContainer startDatesContainer, intArrayContainer endDatesContainer) String[]getPathnameListType(int statusWantedForList, int typeWantedStart, int typeWantedEnd) String[]String[]getSortedPathnameList(intArrayContainer startDatesContainer, intArrayContainer endDatesContainer, boolean forceUpdate) int[]intbooleanvoidhecDssEventPerformed(HecDssEventType source) booleanprotected booleanisPathnamePartsString(String maybePathnameParts) intDeprecatedpathname()protected StringpathNamePartsToRegex(String pathnameParts) protected StringprocessSearchParts(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadString[]voidremoveHecDssListener(HecDssListener listener) intsearchDSSCatalog(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart, Vector pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadintsearchDSSCatalog(String scanString, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadintsearchDSSPaths(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart, Vector pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadintsearchDSSPaths(String scanString, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadprotected voidsetCatalogSortAddresses(long[] sortAddresses) voidsetForceNewCatalog(boolean forceNewCatalog) voidsetMaxNumberToRetrieve(int maxNumber) voidsetPathnameList(String[] pathnames) voidsetPathnameList(List<String> pathnames) voidsetPathWithWildChars(String pathWithWildChars, boolean getCollection) voidsetStatusWanted(int status) voidsetTypeWanted(int typeStart, int typeEnd) voidsetUseCollectionGroups(boolean useCollectionGroups) String[]sort()intsortCatalog(String pathWithWildChar) protected ThreadstartObserverThread(String pathWithWildChars, String[] pathnameList, HecDssEventType requestedEventType) String[]String[]whatChanged(String pathWithWild) String[]whatChangedCompare(HecDssCatalog dssCatalogBefore, String pathWithWild, boolean boolUseCRC) intintwhatChangedSetStart(HecDssCatalog catalog, String pathnameWithWildChars, boolean useCRCforData) intwhatChangedSetStart(String pathnameWithWildChars, boolean useCRCforData) protected StringwildCharsToRegex(String pathnameWithWild) booleanwriteCatalog(String dssFileName, String catalogName, String[] pathnames) Methods inherited from class hec.heclib.dss.HecDSSFileAccess
allSevereErrorMessages, appendNameToDirectory, catchSevereErrors, checkAccessReset, checkAllPathnames, checkForError, checkForSevereError, checkForSevereError, checkForSevereFileError, checkLinks, checkPathnameBins, checkSystemError, cleanDSSFileName, clearError, clearSevereError, clearSevereError, clearStatus, close, close, closeAll, closeAllFiles, closeAndClear, closeDSSFile, debugLook, debugLook7, debugModify, defaultDirectory, defaultDSSFileName, doesDSSFileExist, done, DSSFileName, fileAccessible, fileOpened, fileStatus, flushMessages, forceMultiUserAccess, getCollectionList, getCollectionSequenceList, getCollectionSize, getDssFileVersion, getDssFileVersion, getFileInfo, getFileLastWriteTime, getFileLastWriteTimeMillis, getIrregBeginningDate, getLastError, getMessageLevel, getNumberRecords, getProcessStatus, getTimeSeriesExtents, getTSRecordInfo, isFileRemote, lastSevereErrorMessage, nextTimeSeriesPathname, numberRecords, open, open, processStatus, requestSecondAccess, setDefaultDirectory, setDefaultDSSFileName, setDss, setDSSFileName, setDSSFileName, setDSSFileName, setDSSFileName, setInterrupt, setMessageLevel, setSpaceReclaimation, setSpaceReclaimationPerm, setUnit, writeAccess, zgetMessageLevel, zinqir, zinqir, zinquire, zmessage, zquery, zquery, zset, zsetFile, zsetMessageLevel
-
Field Details
-
pathnameList
-
pathnameWithWild
-
listIsComplete
protected boolean listIsComplete -
listIsSorted
protected boolean listIsSorted -
listIsCollection
protected boolean listIsCollection -
_useCollectionGroups
protected boolean _useCollectionGroups -
_forceNewCatalog
protected static boolean _forceNewCatalog -
_listenerList
-
_observerThreads
-
_catalogName
Deprecated. -
statusWanted
protected int statusWanted -
statusRead
protected int statusRead -
maxNumberToRetrieve
protected int maxNumberToRetrieve -
dataTypeStart
protected int dataTypeStart -
dataTypeEnd
protected int dataTypeEnd -
startDates
protected int[] startDates -
endDates
protected int[] endDates -
pathnameHash
protected long[] pathnameHash -
lastWriteTimeRecord
protected long[] lastWriteTimeRecord -
crcValues
protected int[] crcValues -
lastWriteTimeFile
protected long lastWriteTimeFile -
pathnameAddresses
protected long[] pathnameAddresses
-
-
Constructor Details
-
HecDssCatalog
-
HecDssCatalog
public HecDssCatalog()
-
-
Method Details
-
pathname
-
getCatalog
Obtain a catalog (list of pathnames) in a DSS file.- Parameters:
sorted- when true returns sorted list of pathnames Sort order is stored internally, so subsequent sorts can be faster.pathnameFilter- The pathname filter to use. If not null (no filtering), it may be one of:
All pathname matching is performed ignoring character caseFilter Type Description Rules Examples Wildcards Pseudo pathname with optional "*" and "?" wildcard characters anywhere. - '*' character matches zero or more characters, including '/'
- '?' character matches one character, including '/'
/*/*/Flow*
Any A, B, D, E, and F parts, C part starts with Flow*Flow*
Pathname contains Flow in any part
Pathname Parts Specified pathname parts (can include wildcard characters "*" and "?") - Filter contains A=... B=... etc for A-F parts
- Unspecified parts match anything, same as specifying "*"
- Interior spaces are preserved, but quotes must be used to preserve beginning or trailing spaces
C=Flow*
Any A, B, D, E, and F parts, C part starts with FlowB = Green River F = " Trial Run "
Any A, C, D, and E parts, B part is Green River, F part is " Trial Run " (spaces preserved)
- Returns:
- The internal list of pathnames (not a copy), as generated by
callCatalog(String). To force pathname matching to be performed in the native library, callcallCatalogOriginal(String)before calling this method.
-
getCatalog
Obtain a catalog (list of pathnames) in a DSS file. No filtering will be performed on the catalog- Parameters:
sorted- when true returns sorted list of pathnames Sort order is stored internally, so subsequent sorts can be faster.- Returns:
- The internal list of pathnames (not a copy), as generated by
callCatalog(String).
-
getCatalog
public String[] getCatalog(boolean sorted, String pathnameFilter, int matcherType, boolean ignoreCase) Obtain a catalog (list of pathnames) in a DSS file- Parameters:
sorted- when true returns sorted list of pathnames Sort order is stored internally, so subsequent sorts can be faster.pathnameFilter- The pathname filter to use. If not null (no filtering), it may be one of:Filter Type Description Rules Examples Wildcards Pseudo pathname with optional "*" and "?" wildcard characters. - '*' character matches zero or more characters, including '/'
- '?' character matches one character, including '/'
/*/*/Flow*
Any A, B, D, E, and F parts, C part starts with Flow*Flow*
Pathname contains Flow in any part
Regular Expressions Pseudo pathname with regular expressions Java regular expressions are used /*/*/(Flow|Stage).*
Any A, B, D, E, and F parts, C part starts with Flow or Stage.*(Flow|Stage).*
Pathname contains Flow or Stage in any part
Pathname Parts Specified pathname parts (can include wildcard characters or regular expressions) - Filter contains A=... B=... etc for A-F parts
- Unspecified parts match anything, same as specifying wildcard "*" or regular expression ".*"
- Interior spaces are preserved, but quotes must be used to preserve beginning or trailing spaces
C=Flow*
(if matcherType ==DssPathnameMatcher.MATCHER_TYPE_GLOB) Any A, B, D, E, and F parts, C part starts with FlowC=(Flow|Stage).*
(if matcherType ==DssPathnameMatcher.MATCHER_TYPE_REGEX) Any A, B, D, E, and F parts, C part starts with Flow or ElevB = Green River F = " Trial Run "
Any A, C, D, and E parts, B part is Green River, F part is " Trial Run " (spaces preserved)
matcherType- Specifies whether the pathname filter contains wildcards or regular expressions. Must be one ofDssPathnameMatcher.MATCHER_TYPE_GLOBDssPathnameMatcher.MATCHER_TYPE_REGEX
- Returns:
- The internal list of pathnames (not a copy), as generated by
callCatalog(String, int, boolean). To force pathname matching to be performed in the native library, callcallCatalogOriginal(String)before calling this method.
-
getCondensedCatalog
Constructs and returns a condensed catalog- Parameters:
pathnameFilter- The pathname filter to use. If not null (no filtering), it may be one of:Filter Type Description Rules Examples Wildcards Pseudo pathname with optional "*" and "?" wildcard characters anywhere. - '*' character matches zero or more characters, including '/'
- '?' character matches one character, including '/'
/*/*/Flow*
Any A, B, D, E, and F parts, C part starts with Flow*Flow*
Pathname contains Flow in any part
Pathname Parts Specified pathname parts (can include wildcard characters "*" and "?") - Filter contains A=... B=... etc for A-F parts
- Unspecified parts match anything, same as specifying "*"
- Interior spaces are preserved, but quotes must be used to preserve beginning or trailing spaces
C=Flow*
Any A, B, D, E, and F parts, C part starts with FlowB = Green River F = " Trial Run "
Any A, C, D, and E parts, B part is Green River, F part is " Trial Run " (spaces preserved)
- Returns:
- Condensed catalog as generated by
callCatalog(String). To force pathname matching to be performed in the native library, callcallCatalogOriginal(String)before calling this method.
-
getCondensedCatalog
public CondensedReference[] getCondensedCatalog(String pathnameFilter, int matcherType, boolean ignoreCase) Constructs and returns a condensed catalog- Parameters:
pathnameFilter- The pathname filter to use. If not null (no filtering), it may be one of:Filter Type Description Rules Examples Wildcards Pseudo pathname with optional "*" and "?" wildcard characters. - '*' character matches zero or more characters, including '/'
- '?' character matches one character, including '/'
/*/*/Flow*
Any A, B, D, E, and F parts, C part starts with Flow*Flow*
Pathname contains Flow in any part
Regular Expressions Pseudo pathname with regular expressions Java regular expressions are used /*/*/(Flow|Stage).*
Any A, B, D, E, and F parts, C part starts with Flow or Stage.*(Flow|Stage).*
Pathname contains Flow or Stage in any part
Pathname Parts Specified pathname parts (can include wildcard characters or regular expressions) - Filter contains A=... B=... etc for A-F parts
- Unspecified parts match anything, same as specifying wildcard "*" or regular expression ".*"
- Interior spaces are preserved, but quotes must be used to preserve beginning or trailing spaces
C=Flow*
(if matcherType ==DssPathnameMatcher.MATCHER_TYPE_GLOB) Any A, B, D, E, and F parts, C part starts with FlowC=(Flow|Stage).*
(if matcherType ==DssPathnameMatcher.MATCHER_TYPE_REGEX) Any A, B, D, E, and F parts, C part starts with Flow or ElevB = Green River F = " Trial Run "
Any A, C, D, and E parts, B part is Green River, F part is " Trial Run " (spaces preserved)
matcherType- Specifies whether the pathname filter contains wildcards or regular expressions. Must be one ofDssPathnameMatcher.MATCHER_TYPE_GLOBDssPathnameMatcher.MATCHER_TYPE_REGEX
ignoreCase- Specifies whether pathname matching is to be performed with or without considering character case- Returns:
- Condensed catalog as generated by
callCatalog(String, int, boolean). To force pathname matching to be performed in the native library, callcallCatalogOriginal(String)before calling this method.
-
catalogFile
-
setPathWithWildChars
-
setStatusWanted
public void setStatusWanted(int status) -
getStatusRead
public int getStatusRead() -
setMaxNumberToRetrieve
public void setMaxNumberToRetrieve(int maxNumber) -
getStartDates
public int[] getStartDates() -
getEndDates
public int[] getEndDates() -
getPathnames
-
setTypeWanted
public void setTypeWanted(int typeStart, int typeEnd) -
setForceNewCatalog
public void setForceNewCatalog(boolean forceNewCatalog) -
setUseCollectionGroups
public void setUseCollectionGroups(boolean useCollectionGroups) -
getUseCollectionGroups
public boolean getUseCollectionGroups() -
wildCharsToRegex
-
isPathnamePartsString
-
pathNamePartsToRegex
-
callCatalogOriginal
Constructs the (optionally filtered) internal pathname list from the DSS file. Pathname matching is performed in the native library.- Parameters:
pathWithWildChars- Pathnames match, using "*" as wild characters on either end of pathname parts, or "null" to return all pathnames (usual case)- null - return all pathnames
- /American/Fair Oaks/*Flow*//*/1day/*/ - Any C part containing "flow" (Also can use "*Flow" or "Flow*", but not "Flow*Out")
- Returns:
- -4 if the object cannot access the DSS file, or otherwise the status from
Heclib.zcatalog(int[], HecDssCatalog)
-
callCatalog
Constructs the (optionally filtered) internal pathname list from the DSS file. Pathname matching is performed in Java.- Parameters:
pathnameFilter- The pathname filter to use. If not null (no filtering), it may be one of:
All pathname matching is performed ignoring character caseFilter Type Description Rules Examples Wildcards Pseudo pathname with optional "*" and "?" wildcard characters anywhere. - '*' character matches zero or more characters, including '/'
- '?' character matches one character, including '/'
/*/*/Flow*
Any A, B, D, E, and F parts, C part starts with Flow*Flow*
Pathname contains Flow in any part
Pathname Parts Specified pathname parts (can include wildcard characters "*" and "?") - Filter contains A=... B=... etc for A-F parts
- Unspecified parts match anything, same as specifying "*"
- Interior spaces are preserved, but quotes must be used to preserve beginning or trailing spaces
C=Flow*
Any A, B, D, E, and F parts, C part starts with FlowB = Green River F = " Trial Run "
Any A, C, D, and E parts, B part is Green River, F part is " Trial Run " (spaces preserved)
- Returns:
- -4 if the object cannot access the DSS file, or otherwise the status from
Heclib.zcatalog(int[], HecDssCatalog)
-
callCatalog
Constructs the (optionally filtered) internal pathname list from the DSS file. Pathname matching is performed in Java.- Parameters:
pathnameFilter- The pathname filter to use. If not null (no filtering), it may be one of:Filter Type Description Rules Examples Wildcards Pseudo pathname with optional "*" and "?" wildcard characters. - '*' character matches zero or more characters, including '/'
- '?' character matches one character, including '/'
/*/*/Flow*
Any A, B, D, E, and F parts, C part starts with Flow*Flow*
Pathname contains Flow in any part
Regular Expressions Pseudo pathname with regular expressions Java regular expressions are used /*/*/(Flow|Stage).*
Any A, B, D, E, and F parts, C part starts with Flow or Stage.*(Flow|Stage).*
Pathname contains Flow or Stage in any part
Pathname Parts Specified pathname parts (can include wildcard characters or regular expressions) - Filter contains A=... B=... etc for A-F parts
- Unspecified parts match anything, same as specifying wildcard "*" or regular expression ".*"
- Interior spaces are preserved, but quotes must be used to preserve beginning or trailing spaces
C=Flow*
(if matcherType ==DssPathnameMatcher.MATCHER_TYPE_GLOB) Any A, B, D, E, and F parts, C part starts with FlowC=(Flow|Stage).*
(if matcherType ==DssPathnameMatcher.MATCHER_TYPE_REGEX) Any A, B, D, E, and F parts, C part starts with Flow or ElevB = Green River F = " Trial Run "
Any A, C, D, and E parts, B part is Green River, F part is " Trial Run " (spaces preserved)
matcherType- Specifies whether the pathname filter contains wildcards or regular expressions. Must be one ofDssPathnameMatcher.MATCHER_TYPE_GLOBDssPathnameMatcher.MATCHER_TYPE_REGEX
ignoreCase- Specifies whether pathname matching is to be performed with or without considering character case- Returns:
- -4 if the object cannot access the DSS file, or otherwise the status from
Heclib.zcatalog(int[], HecDssCatalog)
-
callCatalog
Constructs the (optionally filtered) internal pathname list from the DSS file. Pathname matching is performed in Java.- Parameters:
pattern- The pathname filter to use. May be null (no filtering). For best performance anchor start and of expression with '^' and '$' characters- Returns:
- -4 if the object cannot access the DSS file, or otherwise the status from
Heclib.zcatalog(int[], HecDssCatalog)
-
clearList
protected void clearList() -
whatChangedSetStart
public int whatChangedSetStart() -
whatChangedSetStart
-
whatChangedSetStart
public int whatChangedSetStart(HecDssCatalog catalog, String pathnameWithWildChars, boolean useCRCforData) -
whatChanged
-
whatChanged
-
whatChangedCompare
public String[] whatChangedCompare(HecDssCatalog dssCatalogBefore, String pathWithWild, boolean boolUseCRC) -
sortCatalog
-
sort
-
getCatalogSortAddresses
protected long[] getCatalogSortAddresses() -
setCatalogSortAddresses
protected void setCatalogSortAddresses(long[] sortAddresses) -
buildCondensedList
-
compareCondensedPaths
Determine if the only difference between two pathnames is the D (date) part (and that part appears to be a date)- Parameters:
pathname1- Descriptionpathname2- Description- Returns:
- Description
-
getEPartLoc
-
getPathnameList
Deprecated.UsegetCatalog(boolean, String)instead. This will be removed in a future version of hec-monolithDescription copied from class:HecDSSFileAccessDEPRECIATED, use HecDssCatalog class. public String[] getCatalog(boolean sorted, String pathWithWildChars)- Overrides:
getPathnameListin classHecDSSFileAccess- Parameters:
forceUpdate- not used- Returns:
- String[] - a sorted list of pathnames. Null or 0 if this function could not get a list
- See Also:
-
getSortedPathnameList
public String[] getSortedPathnameList(intArrayContainer startDatesContainer, intArrayContainer endDatesContainer, boolean forceUpdate) -
getPathnameListAndDates
public String[] getPathnameListAndDates(intArrayContainer startDatesContainer, intArrayContainer endDatesContainer) -
getPathnameListType
public String[] getPathnameListType(int statusWantedForList, int typeWantedStart, int typeWantedEnd) -
setPathnameList
-
setPathnameList
-
numberCatalogedRecords
public int numberCatalogedRecords()Deprecated -
searchDSSPaths
public int searchDSSPaths(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart, Vector pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
searchDSSCatalog
public int searchDSSCatalog(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart, Vector pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
searchDSSPaths
Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
searchDSSCatalog
Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
processSearchParts
protected String processSearchParts(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart) Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
getMaximumPartLengths
protected int[] getMaximumPartLengths() -
getMaximumPartLengths
-
buildSortedCatalog
-
getPathnameList
Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
getPathnameList6
-
getPathnameList7
Deprecated use String[] getPathnameList(boolean forceUpdate) instead NOT THREAD SAFE (only one thread can call this at a time) -
getCatalogName
-
createNewCatalog
public int createNewCatalog(int catalogType) Deprecated use String[] getPathnameList(boolean forceUpdate) instead -
isCatalogValid
public boolean isCatalogValid() -
readCatalog
-
writeCatalog
-
cleanCatalogPart
-
expandPathname
Takes either a pathname with wild charaters, or a time series pathname with a implied time window (date span in D part) and returns the full list of pathnames for the input. If wild character(s) are used, the records must exist in the file If a time-series dataset, the pathnames do not have to exist (assuming no wild characters) If you have time-series datasets and want to use a wild character, it is much more efficient to do this (without blanks around *) /Basin/Location/ * / * /1Day/Obs/ If you have time-series without wild characters, this is more efficient /Basin/Location/Flow/02Jan1975 - 30Oct2012/1Day/Obs/ Can also be a regular pathname, which will be returned if it does not need to be expanded- Parameters:
pathWithWild-- Returns:
-
clone
- Overrides:
clonein classHecDSSFileAccess
-
fireHecDssEvent
-
addHecDssListener
-
addHecDssListener
-
addHecDssListener
-
addHecDssListener
-
addHecDssListener
public void addHecDssListener(HecDssListener listener, String[] pathnames, HecDssEventType requestedEventType) -
addHecDssListener
public void addHecDssListener(HecDssListener listener, String pathWithWild, HecDssEventType requestedEventType) -
addHecDssListener
protected void addHecDssListener(HecDssListener listener, String pathWithWild, String[] pathnames, HecDssEventType requestedEventType) -
removeHecDssListener
-
hecDssEventPerformed
- Specified by:
hecDssEventPerformedin interfaceHecDssListener
-
startObserverThread
protected Thread startObserverThread(String pathWithWildChars, String[] pathnameList, HecDssEventType requestedEventType)
-
getCatalog(boolean, String)instead.