A participant that holds and serves releases for one or more organizations.
This is the federation primitive. A provider is a descriptor — who it is, which organizations it serves, how its bytes are reached — paired with a store that can actually answer registry operations for them. Two implementations ship:
- LocalStoreProvider wraps an in-process OmnyStore. A node runs one of these over its own repositories and object storage; a hub also runs one when it hosts organizations itself, so a small deployment does not need a separate node process beside it.
RemoteNodeStoreProvideris the hub-side proxy for a connected node: the same OmnyStoreApi, with every call forwarded over the node's control channel.
Because both expose OmnyStoreApi, the hub federates them without knowing which is which — the local case is not a special path through the routing code, which is what keeps "hub with no nodes" and "hub with twelve nodes" exercising the same logic.
- Implementers
Properties
- descriptor → ProviderDescriptor
-
Who this provider is and what it serves. Refreshed as the node
heartbeats, so capacity and liveness stay current.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable identifier, unique within a hub.
no setter
- isReadable → bool
-
Whether this provider can be read from right now.
no setter
- isWritable → bool
-
Whether this provider accepts new writes right now.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → OmnyStoreApi
-
The registry operations this provider can answer.
no setter
Methods
-
close(
) → Future< void> - Releases the provider's resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serves(
String organization) → bool -
Whether this provider serves
organization. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited