public class ApiProviderStubImpl extends Object implements ApiProviderStub
ApiProvider.| Constructor and Description |
|---|
ApiProviderStubImpl(ApiProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
ProviderDefinition |
getDefinition()
Returns the definition for this API provider.
|
ProviderDefinition |
getDefinition(ExecutionContext ctx)
Returns the definition for this API provider.
|
void |
getDefinition(ExecutionContext ctx,
AsyncHandle<ProviderDefinition> asyncHandle)
Returns the definition for this API provider.
|
InterfaceDefinition |
getInterface(ExecutionContext ctx,
InterfaceIdentifier iface)
Returns interface definition for a given interface identifier.
|
void |
getInterface(ExecutionContext ctx,
InterfaceIdentifier iface,
AsyncHandle<InterfaceDefinition> asyncHandle)
Returns interface definition for a given interface identifier.
|
InterfaceDefinition |
getInterface(InterfaceIdentifier iface)
Returns interface definition for a given interface identifier.
|
Set<InterfaceIdentifier> |
getInterfaceIdentifiers()
Returns the set of interface identifiers supported by this provider.
|
Set<InterfaceIdentifier> |
getInterfaceIdentifiers(ExecutionContext ctx)
Returns the set of interface identifiers supported by this provider.
|
void |
getInterfaceIdentifiers(ExecutionContext ctx,
AsyncHandle<Set<InterfaceIdentifier>> asyncHandle)
Returns the set of interface identifiers supported by this provider.
|
MethodDefinition |
getMethod(ExecutionContext ctx,
MethodIdentifier method)
Returns method definitions for a given method identifier.
|
void |
getMethod(ExecutionContext ctx,
MethodIdentifier method,
AsyncHandle<MethodDefinition> asyncHandle)
Returns method definitions for a given method identifier.
|
MethodDefinition |
getMethod(MethodIdentifier method)
Returns method definitions for a given method identifier.
|
MethodResult |
invoke(String serviceId,
String operationId,
DataValue input,
ExecutionContext ctx)
Synchronous variant of
invoke(String, String, DataValue, ExecutionContext, AsyncHandle) |
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 ApiProviderStubImpl(ApiProvider provider)
public void getDefinition(ExecutionContext ctx, AsyncHandle<ProviderDefinition> asyncHandle)
ApiIntrospectiongetDefinition in interface ApiIntrospectionctx - execution context for the invocationasyncHandle - handle used to return result or errorpublic void getInterfaceIdentifiers(ExecutionContext ctx, AsyncHandle<Set<InterfaceIdentifier>> asyncHandle)
ApiIntrospectiongetInterfaceIdentifiers in interface ApiIntrospectionctx - execution context for the invocationasyncHandle - handle used to return result or errorpublic void getInterface(ExecutionContext ctx, InterfaceIdentifier iface, AsyncHandle<InterfaceDefinition> asyncHandle)
ApiIntrospectiongetInterface in interface ApiIntrospectionctx - execution context for the invocationiface - interface identifierasyncHandle - handle used to return result or errorpublic void getMethod(ExecutionContext ctx, MethodIdentifier method, AsyncHandle<MethodDefinition> asyncHandle)
ApiIntrospectionnull if no such method is availablegetMethod in interface ApiIntrospectionctx - execution context for the invocationmethod - method identifierasyncHandle - handle used to return result or errorpublic void invoke(String serviceId, String operationId, DataValue input, ExecutionContext ctx, AsyncHandle<MethodResult> asyncHandle)
ApiProviderTarget method is identified by serviceId and
operationId.
invoke in interface ApiProviderserviceId - 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 invocationpublic ProviderDefinition getDefinition()
ApiIntrospectionStubgetDefinition in interface ApiIntrospectionStubpublic Set<InterfaceIdentifier> getInterfaceIdentifiers()
ApiIntrospectionStubgetInterfaceIdentifiers in interface ApiIntrospectionStubpublic InterfaceDefinition getInterface(InterfaceIdentifier iface)
ApiIntrospectionStubgetInterface in interface ApiIntrospectionStubiface - interface identifierpublic MethodDefinition getMethod(MethodIdentifier method)
ApiIntrospectionStubnull if no such method is availablegetMethod in interface ApiIntrospectionStubmethod - method identifierMethodDefinition instance or null
is not found for the specified identifierpublic ProviderDefinition getDefinition(ExecutionContext ctx)
SyncApiIntrospectiongetDefinition in interface SyncApiIntrospectionctx - execution context for the invocationpublic Set<InterfaceIdentifier> getInterfaceIdentifiers(ExecutionContext ctx)
SyncApiIntrospectiongetInterfaceIdentifiers in interface SyncApiIntrospectionctx - execution context for the invocationpublic InterfaceDefinition getInterface(ExecutionContext ctx, InterfaceIdentifier iface)
SyncApiIntrospectiongetInterface in interface SyncApiIntrospectionctx - execution context for the invocationiface - interface identifierpublic MethodDefinition getMethod(ExecutionContext ctx, MethodIdentifier method)
SyncApiIntrospectionnull if no such method is availablegetMethod in interface SyncApiIntrospectionctx - execution context for the invocationmethod - method identifierMethodDefinition instance or null
is not found for the specified identifierpublic MethodResult invoke(String serviceId, String operationId, DataValue input, ExecutionContext ctx)
invoke(String, String, DataValue, ExecutionContext, AsyncHandle)invoke in interface SyncApiProviderserviceId - identifier of the target serviceoperationId - identifier of the target operationinput - operation input parametersctx - execution context for the invocationCopyright © 2022. All rights reserved.