org.universAAL.middleware.service.impl
Class ServiceStrategy
java.lang.Object
java.lang.Thread
org.universAAL.middleware.bus.model.BusStrategy
org.universAAL.middleware.service.impl.ServiceStrategy
- All Implemented Interfaces:
- Runnable
public class ServiceStrategy
- extends BusStrategy
This class implements the BusStrategy for the ServiceBus
- Author:
- mtazari - Saied
Tazari
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
localWaitingCallers
protected ILocalWaitingCallersData localWaitingCallers
localServicesIndex
protected ILocalServicesIndexData localServicesIndex
localServiceSearchResults
protected ILocalServiceSearchResultsData localServiceSearchResults
theCoordinator
protected PeerCard theCoordinator
ServiceStrategy
public ServiceStrategy(CommunicationModule commModule,
ModuleContext mc)
createServiceStrategyDataFactory
protected IServiceStrategyDataFactory createServiceStrategyDataFactory()
handle
public void handle(BusMessage msg,
String senderID)
- Description copied from class:
BusStrategy
- Handle the message. This method is different from the handleMessage(), in
that handeMessage() handle the message asynchronously, while queuing the
messages to preserve the order of the messages. This method is executed
synchronously, without any queuing.
- Specified by:
handle
in class BusStrategy
- Parameters:
msg
- messagesenderID
- sender (bus member) ID- See Also:
#handle(BusMessage, String)
waitForCoordinatorToBeKnown
protected void waitForCoordinatorToBeKnown()
throws InterruptedException
- Throws:
InterruptedException
notifyOnFoundCoordinator
protected void notifyOnFoundCoordinator()
getAllServiceProfiles
public ServiceProfile[] getAllServiceProfiles(String serviceURI)
- This method returns all the globally registered Service Profiles for the
given service URI
- Parameters:
serviceURI
- - the URI of the Service whose profiles are returned
- Returns:
- ServiceProfile[] - the service profiles of the given service
getAllServiceProfilesWithCalleeIDs
public HashMap getAllServiceProfilesWithCalleeIDs(String serviceURI)
Copyright © 2014 universAAL Consortium. All Rights Reserved.