public interface AALSpaceModule extends Module
Modifier and Type | Method and Description |
---|---|
void |
addPeer(AALSpaceDescriptor aalSpaceDescriptor,
PeerCard peer)
This method allows to add a new Peer to the AALSpace.
|
void |
announceNewPeer(AALSpaceCard aalSpaceCard,
PeerCard peerCard)
This method propagates the event of new PeerAdded to the whole AALSpace
|
void |
configureAALSpaceChannel()
This method configures the channel used in order to send/receive AAL
Space messages
|
void |
destroyAALSpace(AALSpaceCard aalSpaceCard)
Destroy an AAL Space
|
List<AALSpaceCard> |
getAALSpaces()
This method fetches a list of AALSpaces without any filter
|
List<AALSpaceCard> |
getAALSpaces(Dictionary<String,String> filters)
This method fetches a list of AALSpaces according to a filter
|
List<String> |
getPeersAddress()
This method fetches the list of peer address joining to the same AAL
Space
|
void |
joinAALSpace(PeerCard spaceCoordinator,
AALSpaceCard aalSpaceCard)
This method allows to join to an existing AALSpace
|
void |
leaveAALSpace(PeerCard spaceCoordinator,
AALSpaceCard aalSpaceCard)
This method allows to leave an AALSpace
|
void |
messageFromSpace(AALSpaceMessage message,
PeerCard sender)
This method is called as soon as an AALSpaceMessage has been received
|
void |
newAALSpace(AALSpaceCard aalSpaceCard)
This method creates a new AALSpace
|
void |
renewAALSpace(AALSpaceCard aalSpaceCard)
This method renews the AALSpace
|
void |
requestPeerCard(AALSpaceDescriptor spaceDescriptor,
String peerAddress)
This method allows to send a request for the PeerCard of the peer with
the specified address
|
void |
requestToLeave(AALSpaceDescriptor aalSpaceDescriptor)
This method announces to all the peers to leave the AAL space
|
dispose, getDescription, getName, getProvider, getVersion, init, loadConfigurations
List<AALSpaceCard> getAALSpaces()
List<AALSpaceCard> getAALSpaces(Dictionary<String,String> filters)
filters
- A set of key, value pairs for filtering the AAL Spacesvoid newAALSpace(AALSpaceCard aalSpaceCard)
configurations
- The configuration parameters for the AALSpacevoid renewAALSpace(AALSpaceCard aalSpaceCard)
spaceCard
- void destroyAALSpace(AALSpaceCard aalSpaceCard)
spaceCard
- AALSpace to destroyvoid joinAALSpace(PeerCard spaceCoordinator, AALSpaceCard aalSpaceCard)
spaceCoordinator
- The PeerCard of the AALSpace coordinator to which to sent the
requestspaceCard
- The AALSpaceCard of the AAL space the peer aims to joinvoid leaveAALSpace(PeerCard spaceCoordinator, AALSpaceCard aalSpaceCard)
spaceCard
- Space Card of the AALSpace to leavevoid requestToLeave(AALSpaceDescriptor aalSpaceDescriptor)
spaceDescriptor
- void requestPeerCard(AALSpaceDescriptor spaceDescriptor, String peerAddress)
peerAddress
- the address of the peerspaceDescriptor
- the AAL Space descriptorvoid messageFromSpace(AALSpaceMessage message, PeerCard sender)
message
- void addPeer(AALSpaceDescriptor aalSpaceDescriptor, PeerCard peer)
spaceDescriptor
- All the information regarding the AALSpace for the new Peerpeer
- The Peer to add to the AALSpacevoid announceNewPeer(AALSpaceCard aalSpaceCard, PeerCard peerCard)
spaceCard
- The AALSpace where to propagate the eventpeerCard
- The new peer addedvoid configureAALSpaceChannel()
Copyright © 2015 universAAL Consortium. All Rights Reserved.