com.pervasa.atlas.dev.service
Interface AtlasService

All Known Implementing Classes:
AtlasServiceClass

public interface AtlasService


Method Summary
 void DataHandler(java.lang.String dataPacket, java.lang.String channel)
          Method called by middleware when data arrives from an Atlas node.
 boolean isSubscriber()
          Indicates whether this Service is a push client or not
 void setNodeServiceHandler(NodeServiceHandler handler)
          Method called by NodeServiceHandler to link itself to this Service
 void setProperties(java.util.Properties props)
          Method called by NodeServiceHandler to set properties associated with the device being represented by this service
 

Method Detail

setNodeServiceHandler

public void setNodeServiceHandler(NodeServiceHandler handler)
Method called by NodeServiceHandler to link itself to this Service


setProperties

public void setProperties(java.util.Properties props)
Method called by NodeServiceHandler to set properties associated with the device being represented by this service

Parameters:
props -

DataHandler

public void DataHandler(java.lang.String dataPacket,
                        java.lang.String channel)
Method called by middleware when data arrives from an Atlas node. Only called if AtlasService subscribes to the datachannel it is servicing i.e. it indicates it wants data pushed to it Data handling code can be written in this function's implementation

Parameters:
dataPacket - - contains data sent by a device connected to the Atlas node.
channel - - channel to which device is connected

isSubscriber

public boolean isSubscriber()
Indicates whether this Service is a push client or not