com.apama.iaf.plugin
Interface EventDecoder

All Known Subinterfaces:
EventCodec
All Known Implementing Classes:
AbstractEventCodec

public interface EventDecoder

EventDecoder defines the interface that Java IAF decoders implement so they can be used by the IAF to convert a downstream event from the transport into the normalised form required by the Semantic Mapper.


Method Summary
 void sendTransportEvent(java.lang.Object event, TimestampSet timestamps)
          Called by the event transport to decode a downstream event using a Java Codec, which will then send it on to the Semantic Mapper.
 

Method Detail

sendTransportEvent

void sendTransportEvent(java.lang.Object event,
                        TimestampSet timestamps)
                        throws CodecException,
                               SemanticMapperException
Called by the event transport to decode a downstream event using a Java Codec, which will then send it on to the Semantic Mapper. It is assumed that the encoder and transport share the same definition of the content of the event, so that the transport can effectively interpret the event.

Parameters:
event - An object representing the event to be decoded, in a format shared by the decoder and transport.
timestamps - A TimestampSet representing the timestamps attached to the event.
Throws:
CodecException - Thrown by the decoder if the event provided has an invalid format.
SemanticMapperException - Thrown if an error occurred during processing of the message by the Semantic Mapper.


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG