org.universAAL.ui.dm
Class DMServiceCaller

Package class diagram package DMServiceCaller
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Caller
          extended by org.universAAL.middleware.service.ServiceCaller
              extended by org.universAAL.ui.dm.DMServiceCaller

public class DMServiceCaller
extends ServiceCaller

DMs ServiceCaller. To be able to call services like consulting user profiles, starting UI applications, etc...

Author:
mtazari

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
DMServiceCaller(ModuleContext context)
          Constructor.
 
Method Summary
 void communicationChannelBroken()
          This abstract method is called for each member of the bus when the bus is being stopped.
 void handleResponse(String reqID, ServiceResponse response)
          Will be called automatically in a new thread whenever the response corresponding to a previous call to ServiceCaller.sendRequest(ServiceRequest) is ready.
 
Methods inherited from class org.universAAL.middleware.service.ServiceCaller
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, removeAvailabilitySubscription, sendRequest
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMServiceCaller

public DMServiceCaller(ModuleContext context)
Constructor.

Parameters:
context -
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is being stopped.

Specified by:
communicationChannelBroken in class ServiceCaller

handleResponse

public void handleResponse(String reqID,
                           ServiceResponse response)
Will be called automatically in a new thread whenever the response corresponding to a previous call to ServiceCaller.sendRequest(ServiceRequest) is ready.

Specified by:
handleResponse in class ServiceCaller
Parameters:
reqID - the ID returned by the previous call to ServiceCaller.sendRequest(ServiceRequest).
response - the expected response.


Copyright © 2014 universAAL Consortium. All Rights Reserved.