org.universAAL.middleware.ui.impl.generic
Class CoordinatedRegistrationManagement

Package class diagram package CoordinatedRegistrationManagement
java.lang.Object
  extended by java.lang.Thread
      extended by org.universAAL.middleware.bus.model.BusStrategy
          extended by org.universAAL.middleware.ui.impl.generic.EventBasedStrategy
              extended by org.universAAL.middleware.ui.impl.generic.CallBasedStrategy
                  extended by org.universAAL.middleware.ui.impl.generic.CoordinatedStrategy
                      extended by 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 Resources and values ids. This way Resources can be iterated to do match making, then retrieve their associated ID.

UIStrategy messages

Author:
amedrano

Nested Class Summary
 
Nested classes/interfaces inherited from class org.universAAL.middleware.ui.impl.generic.CoordinatedStrategy
CoordinatedStrategy.CoordinatorAlreadyExistsException
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static String PROP_uAAL_REGISTRATION
          Property to Hold the Registration
static String PROP_uAAL_REGISTRATION_ID
          Property to Hold the RegistrationID
 
Fields inherited from class org.universAAL.middleware.ui.impl.generic.CoordinatedStrategy
TYPE_uAAL_UI_BUS_COORDINATOR_BROADCAST, TYPE_uAAL_UI_BUS_COORDINATOR_REQUEST, TYPE_uAAL_UI_BUS_COORDINATOR_RESIGN
 
Fields inherited from class org.universAAL.middleware.bus.model.BusStrategy
bus, busModule, commModule
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CoordinatedRegistrationManagement(CommunicationModule commModule)
           
CoordinatedRegistrationManagement(CommunicationModule commModule, String name)
           
 
Method Summary
 void addRegistration(String id, Matchable registration)
           
 void close()
          
protected  String getRegistryID(Resource res)
           
protected  boolean isIdRegistered(String id)
           
protected  Iterator<String> registryIdIterator()
           
protected  Iterator<Matchable> registryIterator()
           
 void removeAllRegistries(String id)
           
 void removeMatchingRegistries(String id, Matchable filter)
           
 void start()
          
 
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 org.universAAL.middleware.ui.impl.generic.CallBasedStrategy
abortAll, abortCall, handle, placeAsynchronousRequest, placeAsynchronousRequest, placeSynchronousRequest, placeSynchronousRequest, sendAsynchronousResponse, sendAsynchronousResponse, sendSynchronousResponse
 
Methods inherited from class org.universAAL.middleware.ui.impl.generic.EventBasedStrategy
sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember, sendEventToRemoteBusMember
 
Methods inherited from class org.universAAL.middleware.bus.model.BusStrategy
buildChannelMessage, getBusMember, getLocalBusByName, handleMessage, run, send, setBus, stopThread
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

CoordinatedRegistrationManagement

public CoordinatedRegistrationManagement(CommunicationModule commModule,
                                         String name)
Parameters:
commModule -
name -

CoordinatedRegistrationManagement

public CoordinatedRegistrationManagement(CommunicationModule commModule)
Parameters:
commModule -
Method Detail

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.