Skip to content

Plugins ​

Export a typed service or bind to a compatible service from another admitted plugin. Bindings are explicit relationships between particular loads, not ambient access to other plugins.

Contract: nexa.interplugin/100. API index.

Typical sequence ​

Export during Initialize, bind during PostInitialize and probe during Checkup. Invoke only after activation. Describe the service before choosing a version range.

Behavior and limits ​

A required provider dependency can stop its consumers when it retires; an optional binding becomes unavailable. Bindings never silently switch to a replacement load.

The recorded Host maps 8 of 8 operations in this group. A mapping is subject to permission, phase, scope, platform and business preconditions. Host snapshot identifies the source revision; negotiate against the actual installed Host.

Operations ​

ExportService · DescribeService · BindService · ProbeService · CallService · WatchAvailability · ReleaseBinding · ReadOwnLoadReport

ExportService ​

ServiceDefinition → RegistrationRef

PropertyContract
Local SDK method ID8
KindRegistration
Permissionnexa.interplugin.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
ContractPublicContractStructured PublicContract value; follow its linked field contract.
HandlerulongCallback identifier registered by this plugin. A handler alone is not a public action or provider registration.
ProbeQualifiedId?Identity or revision in this model’s domain; preserve ownership and exact spelling. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_ExportService(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_ExportService_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

DescribeService ​

ServiceLookup → PublicContract

PropertyContract
Local SDK method ID9
KindQuery
Permissionnexa.interplugin.read
Legal phasesPostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
ProviderstringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ServiceQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
MinimumVersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
MaximumVersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
RequiredboolDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_DescribeService(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_DescribeService_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

BindService ​

ServiceLookup → ServiceBinding

PropertyContract
Local SDK method ID10
KindRegistration
Permissionnexa.interplugin.write
Legal phasesPostInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
ProviderstringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ServiceQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
MinimumVersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
MaximumVersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
RequiredboolDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_BindService(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_BindService_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ProbeService ​

ServiceProbe → ValidationReport

PropertyContract
Local SDK method ID11
KindQuery
Permissionnexa.interplugin.read
Legal phasesCheckup
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
BindingServiceBindingStructured ServiceBinding value; follow its linked field contract.
ProbeQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
InputAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_ProbeService(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_ProbeService_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

CallService ​

ServiceCall → OperationRef

PropertyContract
Local SDK method ID12
KindOperation
Permissionnexa.interplugin.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
BindingServiceBindingStructured ServiceBinding value; follow its linked field contract.
MethodulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
InputAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
CallChainGuid[]Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. A bounded collection; do not assume an unbounded result or unspecified ordering.
DelegationScopedTarget?Structured ScopedTarget value; follow its linked field contract. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_CallService(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_CallService_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

WatchAvailability ​

ServiceLookup → SubscriptionRef

PropertyContract
Local SDK method ID13
KindSubscription
Permissionnexa.interplugin.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
ProviderstringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ServiceQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
MinimumVersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
MaximumVersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
RequiredboolDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Retain the subscription identity, consume bounded batches or callbacks as specified, handle gaps, and release it when no longer needed.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_WatchAvailability(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_WatchAvailability_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ReleaseBinding ​

ServiceBinding → Empty

PropertyContract
Local SDK method ID14
KindMutation
Permissionnexa.interplugin.write
Legal phasesPostInitialize, Active, Stop
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
HandleulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ProviderstringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ProviderLoadInstanceGuidDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ContractQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
VersionulongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_ReleaseBinding(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_ReleaseBinding_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ReadOwnLoadReport ​

Empty → LoadReport

PropertyContract
Local SDK method ID15
KindQuery
Permissionnexa.interplugin.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

This model has no fields. Send its encoded empty object, not an arbitrary Null value.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Plugins_ReadOwnLoadReport(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Plugins_ReadOwnLoadReport_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.