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 class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Deprecated.protected static boolean
protected EventListenerList
protected Hashtable<HecDssListener,
Thread> protected boolean
protected int[]
protected int
protected int
protected int[]
protected long
protected long[]
protected boolean
protected boolean
protected boolean
protected int
protected long[]
protected long[]
protected String[]
protected String
protected int[]
protected int
protected int
Fields 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 TypeMethodDescriptionvoid
addHecDssListener
(HecDssListener listener) void
addHecDssListener
(HecDssListener listener, HecDssEventType requestedChangeType) void
addHecDssListener
(HecDssListener listener, String pathWithWild) void
addHecDssListener
(HecDssListener listener, String[] pathnames) void
addHecDssListener
(HecDssListener listener, String[] pathnames, HecDssEventType requestedEventType) void
addHecDssListener
(HecDssListener listener, String pathWithWild, HecDssEventType requestedEventType) protected void
addHecDssListener
(HecDssListener listener, String pathWithWild, String[] pathnames, HecDssEventType requestedEventType) protected void
buildCondensedList
(Vector<CondensedReference> condensedList) String[]
protected int
callCatalog
(String pathnameFilter) Constructs the (optionally filtered) internal pathname list from the DSS file.protected int
callCatalog
(String pathnameFilter, int matcherType, boolean ignoreCase) Constructs the (optionally filtered) internal pathname list from the DSS file.protected int
callCatalog
(Pattern pattern) Constructs the (optionally filtered) internal pathname list from the DSS file.int
callCatalogOriginal
(String pathWithWildChars) Constructs the (optionally filtered) internal pathname list from the DSS file.int
catalogFile
(String catalogName, boolean sorted, String pathWithWildChars) protected int
cleanCatalogPart
(String inPart, StringBuffer outPart) protected void
clone()
static boolean
compareCondensedPaths
(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)int
createNewCatalog
(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 void
fireHecDssEvent
(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 void
getEPartLoc
(String pathname, int[] partLocs) protected int[]
protected int[]
getMaximumPartLengths
(String[] paths) String[]
getPathnameList
(boolean forceUpdate) Deprecated.protected int
getPathnameList
(String instructions, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadprotected int
getPathnameList6
(String instructions, Vector<String> pathnameList) protected int
getPathnameList7
(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[]
int
boolean
void
hecDssEventPerformed
(HecDssEventType source) boolean
protected boolean
isPathnamePartsString
(String maybePathnameParts) int
Deprecatedpathname()
protected String
pathNamePartsToRegex
(String pathnameParts) protected String
processSearchParts
(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadString[]
void
removeHecDssListener
(HecDssListener listener) int
searchDSSCatalog
(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart, Vector pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadint
searchDSSCatalog
(String scanString, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadint
searchDSSPaths
(String aPart, String bPart, String cPart, String dPart, String ePart, String fPart, Vector pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadint
searchDSSPaths
(String scanString, List<String> pathnameList) Deprecated use String[] getPathnameList(boolean forceUpdate) insteadprotected void
setCatalogSortAddresses
(long[] sortAddresses) void
setForceNewCatalog
(boolean forceNewCatalog) void
setMaxNumberToRetrieve
(int maxNumber) void
setPathnameList
(String[] pathnames) void
setPathnameList
(List<String> pathnames) void
setPathWithWildChars
(String pathWithWildChars, boolean getCollection) void
setStatusWanted
(int status) void
setTypeWanted
(int typeStart, int typeEnd) void
setUseCollectionGroups
(boolean useCollectionGroups) String[]
sort()
int
sortCatalog
(String pathWithWildChar) protected Thread
startObserverThread
(String pathWithWildChars, String[] pathnameList, HecDssEventType requestedEventType) String[]
String[]
whatChanged
(String pathWithWild) String[]
whatChangedCompare
(HecDssCatalog dssCatalogBefore, String pathWithWild, boolean boolUseCRC) int
int
whatChangedSetStart
(HecDssCatalog catalog, String pathnameWithWildChars, boolean useCRCforData) int
whatChangedSetStart
(String pathnameWithWildChars, boolean useCRCforData) protected String
wildCharsToRegex
(String pathnameWithWild) boolean
writeCatalog
(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: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:
- 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_GLOB
DssPathnameMatcher.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_GLOB
DssPathnameMatcher.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: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:
- -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_GLOB
DssPathnameMatcher.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:HecDSSFileAccess
DEPRECIATED, use HecDssCatalog class. public String[] getCatalog(boolean sorted, String pathWithWildChars)- Overrides:
getPathnameList
in 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:
clone
in 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:
hecDssEventPerformed
in interfaceHecDssListener
-
startObserverThread
protected Thread startObserverThread(String pathWithWildChars, String[] pathnameList, HecDssEventType requestedEventType)
-
getCatalog(boolean, String)
instead.