org.universAAL.middleware.ui.impl.generic
Class CoordinatedRegistrationManagement
java.lang.Object
java.lang.Thread
org.universAAL.middleware.bus.model.BusStrategy
org.universAAL.middleware.ui.impl.generic.EventBasedStrategy
org.universAAL.middleware.ui.impl.generic.CallBasedStrategy
org.universAAL.middleware.ui.impl.generic.CoordinatedStrategy
org.universAAL.middleware.ui.impl.generic.CoordinatedRegistrationManagement
- All Implemented Interfaces:
- Runnable, SharedObjectListener, AALSpaceListener
- Direct Known Subclasses:
- UIStrategyCoordinatorMng
public class CoordinatedRegistrationManagement
- extends CoordinatedStrategy
Strategy Stack that is in charge of managing registrations, generally a
registration is composed of Matchable
information that is tied to an Id.
Thus the main data representation is a Map
of keys Resource
s and
values id
s. This way Resources can be iterated to do match making,
then retrieve their associated ID.
- Author:
- amedrano
Methods inherited from class org.universAAL.middleware.ui.impl.generic.CoordinatedStrategy |
aalSpaceJoined, aalSpaceLost, aalSpaceStatusChanged, getCoordinator, iAmCoordinator, lostCoordinator, newPeerJoined, peerLost, requestBecomeACoordinator, resignFromCoordinator, sharedObjectAdded, sharedObjectRemoved |
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, stop, stop, suspend, toString, yield |
PROP_uAAL_REGISTRATION_ID
public static final String PROP_uAAL_REGISTRATION_ID
- Property to Hold the RegistrationID
- See Also:
- Constant Field Values
PROP_uAAL_REGISTRATION
public static final String PROP_uAAL_REGISTRATION
- Property to Hold the Registration
- See Also:
- Constant Field Values
CoordinatedRegistrationManagement
public CoordinatedRegistrationManagement(CommunicationModule commModule,
String name)
- Parameters:
commModule
- name
-
CoordinatedRegistrationManagement
public CoordinatedRegistrationManagement(CommunicationModule commModule)
- Parameters:
commModule
-
start
public void start()
-
- Overrides:
start
in class CoordinatedStrategy
addRegistration
public final void addRegistration(String id,
Matchable registration)
removeAllRegistries
public final void removeAllRegistries(String id)
removeMatchingRegistries
public final void removeMatchingRegistries(String id,
Matchable filter)
registryIterator
protected final Iterator<Matchable> registryIterator()
getRegistryID
protected final String getRegistryID(Resource res)
isIdRegistered
protected final boolean isIdRegistered(String id)
registryIdIterator
protected final Iterator<String> registryIdIterator()
close
public void close()
-
- Overrides:
close
in class CoordinatedStrategy
Copyright © 2014 universAAL Consortium. All Rights Reserved.