Class LocalDssDataManager

java.lang.Object
hec.heclib.dss.AbstractDssDataManager
hec.heclib.dss.LocalDssDataManager
All Implemented Interfaces:
DssDataManager

public class LocalDssDataManager extends AbstractDssDataManager
Provides a class that can access the HecDataManager (actually HecDSSUtilities)
  • 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

      public List<String> getLastDeletePathnames()
      Description copied from interface: DssDataManager
      Gets the pasteListPathnames attribute of the DssDataManager object
      Returns:
      The pasteListPathnames value
    • dataManager

      public HecDSSUtilities dataManager()
      Description copied from interface: DssDataManager
      Returns either remote or local dataManager
      Specified by:
      dataManager in interface DssDataManager
      Overrides:
      dataManager in class AbstractDssDataManager
      Returns:
      Returns either HecDSSUtilitiesRemote or HecDSSUtilities
    • DssFileManagerStatus

      public List<HecDSSFileData> 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 milliseconds
      pathnames - 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

      public DSSErrorMessage lastErrorMessage()
    • getProcessStatus

      public void getProcessStatus(int[] numberRecs, int[] currentRec)
    • cleanDSSFileName

      public boolean cleanDSSFileName(String inName, stringContainer outName)
    • copyFile

      public int copyFile(DssDataManager dataManager, String secondDSSFilename)
    • copyRecordsFrom

      public int copyRecordsFrom(DssDataManager toDataManager, String toDSSFilename, List<String> pathnameList)
    • copyRecordsInto

      public int copyRecordsInto(DssDataManager fromDataManager, String fromDSSFilename, List<String> pathnameList)
    • delete

      public int delete(List<String> pathnameList)
    • doesDSSFileExist

      public boolean doesDSSFileExist(String DSSFileName)
    • 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

      public int readData(DataReference dataReference, PairedDataContainer pairedDataContainer)
    • readData

      public int readData(DataReference dataReference, TextContainer textContainer)
    • readData

      public int readData(DataReference dataReference, ArrayContainer arrayContainer)
    • readData

      public int readData(DataReference dataReference, DssFileContainer fileContainer)
    • readRawShorts

      public short[] readRawShorts(String pathname)
      Specified by:
      readRawShorts in interface DssDataManager
      Overrides:
      readRawShorts in class AbstractDssDataManager
    • getRecordInfo

      public boolean getRecordInfo(DataReference dataReference, HecDSSRecordInfo recordInfo)
    • writeData

      public int writeData(TextContainer textContainer)
    • readGriddedData

      public List readGriddedData(DSSIdentifier dssId)
    • readTinData

      protected List readTinData(DSSIdentifier dssId, TinContainer tinContainer)
      Specified by:
      readTinData in class AbstractDssDataManager
    • getGriddedDataLocal

      protected List getGriddedDataLocal(DSSIdentifier dssId)
      Reads a Grid from a DSS file using a DSSIdentifier
      Parameters:
      dssId -
      Returns:
    • getCatalog

      public String[] getCatalog(boolean sorted, String pathWithWildChars)
    • getCondensedCatalog

      public CondensedReference[] getCondensedCatalog(String pathWithWildChars)
    • convertVersion

      public int convertVersion(String convertFileName)
    • undelete

      public int undelete(List<String> pathnames)
    • undoLastDelete

      public int undoLastDelete()
    • writeData

      public int writeData(PairedDataContainer pairedDataContainer)
    • writeData

      public int writeData(GridContainer gridContainer)
    • writeLocation

      public int writeLocation(DataContainer dataContainer)
    • writeData

      public int writeData(TimeSeriesContainer timeSeriesContainer, int regularStoreMethod, int irregularStoreMethod)
    • writeFile

      public int writeFile(File file, DSSPathname pathname, boolean imageFile) throws Exception
      Throws:
      Exception
    • exportFile

      public int exportFile(String pathname, File file, String directory) throws Exception
      Throws:
      Exception
    • readImage

      public int readImage(DataReference dataSet, PhotoViewerInfo info) throws Exception
      Throws:
      Exception
    • readLocation

      public int readLocation(DataContainer dataContainer) throws Exception
      Throws:
      Exception