public interface ApiInterface
ApiInterface
interface provides introspection
APIs for a vAPI interface; it is implemented by API providers.Modifier and Type | Method and Description |
---|---|
InterfaceDefinition |
getDefinition()
Returns the details for this interface.
|
InterfaceIdentifier |
getIdentifier()
Returns the identifier for this interface.
|
MethodDefinition |
getMethodDefinition(MethodIdentifier methodId)
Returns method definition for the specified method identifier.
|
void |
invoke(ExecutionContext ctx,
MethodIdentifier methodId,
DataValue input,
AsyncHandle<MethodResult> asyncHandle)
Invokes a method and returns the result of that method invocation.
|
InterfaceIdentifier getIdentifier()
InterfaceDefinition getDefinition()
MethodDefinition getMethodDefinition(MethodIdentifier methodId)
methodId
- identifier of the methodMethodDefinition
representing details for the
requested method; or null
method is not availablevoid invoke(ExecutionContext ctx, MethodIdentifier methodId, DataValue input, AsyncHandle<MethodResult> asyncHandle)
ctx
- execution context for method invocationmethodId
- identifier of the method to invoke; if there is no
such method, an error will be returnedinput
- input data valueasyncHandle
- handle used to return result or errorCopyright © 2015. All Rights Reserved.