Class LocalFileDb

java.lang.Object
com.yahoo.container.standalone.LocalFileDb
All Implemented Interfaces:
com.yahoo.config.application.api.FileRegistry, com.yahoo.filedistribution.fileacquirer.FileAcquirer

public class LocalFileDb extends Object implements com.yahoo.filedistribution.fileacquirer.FileAcquirer, com.yahoo.config.application.api.FileRegistry
FileAcquirer and FileRegistry working on a local directory.
Author:
Tony Vaagenes, ollivir
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.yahoo.config.application.api.FileRegistry

    com.yahoo.config.application.api.FileRegistry.Entry
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalFileDb(Path appPath)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.config.FileReference
    addBlob(String name, ByteBuffer blob)
     
    com.yahoo.config.FileReference
    addFile(String relativePath)
     
    com.yahoo.config.FileReference
     
    List<com.yahoo.config.application.api.FileRegistry.Entry>
     
    void
     
    waitFor(com.yahoo.config.FileReference reference, long l, TimeUnit timeUnit)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.yahoo.config.application.api.FileRegistry

    addApplicationPackage, asSet
  • Constructor Details

    • LocalFileDb

      public LocalFileDb(Path appPath)
  • Method Details

    • waitFor

      public File waitFor(com.yahoo.config.FileReference reference, long l, TimeUnit timeUnit)
      Specified by:
      waitFor in interface com.yahoo.filedistribution.fileacquirer.FileAcquirer
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface com.yahoo.filedistribution.fileacquirer.FileAcquirer
    • addFile

      public com.yahoo.config.FileReference addFile(String relativePath)
      Specified by:
      addFile in interface com.yahoo.config.application.api.FileRegistry
    • export

      public List<com.yahoo.config.application.api.FileRegistry.Entry> export()
      Specified by:
      export in interface com.yahoo.config.application.api.FileRegistry
    • addUri

      public com.yahoo.config.FileReference addUri(String uri)
      Specified by:
      addUri in interface com.yahoo.config.application.api.FileRegistry
    • addBlob

      public com.yahoo.config.FileReference addBlob(String name, ByteBuffer blob)
      Specified by:
      addBlob in interface com.yahoo.config.application.api.FileRegistry