org.universAAL.middleware.managers.api
Interface AALSpaceEventHandler

Package class diagram package AALSpaceEventHandler
All Known Implementing Classes:
AALSpaceManagerImpl

public interface AALSpaceEventHandler

AALSpaceEventHandler interface. These methods are called by the lower layer in order to manage events.

Author:
Michele Girolami

Method Summary
 void aalSpaceEvent(AALSpaceStatus newStatus)
           
 void aalSpaceJoined(AALSpaceDescriptor descriptor)
          The method is called asynchronously from the bottom layer of the MW after a previous join(...) request.
 void joinRequest(AALSpaceCard spaceCard, PeerCard sender)
          This method allows the AALSpaceManager to manage a join request from a remote peer.
 void leaveRequest(AALSpaceDescriptor spaceCard)
          This method forces the peer to leace an AALSpace
 void mpaInstalled(AALSpaceDescriptor spaceDescriptor)
          Called in order to alert the AALSpace about the installation of a new MPA
 void mpaInstalling(AALSpaceDescriptor spaceDescriptor)
          Called in order to alert the AALSpace about the installation of a new MPA
 void newAALSpacesFound(Set<AALSpaceCard> spaceCards)
          A new AALSpace has been found
 void peerFound(PeerCard peer)
          Method called when a peer joins the AALSpace managed by the AALSpaceManager
 void peerLost(PeerCard peer)
          This method notifies to the coordinator that a peer wants to leave to the AALSpace
 void setListOfPeers(Map<String,PeerCard> peer)
          This method allows to configure the set of peers that actually join the AAL Space managed or joined by this AALSpaceManager
 

Method Detail

aalSpaceJoined

void aalSpaceJoined(AALSpaceDescriptor descriptor)
The method is called asynchronously from the bottom layer of the MW after a previous join(...) request.

Parameters:
descriptor - all the information about the joinined AALSpace

joinRequest

void joinRequest(AALSpaceCard spaceCard,
                 PeerCard sender)
This method allows the AALSpaceManager to manage a join request from a remote peer. In this case this AALSpaceManager is the AALSpace coordinator

Parameters:
spaceCard -
sender -

leaveRequest

void leaveRequest(AALSpaceDescriptor spaceCard)
This method forces the peer to leace an AALSpace

Parameters:
spaceCard -

peerLost

void peerLost(PeerCard peer)
This method notifies to the coordinator that a peer wants to leave to the AALSpace

Parameters:
sender -

peerFound

void peerFound(PeerCard peer)
Method called when a peer joins the AALSpace managed by the AALSpaceManager

Parameters:
peer -

newAALSpacesFound

void newAALSpacesFound(Set<AALSpaceCard> spaceCards)
A new AALSpace has been found

Parameters:
spaceCard -

aalSpaceEvent

void aalSpaceEvent(AALSpaceStatus newStatus)

setListOfPeers

void setListOfPeers(Map<String,PeerCard> peer)
This method allows to configure the set of peers that actually join the AAL Space managed or joined by this AALSpaceManager

Parameters:
peer - Map of peers

mpaInstalling

void mpaInstalling(AALSpaceDescriptor spaceDescriptor)
Called in order to alert the AALSpace about the installation of a new MPA


mpaInstalled

void mpaInstalled(AALSpaceDescriptor spaceDescriptor)
Called in order to alert the AALSpace about the installation of a new MPA



Copyright © 2014 universAAL Consortium. All Rights Reserved.