Package org.apache.vinci.transport
Class VinciServableAdapter
java.lang.Object
org.apache.vinci.transport.VinciServableAdapter
- All Implemented Interfaces:
TransportableFactory,VinciServable
- Direct Known Subclasses:
LocalVNS,VinciAnalysisEngineService_impl,VinciBinaryAnalysisEngineService_impl,VNS
Adapter class for VinciServable, which provides a do-nothing cleanExit() method and a
TransportableFactory that returns a VinciFrame.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the service is being shutdown by the server/service container.abstract Transportableeval(Transportable in) The eval method accepts an input document and returns an output document that is the result of performing the service.Creates a new (empty) document of the desired type.
-
Constructor Details
-
VinciServableAdapter
public VinciServableAdapter()
-
-
Method Details
-
eval
Description copied from interface:VinciServableThe eval method accepts an input document and returns an output document that is the result of performing the service.- Specified by:
evalin interfaceVinciServable- Parameters:
in- The input document- Returns:
- The output document
- Throws:
ServiceException- thrown when there is an application level error that should result in the client receiving the same ServiceException on the other end.
-
cleanExit
public void cleanExit()Description copied from interface:VinciServableCalled when the service is being shutdown by the server/service container.- Specified by:
cleanExitin interfaceVinciServable
-
makeTransportable
Description copied from interface:TransportableFactoryCreates a new (empty) document of the desired type.- Specified by:
makeTransportablein interfaceTransportableFactory- Returns:
- The new document.
-