public abstract class UIStrategyHandler extends UIStrategyCoordinatorMng
UIHandler
s 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.CoordinatorAlreadyExistsException
Thread.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.
|
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 |
---|
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, 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 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 CoordinatedRegistrationManagement
protected abstract void notifyCallerDialogSubmitted(UIResponse response)
response
- public void close()
close
in class CoordinatedRegistrationManagement
public void peerLost(PeerCard peer)
peerLost
in interface SpaceListener
peerLost
in class CoordinatedStrategy
protected void lostCoordinator()
lostCoordinator
in class CoordinatedStrategy
Copyright © 2018 universAAL Consortium. All rights reserved.