public class CoordinatedRegistrationManagement extends CoordinatedStrategy
Matchable
information that is tied to an
Id. Map
of keys Resource
s
and values id
s. This way Resources can be iterated to do match
making, then retrieve their associated ID. CoordinatedStrategy.CoordinatorAlreadyExistsException
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static String |
PROP_REGISTRATION
Property to Hold the Registration
|
static String |
PROP_REGISTRATION_ID
Property to Hold the RegistrationID
|
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 |
---|
CoordinatedRegistrationManagement(CommunicationModule commModule) |
CoordinatedRegistrationManagement(CommunicationModule commModule,
String name) |
Modifier and Type | Method and Description |
---|---|
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() |
getCoordinator, iAmCoordinator, lostCoordinator, peerJoined, peerLost, 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 String PROP_REGISTRATION_ID
public static final String PROP_REGISTRATION
public CoordinatedRegistrationManagement(CommunicationModule commModule, String name)
commModule
- name
- public CoordinatedRegistrationManagement(CommunicationModule commModule)
commModule
- public void start()
start
in class CoordinatedStrategy
public final void removeAllRegistries(String id)
protected final boolean isIdRegistered(String id)
public void close()
close
in class CoordinatedStrategy
Copyright © 2018 universAAL Consortium. All rights reserved.