
public class DistributedMWManagerImpl extends Object implements DistributedBusMemberManager, DistributedLogManager
| Modifier and Type | Field and Description |
|---|---|
static ModuleContext |
context |
static PeerCard |
myPeer |
static String |
NAMESPACE |
static SharedObjectConnector |
shared |
| Constructor and Description |
|---|
DistributedMWManagerImpl(ModuleContext context,
Object[] shareParamsBMLMgmt,
Object[] removeParamsBMLMgmt,
Object[] shareParamsLLMgmt,
Object[] removeParamsLLMgmt,
Object[] shareParamsEvtH,
Object[] removeParamsEvtH) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DistributedBusMemberListener listener,
List<PeerCard> nodes)
Add a new listener.
|
void |
addListener(DistributedLogListener listener,
List<PeerCard> nodes) |
void |
dispose()
Release all the resources
|
boolean |
init()
Initialize the Space Manager
|
void |
loadConfigurations(Dictionary configurations)
This method sets all the configurations for the SpaceManager
|
void |
removeListener(DistributedBusMemberListener listener,
List<PeerCard> nodes)
Remove an existing listener.
|
void |
removeListener(DistributedLogListener listener,
List<PeerCard> nodes) |
static void |
sendMessage(Resource r,
List<PeerCard> receivers) |
static void |
sendMessage(Resource r,
PeerCard receiver) |
static void |
sendMessage(Resource r,
Set<PeerCard> receivers) |
public static final String NAMESPACE
public static PeerCard myPeer
public static ModuleContext context
public static SharedObjectConnector shared
public void addListener(DistributedLogListener listener, List<PeerCard> nodes)
addListener in interface DistributedLogManagerpublic void removeListener(DistributedLogListener listener, List<PeerCard> nodes)
removeListener in interface DistributedLogManagerpublic void addListener(DistributedBusMemberListener listener, List<PeerCard> nodes)
DistributedBusMemberManageraddListener in interface DistributedBusMemberManagerlistener - The callback that is invoked when a change occurs.nodes - The set of nodes on which the listener should be added. An
empty list will subscribe to all nodes, including nodes that
will join the space in the future. Null will subscribe to this
node only and is equivalent with a list that contains the
PeerCard of this node.public void removeListener(DistributedBusMemberListener listener, List<PeerCard> nodes)
DistributedBusMemberManagerremoveListener in interface DistributedBusMemberManagerlistener - The callback that was registered before with
DistributedBusMemberManager.addListener(DistributedBusMemberListener, List).nodes - The set of nodes on which the listener should be removed. An
empty list will unsubscribe from all nodes. Null will
unsubscribe from this node only and is equivalent with a list
that contains the PeerCard of this node.public void loadConfigurations(Dictionary configurations)
ManagerloadConfigurations in interface Managerconfigurations - Dictionary of configurationspublic boolean init()
Managerpublic void dispose()
ManagerCopyright © 2018 universAAL Consortium. All rights reserved.