com.ibm.sensorevent.service.component.accessor
Class AccessorBaseHelper

java.lang.Object
  extended by com.ibm.sensorevent.service.component.accessor.AccessorBaseHelper
Direct Known Subclasses:
AccessorHelper

public abstract class AccessorBaseHelper
extends java.lang.Object


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
AccessorBaseHelper()
           
 
Method Summary
 ISensorEvent convertMapToCompleteEvent(java.util.Map event_map)
          Create ISensorEvent object from event Map Then call handleIBMSensorEvent
 ISensorEvent convertMapToEventPayload(java.util.Map event_payload_map)
          Deprecated. Use convertMapToEventPayload(Map,String,String) instead
 ISensorEvent convertMapToEventPayload(java.util.Map event_payload_map, java.lang.String eventType, java.lang.String sourceId)
          Create ISensorEvent object from event payload Map Then call handleIBMSensorEvent
 ISensorEvent convertStringToEvent(java.lang.String event_xml)
          Create ISensorEvent object from event XML Then call handleIBMSensorEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

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

AccessorBaseHelper

public AccessorBaseHelper()
Method Detail

convertStringToEvent

public ISensorEvent convertStringToEvent(java.lang.String event_xml)
                                  throws SensorEventException
Create ISensorEvent object from event XML Then call handleIBMSensorEvent

Parameters:
XML -
Returns:
ISensorEvent
Throws:
SensorEventException

convertMapToEventPayload

public ISensorEvent convertMapToEventPayload(java.util.Map event_payload_map)
                                      throws SensorEventException
Deprecated. Use convertMapToEventPayload(Map,String,String) instead

Create ISensorEvent object from event payload Map Then call handleIBMSensorEvent

Parameters:
event_map - Name-value pairs to put in the event payload
event_type - Used when creating event with this payload Map
Throws:
SensorEventException

convertMapToEventPayload

public ISensorEvent convertMapToEventPayload(java.util.Map event_payload_map,
                                             java.lang.String eventType,
                                             java.lang.String sourceId)
                                      throws SensorEventException
Create ISensorEvent object from event payload Map Then call handleIBMSensorEvent

Parameters:
event_map - Name-value pairs to put in the event payload
event_type - Used when creating event with this payload Map
Throws:
SensorEventException

convertMapToCompleteEvent

public ISensorEvent convertMapToCompleteEvent(java.util.Map event_map)
                                       throws SensorEventException
Create ISensorEvent object from event Map Then call handleIBMSensorEvent

Parameters:
event_map - Name-value pairs to put in the event payload
event_type - Used when creating event with this payload Map
Throws:
SensorEventException


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.