org.apache.uima.aae.spi.transport.vm
Class UimaVmMessage

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object>
          extended by org.apache.uima.aae.spi.transport.vm.UimaVmMessage
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>, java.util.Map<java.lang.String,java.lang.Object>, UimaMessage

public class UimaVmMessage
extends java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object>
implements UimaMessage

Wrapper for the Uima message. This wrapper is used for internal messaging between collocated Uima AS service.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
UimaVmMessage()
           
 
Method Summary
 void addBooleanProperty(java.lang.String aPropertyKey, boolean value)
           
 void addIntProperty(java.lang.String aPropertyKey, int value)
           
 void addLongProperty(java.lang.String aPropertyKey, long value)
           
 void addObjectProperty(java.lang.String aPropertyKey, java.lang.Object value)
           
 void addStringCargo(java.lang.String aCargo)
           
 void addStringProperty(java.lang.String aPropertyKey, java.lang.String value)
           
 boolean containsProperty(java.lang.String propertyKey)
           
 boolean getBooleanProperty(java.lang.String aPropertyKey)
           
 int getIntProperty(java.lang.String propertyKey)
           
 long getLongProperty(java.lang.String propertyKey)
           
 java.lang.Object getObjectProperty(java.lang.String aPropertyKey)
           
 java.lang.String getStringCargo()
           
 java.lang.String getStringProperty(java.lang.String propertyKey)
           
 MessageContext toMessageContext(java.lang.String anEndpointName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

UimaVmMessage

public UimaVmMessage()
Method Detail

addIntProperty

public void addIntProperty(java.lang.String aPropertyKey,
                           int value)
Specified by:
addIntProperty in interface UimaMessage

addLongProperty

public void addLongProperty(java.lang.String aPropertyKey,
                            long value)
Specified by:
addLongProperty in interface UimaMessage

addStringProperty

public void addStringProperty(java.lang.String aPropertyKey,
                              java.lang.String value)
Specified by:
addStringProperty in interface UimaMessage

containsProperty

public boolean containsProperty(java.lang.String propertyKey)
Specified by:
containsProperty in interface UimaMessage

getIntProperty

public int getIntProperty(java.lang.String propertyKey)
Specified by:
getIntProperty in interface UimaMessage

getStringProperty

public java.lang.String getStringProperty(java.lang.String propertyKey)
Specified by:
getStringProperty in interface UimaMessage

addStringCargo

public void addStringCargo(java.lang.String aCargo)
Specified by:
addStringCargo in interface UimaMessage

getStringCargo

public java.lang.String getStringCargo()
Specified by:
getStringCargo in interface UimaMessage

toMessageContext

public MessageContext toMessageContext(java.lang.String anEndpointName)
                                throws AsynchAEException
Specified by:
toMessageContext in interface UimaMessage
Throws:
AsynchAEException

getLongProperty

public long getLongProperty(java.lang.String propertyKey)
Specified by:
getLongProperty in interface UimaMessage

addBooleanProperty

public void addBooleanProperty(java.lang.String aPropertyKey,
                               boolean value)
Specified by:
addBooleanProperty in interface UimaMessage

getBooleanProperty

public boolean getBooleanProperty(java.lang.String aPropertyKey)
Specified by:
getBooleanProperty in interface UimaMessage

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap<java.lang.String,java.lang.Object>

addObjectProperty

public void addObjectProperty(java.lang.String aPropertyKey,
                              java.lang.Object value)
Specified by:
addObjectProperty in interface UimaMessage

getObjectProperty

public java.lang.Object getObjectProperty(java.lang.String aPropertyKey)
Specified by:
getObjectProperty in interface UimaMessage


Copyright © 2012. All Rights Reserved.