Class ExtractionContextProxy
java.lang.Object
org.hansken.plugin.extraction.runtime.grpc.server.proxy.ExtractionContextProxy
- All Implemented Interfaces:
AutoCloseable,DataContext
Proxy implementation for the server side of the
extraction plugin framework. It
delegates calls through gRPC (see GrpcFacade) to the context on the client side.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()data()dataType()static ExtractionContextProxyfromRpc(RpcDataContext context, String traceId, GrpcFacade facade) Create a newcontext proxyfor the context described by the givenRpcDataContext, using the givenGrpcFacadeto delegate calls to.
-
Method Details
-
fromRpc
public static ExtractionContextProxy fromRpc(RpcDataContext context, String traceId, GrpcFacade facade) Create a newcontext proxyfor the context described by the givenRpcDataContext, using the givenGrpcFacadeto delegate calls to.- Parameters:
context- the meta information of the context to mirror, such as the data typetraceId- the id of the tracefacade- the facade to delegate calls to- Returns:
- te context proxy
-
dataType
- Specified by:
dataTypein interfaceDataContext
-
data
- Specified by:
datain interfaceDataContext
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-