com.digitalasset.canton.participant.store.memory
InMemoryDamlPackageStore
Companion object InMemoryDamlPackageStore
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: DarDescriptor)(implicit tc: TraceContext): OptionT[Future, 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: Seq[(Archive, Option[LfPackageName], Option[LfPackageVersion])], sourceDescription: String256M, dar: Option[Dar])(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]
- pkgs
Daml packages to be stored
- 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]) @native() @IntrinsicCandidate()
- def close(): Unit
- Definition Classes
- InMemoryDamlPackageStore → AutoCloseable
- 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
- @native() @IntrinsicCandidate()
- def getDar(hash: Hash)(implicit traceContext: TraceContext): Future[Option[Dar]]
Get DAR by hash
Get DAR by hash
- hash
The hash of the DAR file
- returns
Future that will contain an empty option if the DAR with the given hash 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): Future[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): Future[Option[PackageDescription]]
- Definition Classes
- InMemoryDamlPackageStore → DamlPackageStore
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listDars(limit: Option[Int])(implicit traceContext: TraceContext): Future[Seq[DarDescriptor]]
- returns
Future with sequence of DAR descriptors (hash and name)
- Definition Classes
- InMemoryDamlPackageStore → DamlPackageStore
- def listPackages(limit: Option[Int])(implicit traceContext: TraceContext): Future[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
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def removeDar(hash: Hash)(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]
Remove the DAR with hash
hash
from the storeRemove the DAR with hash
hash
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])