|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.vinci.transport.VinciServableAdapter
org.apache.uima.adapter.vinci.VinciAnalysisEngineService_impl
public class VinciAnalysisEngineService_impl
Main class for a Vinci Analysis Engine service. This class can also be used to deploy CAS Consumers as Vinci services. The main method takes one argument - the path to the service deployment descriptor.
Constructor Summary | |
---|---|
VinciAnalysisEngineService_impl(java.lang.String serviceConfigPath)
Instantiate Analysis Engine service from a given descriptor. |
|
VinciAnalysisEngineService_impl(java.lang.String serviceConfigPath,
boolean debug)
Instantiate Analysis Engine service from a given descriptor - possibly in debug mode. |
|
VinciAnalysisEngineService_impl(java.lang.String serviceConfigPath,
boolean debug,
java.lang.String instanceId)
Instantiate Analysis Engine from a given descriptor, debug mode, and instance Id |
Method Summary | |
---|---|
Transportable |
eval(Transportable doc)
Main method called by the Vinci Service Layer. |
Descriptor |
getDescriptor()
|
static void |
main(java.lang.String[] args)
|
Transportable |
makeTransportable()
Creates a new (empty) document of the desired type. |
protected void |
start()
Starts this service and associates a ShutdownHook to handle gracefull shutdown. |
void |
stop()
Terminate this service |
Methods inherited from class org.apache.vinci.transport.VinciServableAdapter |
---|
cleanExit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VinciAnalysisEngineService_impl(java.lang.String serviceConfigPath, boolean debug, java.lang.String instanceId) throws java.lang.Exception
aResourceSpecifierPath
- -
descriptor location
java.lang.Exception
public VinciAnalysisEngineService_impl(java.lang.String serviceConfigPath, boolean debug) throws java.lang.Exception
aResourceSpecifierPath
- -
descriptor location
java.lang.Exception
public VinciAnalysisEngineService_impl(java.lang.String serviceConfigPath) throws java.lang.Exception
aResourceSpecifierPath
- -
descriptor location
java.lang.Exception
Method Detail |
---|
public Descriptor getDescriptor()
public Transportable eval(Transportable doc) throws ServiceException
eval
in interface VinciServable
eval
in class VinciServableAdapter
{@link
- org.apache.vinci.transport.Transportable} -
a VinciFrame containing client request
Transportable
- a VinciFrame containg result of
performing the service
ServiceException
- thrown when there is an application level error that should result in the client
receiving the same ServiceException on the other end.protected void start()
public void stop()
public static void main(java.lang.String[] args)
public Transportable makeTransportable()
TransportableFactory
makeTransportable
in interface TransportableFactory
makeTransportable
in class VinciServableAdapter
TransportableFactory.makeTransportable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |