org.universAAL.middleware.service
Class DefaultServiceCaller
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Caller
org.universAAL.middleware.service.ServiceCaller
org.universAAL.middleware.service.DefaultServiceCaller
- Direct Known Subclasses:
- UserPaswordAuthenticatorClient
public class DefaultServiceCaller
- extends ServiceCaller
The default service caller simply ignores the notification about losing
connection to other instances of the middleware and calls the services either
only in an synchronous way (using the method
ServiceCaller.call(org.universAAL.middleware.service.ServiceRequest)
) or ignores
the asynchronous responses.
- Author:
- mtazari - Saied
Tazari
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServiceCaller
public DefaultServiceCaller(ModuleContext context)
- Constructor for usage by de-serializers.
- Parameters:
context
-
communicationChannelBroken
public void communicationChannelBroken()
- Description copied from class:
ServiceCaller
- This abstract method is called for each member of the bus when the bus is
being stopped.
- Specified by:
communicationChannelBroken
in class ServiceCaller
- See Also:
ServiceCaller.communicationChannelBroken()
handleResponse
public void handleResponse(String reqID,
ServiceResponse response)
- Description copied from class:
ServiceCaller
- 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.- See Also:
ServiceCaller.handleResponse(String, ServiceResponse)
Copyright © 2014 universAAL Consortium. All Rights Reserved.