public final class ActivationFilter extends DecoratorApiProvider
Server-side filter which intercepts method invocations and registers an
activation identifier for each invocation into the AcitvationRegistry
. As soon as the method invocation completes, the activation gets
unregistered. If a duplication of identifiers occurs, the filter reports the
StandardDataFactory.ALREADY_EXISTS standard error. The filter does not register
activations for the methods of the activation manager.
This filter implementation is specific to the in-memory activation registry
implementation in ActivationManagerImpl. If you write your own
activation registry, you should also write your own activation filter.
| Modifier and Type | Field and Description |
|---|---|
static InterfaceIdentifier |
ACTIVATION_MANAGER_ID
Interface identifier of the activation manager service.
|
decoratedProvider| Constructor and Description |
|---|
ActivationFilter(ApiProvider decoratedProvider,
com.vmware.vapi.internal.std.activation.impl.ActivationRegistry activationRegistry)
Creates an activation filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(String serviceId,
String operationId,
DataValue input,
ExecutionContext ctx,
AsyncHandle<MethodResult> asyncHandle)
Invokes the specified operation using the provided input and
execution context.
|
public static final InterfaceIdentifier ACTIVATION_MANAGER_ID
public ActivationFilter(ApiProvider decoratedProvider, com.vmware.vapi.internal.std.activation.impl.ActivationRegistry activationRegistry)
decoratedProvider - next provider in the stack; must not be
nullactivationRegistry - in-memory activation registry; must not be
nullIllegalArgumentException - if any of the arguments is
nullpublic void invoke(String serviceId, String operationId, DataValue input, ExecutionContext ctx, AsyncHandle<MethodResult> asyncHandle)
ApiProviderTarget method is identified by serviceId and
operationId.
invoke in interface ApiProviderinvoke in class DecoratorApiProviderserviceId - identifier of the target serviceoperationId - identifier of the target operationinput - operation input parametersctx - execution context for the invocationasyncHandle - handle used to asynchronously "return" the result
or error of the invocationCopyright © 2023. All rights reserved.