org.universAAL.context.space.serv
Class SCallee

Package class diagram package SCallee
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Callee
          extended by org.universAAL.middleware.service.ServiceCallee
              extended by org.universAAL.context.space.serv.SCallee

public class SCallee
extends ServiceCallee

The service callee receives all service calls issued to the profiling server through the service bus. Converts them to requests to CHE and relays the result.

Author:
alfiva

Field Summary
protected static String NAMESPACE
          Default namespace root.
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
protected SCallee(ModuleContext context)
          Default constructor.
protected SCallee(ModuleContext context, ServiceProfile[] realizedServices)
          Default 2-argument constructor.
 
Method Summary
 void communicationChannelBroken()
          This abstract method is called for each member of the bus when the bus is being stopped.
 ServiceResponse handleCall(ServiceCall call)
          The actual service method of the ServiceCallee.
 
Methods inherited from class org.universAAL.middleware.service.ServiceCallee
addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
 
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
 

Field Detail

NAMESPACE

protected static final String NAMESPACE
Default namespace root.

See Also:
Constant Field Values
Constructor Detail

SCallee

protected SCallee(ModuleContext context,
                  ServiceProfile[] realizedServices)
Default 2-argument constructor. Must not be used.

Parameters:
context - uAAL module context
realizedServices - provided service profiles

SCallee

protected SCallee(ModuleContext context)
Default constructor.

Parameters:
context - uAAL module context
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: ServiceCallee
This abstract method is called for each member of the bus when the bus is being stopped.

Specified by:
communicationChannelBroken in class ServiceCallee

handleCall

public ServiceResponse handleCall(ServiceCall call)
Description copied from class: ServiceCallee
The actual service method of the ServiceCallee. It is called by the bus whenever there is a call that need to be serviced by this ServiceCallee.

Specified by:
handleCall in class ServiceCallee
Parameters:
call - the call that needs to be serviced.
Returns:
the result of the call execution.


Copyright © 2014 universAAL Consortium. All Rights Reserved.