Class RrdFileBackendFactory

    • Constructor Detail

      • RrdFileBackendFactory

        public RrdFileBackendFactory()
    • Method Detail

      • open

        protected RrdBackend open​(String path,
                                  boolean readOnly)
                           throws IOException
        Creates RrdFileBackend object for the given file path.
        Specified by:
        open in class RrdBackendFactory
        Parameters:
        path - File path
        readOnly - True, if the file should be accessed in read/only mode. False otherwise.
        Returns:
        RrdFileBackend object which handles all I/O operations for the given file path
        Throws:
        IOException - Thrown in case of I/O error.
      • exists

        protected boolean exists​(String path)
        Method to determine if a file with the given path already exists.
        Specified by:
        exists in class RrdBackendFactory
        Parameters:
        path - File path
        Returns:
        True, if such file exists, false otherwise.
      • getFactoryName

        public String getFactoryName()
        Returns the name of this factory.
        Specified by:
        getFactoryName in class RrdBackendFactory
        Returns:
        Factory name (equals to string "FILE")