class InMemoryDamlPackageStore extends DamlPackageStore with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemoryDamlPackageStore
  2. NamedLogging
  3. DamlPackageStore
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InMemoryDamlPackageStore(loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def anyPackagePreventsDarRemoval(packages: Seq[PackageId], removeDar: DarDescription)(implicit tc: TraceContext): OptionT[FutureUnlessShutdown, PackageId]

    Find from packages a registered package that does not exist in any dar except perhaps removeDar.

    Find from packages a registered package that does not exist in any dar except perhaps removeDar. This checks whether a DAR containing packages can be safely removed -- if there's any package that would be left without a DAR then we won't remove the DAR.

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  5. def append(pkgs: List[(PackageInfo, Archive)], uploadedAt: CantonTimestamp, dar: Dar)(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    pkgs

    Daml packages to be stored

    uploadedAt

    The timestamp at which the package has been persisted in the store

    dar

    The DAR containing the packages

    returns

    Future which gets completed when the packages are successfully stored.

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def close(): Unit
    Definition Classes
    InMemoryDamlPackageStore → AutoCloseable
  9. def determinePackagesExclusivelyInDar(packages: Seq[PackageId], removeDar: DarDescription)(implicit tc: TraceContext): FutureUnlessShutdown[Seq[PackageId]]

    Returns the package IDs from the set of packages that are only referenced by the provided dar.

    Returns the package IDs from the set of packages that are only referenced by the provided dar.

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def getDar(mainPackageId: DarMainPackageId)(implicit traceContext: TraceContext): OptionT[FutureUnlessShutdown, Dar]

    Get DAR by its main package ID

    Get DAR by its main package ID

    mainPackageId

    The main package-id of the DAR archive

    returns

    Future that will contain an empty option if the DAR with the given package ID could not be found or an option with the DAR if it could be found.

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  15. def getPackage(packageId: LfPackageId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[Archive]]

    packageId

    The package id of the Daml package to be retrieved from the store.

    returns

    Future that will contain an empty option if the package with the given id could not be found or an option with the archive (serialized version of the package) if it could be found.

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  16. def getPackageDescription(packageId: LfPackageId)(implicit traceContext: TraceContext): OptionT[FutureUnlessShutdown, PackageDescription]
  17. def getPackageDescriptionsOfDar(mainPackageId: DarMainPackageId)(implicit traceContext: TraceContext): OptionT[FutureUnlessShutdown, Seq[PackageDescription]]

    Get the packages in the DAR by its main package ID

    Get the packages in the DAR by its main package ID

    mainPackageId

    The main package ID of the DAR file

    returns

    The package description of the given dar

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  18. def getPackageReferences(packageId: LfPackageId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[DarDescription]]

    Return all DARs that reference a given package

    Return all DARs that reference a given package

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def listDars(limit: Option[Int])(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[DarDescription]]

    returns

    Future with sequence of DAR descriptors (ID and name)

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  22. def listPackages(limit: Option[Int])(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[PackageDescription]]

    returns

    yields descriptions of all persisted Daml packages

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  23. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  24. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    InMemoryDamlPackageStoreNamedLogging
  25. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  30. def removeDar(mainPackageId: DarMainPackageId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    Remove the DAR with the main package ID from the store

    Remove the DAR with the main package ID from the store

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  31. def removePackage(packageId: PackageId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    Remove the package from the package store.

    Remove the package from the package store.

    Definition Classes
    InMemoryDamlPackageStoreDamlPackageStore
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from NamedLogging

Inherited from DamlPackageStore

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped