public class DeployManagerImpl extends Object implements DeployManager, DeployManagerEventHandler, SharedObjectListener, AALSpaceListener
Constructor and Description |
---|
DeployManagerImpl(ModuleContext context,
ModuleConfigHome configHome) |
Modifier and Type | Method and Description |
---|---|
void |
aalSpaceJoined(AALSpaceDescriptor spaceDescriptor)
Method to find the set of target peers according to the multipart
applicatio
|
void |
aalSpaceLost(AALSpaceDescriptor spaceDescriptor)
Called as soon as an AALSpace has been left
|
void |
aalSpaceStatusChanged(AALSpaceStatus status)
Called when the AALSpace changes status
|
void |
dispose()
Release all the resources
|
boolean |
init()
Initialize the AALSpace Manager
|
void |
installationPartNotification(UAPPCard card,
String partID,
PeerCard peer,
UAPPPartStatus status)
Method called back in order to notifiy the result of a request to install
|
boolean |
isDeployCoordinator()
True if I'm the Deploy coordinator
|
void |
loadConfigurations(Dictionary configurations)
This method sets all the configurations for the AALSpaceManager
|
void |
newPeerJoined(PeerCard peer)
Called when a peers joins the AALSpace
|
void |
peerLost(PeerCard peer)
Called when a Peer leaves the AALSpace
|
InstallationResultsDetails |
requestToInstall(UAPPPackage application)
This method is invoked in order to install a multi-part application in
the AALSpace.
|
InstallationResultsDetails |
requestToUninstall(String serviceId,
String id)
|
void |
sharedObjectAdded(Object sharedObj,
Object arg1) |
void |
sharedObjectRemoved(Object sharedObj) |
public DeployManagerImpl(ModuleContext context, ModuleConfigHome configHome)
public boolean init()
Manager
public InstallationResultsDetails requestToInstall(UAPPPackage application)
DeployManager
#requestToInstall(URI, Map, String)
method once for each
application that is contained in a uSrvrequestToInstall
in interface DeployManager
application
- UAPPPackage
the representing the uAPP application
deployment plan to install on uAALInstallationResults
as result of the installationpublic InstallationResultsDetails requestToUninstall(String serviceId, String id)
DeployManager
requestToUninstall
in interface DeployManager
serviceId
- the String
representing the unique identifier of the
service provided by the uStoreid
- the String
representing the unique id (with the
service) of the uApp to removepublic void installationPartNotification(UAPPCard card, String partID, PeerCard peer, UAPPPartStatus status)
DeployManagerEventHandler
installationPartNotification
in interface DeployManagerEventHandler
card
- The MPA to whic the peer refers topartID
- Part idpeer
- The Peer sending the resultstatus
- Status of the part @public void sharedObjectAdded(Object sharedObj, Object arg1)
sharedObjectAdded
in interface SharedObjectListener
public void sharedObjectRemoved(Object sharedObj)
sharedObjectRemoved
in interface SharedObjectListener
public void aalSpaceJoined(AALSpaceDescriptor spaceDescriptor)
aalSpaceJoined
in interface AALSpaceListener
mpa
- the MPApublic void aalSpaceLost(AALSpaceDescriptor spaceDescriptor)
AALSpaceListener
aalSpaceLost
in interface AALSpaceListener
spaceDescriptor
- Space descepublic void dispose()
Manager
public void loadConfigurations(Dictionary configurations)
Manager
loadConfigurations
in interface Manager
configurations
- Dictionary of configurationspublic void newPeerJoined(PeerCard peer)
AALSpaceListener
newPeerJoined
in interface AALSpaceListener
peer
- PeerCardpublic void peerLost(PeerCard peer)
AALSpaceListener
peerLost
in interface AALSpaceListener
public boolean isDeployCoordinator()
DeployManager
isDeployCoordinator
in interface DeployManager
true
if and only if the node has the Deploy Manager
Coordinator rolepublic void aalSpaceStatusChanged(AALSpaceStatus status)
AALSpaceListener
aalSpaceStatusChanged
in interface AALSpaceListener
Copyright © 2015 universAAL Consortium. All Rights Reserved.