public class LeoRemoteAnnotator extends Object implements LeoAnnotator
Modifier and Type | Field and Description |
---|---|
protected LeoRemoteAEDescriptor |
descriptor
Descriptor representing the remote annotator.
|
Constructor and Description |
---|
LeoRemoteAnnotator(String brokerURL,
String endPoint)
Create a new LeoRemoteAnnotator with the brokerURL and endPoint variables specified.
|
LeoRemoteAnnotator(String brokerURL,
String endPoint,
String name)
Create a new LeoRemoteAnnotator with the brokerURL, endPoint, and annotator name specified.
|
Modifier and Type | Method and Description |
---|---|
LeoDelegate |
getDescriptor()
Return the Descriptor for this AnalysisEngine or RemoteAnalysisEngine.
|
String |
getName()
Get the name of this annotator.
|
<T extends LeoRemoteAnnotator> |
setName(String name)
Set the name of this annotator.
|
protected LeoRemoteAEDescriptor descriptor
public LeoRemoteAnnotator(String brokerURL, String endPoint)
brokerURL
- ActiveMQ broker URL for remote UIMA-AS serviceendPoint
- Input queue name to which the remote service respondspublic LeoRemoteAnnotator(String brokerURL, String endPoint, String name)
brokerURL
- ActiveMQ broker URL for remote UIMA-AS serviceendPoint
- Input queue name to which the remote service respondsname
- Name of the annotator in the pipelinepublic String getName()
public <T extends LeoRemoteAnnotator> T setName(String name)
name
- String representation of the annotator name to setpublic LeoDelegate getDescriptor() throws Exception
getDescriptor
in interface LeoAnnotator
Exception
- If there is an error generating the descriptor.Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.