org.apache.uima.collection.impl.cpm.vinci
Class Vinci

java.lang.Object
  extended by org.apache.uima.collection.impl.cpm.vinci.Vinci

public class Vinci
extends java.lang.Object


Nested Class Summary
static class Vinci.AFFactory
           
 
Field Summary
static java.lang.String VNS_HOST
           
static java.lang.String VNS_PORT
           
 
Constructor Summary
Vinci()
           
 
Method Summary
static java.lang.String extractKEYSAsString(AFrame frame)
           
static java.lang.String getContentFromDATACas(CasData aCas)
           
static java.lang.String getFeatureValueByType(CasData aCAS, java.lang.String featureName)
           
static AFrame produceAFrame(java.lang.String cmd, java.lang.String content)
           
static AFrame replyWithAnalysis(BaseClient conn, VinciFrame requestFrame)
          Package the VinciFrame containing result of the requested operation into a Vinci Data frame.
static AFrame replyWithAnalysis(VinciClient conn, VinciFrame requestFrame)
          Package the VinciFrame containing result of the requested operation into a Vinci Data frame.
 VinciFrame replyWithError(java.lang.String errorMsg)
          Creates and populates an error frame.
static java.lang.String stripVinciFrame(VinciFrame aFrame)
          Returns a content from a given VinciFrame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VNS_HOST

public static final java.lang.String VNS_HOST
See Also:
Constant Field Values

VNS_PORT

public static final java.lang.String VNS_PORT
See Also:
Constant Field Values
Constructor Detail

Vinci

public Vinci()
Method Detail

replyWithError

public VinciFrame replyWithError(java.lang.String errorMsg)
Creates and populates an error frame.

Parameters:
errorMsg - - error message to place in the error frame
Returns:
VinciFrame instance containing error

replyWithAnalysis

public static AFrame replyWithAnalysis(BaseClient conn,
                                       VinciFrame requestFrame)
                                throws java.lang.Exception
Package the VinciFrame containing result of the requested operation into a Vinci Data frame.

Parameters:
{@link - org.apache.vinci.transport.VinciFrame} containing result of thsi service operation
Returns:
VinciFrame VinciData frame.
Throws:
java.lang.Exception

replyWithAnalysis

public static AFrame replyWithAnalysis(VinciClient conn,
                                       VinciFrame requestFrame)
                                throws java.lang.Exception
Package the VinciFrame containing result of the requested operation into a Vinci Data frame.

Parameters:
{@link - org.apache.vinci.transport.VinciFrame} containing result of thsi service operation
Returns:
VinciFrame VinciData frame.
Throws:
java.lang.Exception

produceAFrame

public static AFrame produceAFrame(java.lang.String cmd,
                                   java.lang.String content)

extractKEYSAsString

public static java.lang.String extractKEYSAsString(AFrame frame)

getFeatureValueByType

public static java.lang.String getFeatureValueByType(CasData aCAS,
                                                     java.lang.String featureName)

getContentFromDATACas

public static java.lang.String getContentFromDATACas(CasData aCas)

stripVinciFrame

public static java.lang.String stripVinciFrame(VinciFrame aFrame)
Returns a content from a given VinciFrame.



Copyright © 2013. All Rights Reserved.