
public abstract class UIStrategyHandler extends UIStrategyCoordinatorMng
UIHandlers and the IDialogManager.
IDialogManager when a user has logOn at a
handler.
IDialogManager is sending a new
UIRequest or updating an existing one.
UIHandler notifies the IDialogManager a
user has finishied a dialog, the UIResponse goes in this message.
UIHandler to derenderize a certain dialog, and it is expecting (and
waiting) for the dataRoot of the
Form.
CoordinatedStrategy.CoordinatorAlreadyExistsExceptionThread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
LAST_USED_HANDLER_MATCH_LEVEL_ADDITION
Last used handler weight is same as the dialog privacy's one.
|
protected Map<String,String> |
lastUsedHandler
To keep track of the last used handler per user.
|
protected RunningDialogsManager |
runningDialogs
The Dialogs Manager keeps track of which dialog is where and what dialog
is handling each handler.
|
dialogManagerPROP_REGISTRATION, PROP_REGISTRATION_IDTYPE_UI_BUS_COORDINATOR_BROADCAST, TYPE_UI_BUS_COORDINATOR_REQUEST, TYPE_UI_BUS_COORDINATOR_RESIGNbus, busModule, commModuleMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
UIStrategyHandler(CommunicationModule commModule) |
UIStrategyHandler(CommunicationModule commModule,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Resource |
cutDialog(String handlerID,
String dialogID) |
protected void |
lostCoordinator()
on Coordination lost: reschedule reRegistration.
|
protected abstract void |
notifyCallerDialogSubmitted(UIResponse response)
check sender and if local send it if not send message.
|
void |
peerLost(PeerCard peer) |
void |
start() |
addRegistration, getRegistryID, isIdRegistered, registryIdIterator, registryIterator, removeAllRegistries, removeMatchingRegistriesgetCoordinator, iAmCoordinator, peerJoined, requestBecomeACoordinator, resignFromCoordinator, sharedObjectAdded, sharedObjectRemoved, spaceJoined, spaceLost, spaceStatusChangedabortAll, abortCall, handle, placeAsynchronousRequest, placeAsynchronousRequest, placeSynchronousRequest, placeSynchronousRequest, sendAsynchronousResponse, sendAsynchronousResponse, sendSynchronousResponsesendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMemberbuildChannelMessage, getBusMember, getLocalBusByName, handleMessage, run, send, setBus, stopThreadactiveCount, 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, yieldpublic static final int LAST_USED_HANDLER_MATCH_LEVEL_ADDITION
protected Map<String,String> lastUsedHandler
protected RunningDialogsManager runningDialogs
public UIStrategyHandler(CommunicationModule commModule, String name)
commModule - name - public UIStrategyHandler(CommunicationModule commModule)
commModule - public void start()
start in class CoordinatedRegistrationManagementprotected abstract void notifyCallerDialogSubmitted(UIResponse response)
response - public void close()
close in class CoordinatedRegistrationManagementpublic void peerLost(PeerCard peer)
peerLost in interface SpaceListenerpeerLost in class CoordinatedStrategyprotected void lostCoordinator()
lostCoordinator in class CoordinatedStrategyCopyright © 2018 universAAL Consortium. All rights reserved.