public class UIStrategyCaller extends UIStrategyHandler
UICaller
s and the IDialogManager
. UICaller
notifies the IDialogManager
there
is a new UIRequest
it whants to display to a user. When ready a
UIResponse will be delivered.
UICaller
notifies the
IDialogManager
a dialog should be suspendend for later resume.
UICaller
calls
for its removal, the data inputed until cancelation will be delibered. Aborts
may also be instructed by the IDialogManager
in representation of the
user.
Modifier and Type | Class and Description |
---|---|
class |
UIStrategyCaller.UIRequestCall |
CoordinatedStrategy.CoordinatorAlreadyExistsException
Thread.State, Thread.UncaughtExceptionHandler
LAST_USED_HANDLER_MATCH_LEVEL_ADDITION, lastUsedHandler, runningDialogs
dialogManager
PROP_REGISTRATION, PROP_REGISTRATION_ID
TYPE_UI_BUS_COORDINATOR_BROADCAST, TYPE_UI_BUS_COORDINATOR_REQUEST, TYPE_UI_BUS_COORDINATOR_RESIGN
bus, busModule, commModule
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
UIStrategyCaller(CommunicationModule commModule) |
UIStrategyCaller(CommunicationModule commModule,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
abortAllPendingRequestsFor(UICaller caller)
A caller is unregistering, and it will be no more reachable, all of its
pending requests must be aborted.
|
void |
close() |
protected void |
lostCoordinator()
Peer will notify that communication channel is broken and then notify an
abort on all pending requests, for all local
UICaller s |
protected void |
notifyCallerDialogSubmitted(UIResponse response) |
void |
peerLost(PeerCard peer)
Coordinator will abort all pending request of the lost peer
|
void |
start() |
cutDialog
addRegistration, getRegistryID, isIdRegistered, registryIdIterator, registryIterator, removeAllRegistries, removeMatchingRegistries
getCoordinator, iAmCoordinator, peerJoined, requestBecomeACoordinator, resignFromCoordinator, sharedObjectAdded, sharedObjectRemoved, spaceJoined, spaceLost, spaceStatusChanged
abortAll, abortCall, handle, placeAsynchronousRequest, placeAsynchronousRequest, placeSynchronousRequest, placeSynchronousRequest, sendAsynchronousResponse, sendAsynchronousResponse, sendSynchronousResponse
sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember
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, stop, stop, suspend, toString, yield
public UIStrategyCaller(CommunicationModule commModule, String name)
commModule
- name
- public UIStrategyCaller(CommunicationModule commModule)
commModule
- public void start()
start
in class UIStrategyHandler
protected void notifyCallerDialogSubmitted(UIResponse response)
notifyCallerDialogSubmitted
in class UIStrategyHandler
public void close()
close
in class UIStrategyHandler
public void abortAllPendingRequestsFor(UICaller caller)
caller
- public void peerLost(PeerCard peer)
peerLost
in interface SpaceListener
peerLost
in class UIStrategyHandler
protected void lostCoordinator()
UICaller
slostCoordinator
in class UIStrategyHandler
Copyright © 2018 universAAL Consortium. All rights reserved.