public class ServiceStrategy extends BusStrategy
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected ILocalServiceSearchResultsData |
localServiceSearchResults |
protected ILocalServicesIndexData |
localServicesIndex |
protected ILocalWaitingCallersData |
localWaitingCallers |
protected PeerCard |
theCoordinator |
bus, busModule, commModule
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ServiceStrategy(CommunicationModule commModule) |
Modifier and Type | Method and Description |
---|---|
protected IServiceStrategyDataFactory |
createServiceStrategyDataFactory() |
ServiceProfile[] |
getAllServiceProfiles(String serviceURI)
This method returns all the globally registered Service Profiles for the
given service URI
|
HashMap<String,List<ServiceProfile>> |
getAllServiceProfilesWithCalleeIDs(String serviceURI) |
void |
handle(BusMessage msg,
String senderID)
Handle the message.
|
void |
injectCall(String callerID,
BusMessage call,
PeerCard receiver) |
protected void |
notifyOnFoundCoordinator() |
protected void |
waitForCoordinatorToBeKnown() |
buildChannelMessage, getBusMember, getLocalBusByName, handleMessage, run, send, setBus, stopThread
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
protected ILocalWaitingCallersData localWaitingCallers
protected ILocalServicesIndexData localServicesIndex
protected ILocalServiceSearchResultsData localServiceSearchResults
protected PeerCard theCoordinator
public ServiceStrategy(CommunicationModule commModule)
protected IServiceStrategyDataFactory createServiceStrategyDataFactory()
public void injectCall(String callerID, BusMessage call, PeerCard receiver)
public void handle(BusMessage msg, String senderID)
BusStrategy
handle
in class BusStrategy
msg
- messagesenderID
- sender (bus member) ID#handle(BusMessage, String)
protected void waitForCoordinatorToBeKnown() throws InterruptedException
InterruptedException
protected void notifyOnFoundCoordinator()
public ServiceProfile[] getAllServiceProfiles(String serviceURI)
serviceURI
- the URI of the Service whose profiles are returnedpublic HashMap<String,List<ServiceProfile>> getAllServiceProfilesWithCalleeIDs(String serviceURI)
Copyright © 2018 universAAL Consortium. All rights reserved.