class InMemoryDamlPackageStore extends DamlPackageStore with NamedLogging
- Alphabetic
- By Inheritance
- InMemoryDamlPackageStore
- NamedLogging
- DamlPackageStore
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new InMemoryDamlPackageStore(loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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 perhapsremoveDar
.Find from
packages
a registered package that does not exist in any dar except perhapsremoveDar
. This checks whether a DAR containingpackages
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
- InMemoryDamlPackageStore → DamlPackageStore
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def close(): Unit
- Definition Classes
- InMemoryDamlPackageStore → AutoCloseable
- 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 provideddar
.Returns the package IDs from the set of
packages
that are only referenced by the provideddar
.- Definition Classes
- InMemoryDamlPackageStore → DamlPackageStore
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- def getPackageDescription(packageId: LfPackageId)(implicit traceContext: TraceContext): OptionT[FutureUnlessShutdown, PackageDescription]
- Definition Classes
- InMemoryDamlPackageStore → DamlPackageStore
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listDars(limit: Option[Int])(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[DarDescription]]
- returns
Future with sequence of DAR descriptors (ID and name)
- Definition Classes
- InMemoryDamlPackageStore → DamlPackageStore
- def listPackages(limit: Option[Int])(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[PackageDescription]]
- returns
yields descriptions of all persisted Daml packages
- Definition Classes
- InMemoryDamlPackageStore → DamlPackageStore
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- InMemoryDamlPackageStore → NamedLogging
- implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- 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
- InMemoryDamlPackageStore → DamlPackageStore
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])