package admin
- Alphabetic
- Public
- Protected
Type Members
- sealed trait AcceptRejectError extends AnyRef
- class AcceptRejectException extends RuntimeException
Exception to carry the accept reject error where a
Future[Unit]
return is expected (transaction processing) - case class AdminWorkflowConfig(bongTestMaxLevel: Long = 0, retries: Int = 10, submissionTimeout: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofHours(1), autoloadDar: Boolean = true) extends Product with Serializable
Configuration options for Canton admin workflows like
participant.health.ping
Configuration options for Canton admin workflows like
participant.health.ping
- bongTestMaxLevel
Upper bound on the level of a bong that the participant can initiate. The participant can still participate in bongs at higher levels. Use this to limit the load the participants can cause by initiating bongs.
- retries
The maximum number of times the com.digitalasset.canton.ledger.api.client.CommandSubmitterWithRetry will retry an admin command submitted to the com.digitalasset.canton.participant.admin.AdminWorkflowServices.
- submissionTimeout
Defines how long an admin workflow waits until it observes a completion for its command submissions before it assumes that the submission is lost and retries. If a lower timeout value is specified for an admin workflow, they take precedence.
- trait AdminWorkflowService extends AutoCloseable
Admin service that connects to the ledger and process events
- class AdminWorkflowServices extends FlagCloseableAsync with NamedLogging with Spanning with NoTracing
Manages our admin workflow applications (ping, dar distribution).
Manages our admin workflow applications (ping, dar distribution). Currently each is individual application with their own ledger connection and acting independently.
- trait DarDistribution extends AnyRef
Dar distribution operations
- class DarDistributionService extends AdminWorkflowService with DarDistribution with NamedLogging
- trait DarService extends AnyRef
- class DomainConnectivityService extends NamedLogging
- class EnterpriseResourceManagementService extends ResourceManagementService
- class InMemoryShareOfferStore extends InMemorySimpleTrackerStore[ShareDar] with ShareOfferStore
- class InMemoryShareRequestStore extends InMemorySimpleTrackerStore[ShareDar] with ShareRequestStore
- class InMemorySimpleTrackerStore[A] extends SimpleContractTrackerStore[A]
- class InMemoryWhitelistStore extends WhitelistStore
- trait PackageInspectionOps extends NamedLogging
- class PackageInspectionOpsImpl extends PackageInspectionOps
- class PackageService extends DarService with PackageInfoService with NamedLogging with FlagCloseable
- class PingService extends AdminWorkflowService with NamedLogging
Implements the core of the ledger ping service for a participant.
Implements the core of the ledger ping service for a participant. The service measures the time needed for a nanobot on the responder to act on a contract created by the initiator.
The main functionality: 1. once instantiated, it automatically starts a Scala Nanobot that responds to pings for this participant 2. it provides a ping method that sends a ping to the given (target) party
Parameters:
- Annotations
- @SuppressWarnings()
- class RepairService extends NamedLogging with FlagCloseableAsync with HasCloseContext
Implements the repair commands.
Implements the repair commands. Repair commands work only if the participant has disconnected from the affected domains. Every individual repair commands is executed transactionally, i.e., either all its effects are applied or none. This is achieved in the same way as for request processing:
- A request counter is allocated for the repair request (namely the clean request head) and marked as com.digitalasset.canton.participant.protocol.RequestJournal.RequestState.Pending. The repair request's timestamp is the timestamp where processing starts again upon reconnection to the domain.
- All repair effects are persisted to the stores using the repair request counter.
- The clean request prehead is advanced to the repair request counter. This commits the changes. If multiple domains are involved, transactionality is ensured via the com.digitalasset.canton.resource.TransactionalStoreUpdate mechanism.
If anything goes wrong before advancing the clean request prehead, the already persisted data will be cleaned up upon the next repair request or reconnection to the domain.
- case class ResourceLimits(maxDirtyRequests: Option[NonNegativeInt], maxRate: Option[NonNegativeInt]) extends HasProtoV0[admin.v0.ResourceLimits] with Product with Serializable
Encapsulated resource limits for a participant.
Encapsulated resource limits for a participant.
- maxDirtyRequests
the maximum number of requests that are currently being validated. This also covers requests submitted by other participants.
- maxRate
the maximum rate at which commands may be submitted through the ledger api.
- trait ResourceManagementService extends AnyRef
- sealed trait ShareError extends AnyRef
- trait ShareOfferStore extends SimpleContractTrackerStore[ShareDar]
Store for received DAR sharing offers I've not yet responded to
- trait ShareRequestStore extends SimpleContractTrackerStore[ShareDar]
Store for DAR sharing requests I've sent that haven't yet been accepted or rejected
- trait SimpleContractTrackerStore[A] extends AnyRef
Simple store for tracking ledger contracts of a given type
- class SyncStateInspection extends NamedLogging
Implements inspection functions for the sync state of a participant node
- class TransferService extends AnyRef
- trait WhitelistStore extends AnyRef
Store for parties I have whitelisted DARs from (permitting them to be automatically installed)
Value Members
- object AcceptRejectError
- object AdminWorkflowServices extends AdminWorkflowServicesErrorGroup
- object CantonPackageServiceError extends PackageServiceErrorGroup
- object Converters
Conversions between types used by the admin-api
- object PackageService
- object PingService
- object RepairService
- object ResourceLimits extends Serializable
- object ResourceManagementService
- object ShareError
- object SyncStateInspection