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

java.lang.Object
  extended by com.ibm.sensorevent.service.component.accessor.AccessorBaseHelper
      extended by com.ibm.sensorevent.service.component.accessor.AccessorHelper

public abstract class AccessorHelper
extends AccessorBaseHelper


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
AccessorHelper()
           
 
Method Summary
protected abstract  void handleIBMSensorEvent(ISensorEvent event)
          This method gets called by the framework when onMessage is called and the message is an ISensorEvent in some form Assumes the necessary conversion to ISensorEvent has been done.
protected abstract  void handleNonIBMSensorEvent(javax.jms.Message message)
          This method gets called by the framework when onMessage is called and the message is NOT an ISensorEvent in some form Assumes no conversion to ISensorEvent has been done.
 void onMessage(javax.jms.Message message)
          Message handler for JMS messages; calls the method onIBMSensorEvent if the message is a sensor event or calls onEvent if the message is not an IBMSensorEvent
 
Methods inherited from class com.ibm.sensorevent.service.component.accessor.AccessorBaseHelper
convertMapToCompleteEvent, convertMapToEventPayload, convertMapToEventPayload, convertStringToEvent
 
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

AccessorHelper

public AccessorHelper()
Method Detail

handleIBMSensorEvent

protected abstract void handleIBMSensorEvent(ISensorEvent event)
This method gets called by the framework when onMessage is called and the message is an ISensorEvent in some form Assumes the necessary conversion to ISensorEvent has been done.

Parameters:
event -

handleNonIBMSensorEvent

protected abstract void handleNonIBMSensorEvent(javax.jms.Message message)
This method gets called by the framework when onMessage is called and the message is NOT an ISensorEvent in some form Assumes no conversion to ISensorEvent has been done.

Parameters:
message -

onMessage

public void onMessage(javax.jms.Message message)
Message handler for JMS messages; calls the method onIBMSensorEvent if the message is a sensor event or calls onEvent if the message is not an IBMSensorEvent

Parameters:
message - the MMS message to process


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