
public class DeployManagerImpl extends Object implements DeployManager, DeployManagerEventHandler, SharedObjectListener, SpaceListener
| Constructor and Description |
|---|
DeployManagerImpl(ModuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Release all the resources
|
boolean |
init()
Initialize the Space 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 SpaceManager
|
void |
peerJoined(PeerCard peer)
Called when a peers joins the Space
|
void |
peerLost(PeerCard peer)
Called when a Peer leaves the Space
|
InstallationResultsDetails |
requestToInstall(UAPPPackage application)
This method is invoked in order to install a multi-part application in
the Space.
|
InstallationResultsDetails |
requestToUninstall(String serviceId,
String id)
|
void |
sharedObjectAdded(Object sharedObj,
Object arg1) |
void |
sharedObjectRemoved(Object sharedObj) |
void |
spaceJoined(SpaceDescriptor spaceDescriptor)
Method to find the set of target peers according to the multipart
applicatio
|
void |
spaceLost(SpaceDescriptor spaceDescriptor)
Called as soon as an Space has been left
|
void |
spaceStatusChanged(SpaceStatus status)
Called when the Space changes status
|
public DeployManagerImpl(ModuleContext context)
public boolean init()
Managerpublic InstallationResultsDetails requestToInstall(UAPPPackage application)
DeployManager#requestToInstall(URI, Map, String) method once for each
application that is contained in a uSrvrequestToInstall in interface DeployManagerapplication - UAPPPackage the representing the uAPP application
deployment plan to install on universAALInstallationResults as result of the installationpublic InstallationResultsDetails requestToUninstall(String serviceId, String id)
DeployManagerrequestToUninstall in interface DeployManagerserviceId - 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)
DeployManagerEventHandlerinstallationPartNotification in interface DeployManagerEventHandlercard - 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 SharedObjectListenerpublic void sharedObjectRemoved(Object sharedObj)
sharedObjectRemoved in interface SharedObjectListenerpublic void spaceJoined(SpaceDescriptor spaceDescriptor)
spaceJoined in interface SpaceListenermpa - the MPApublic void spaceLost(SpaceDescriptor spaceDescriptor)
SpaceListenerspaceLost in interface SpaceListenerspaceDescriptor - Space descriptorpublic void dispose()
Managerpublic void loadConfigurations(Dictionary configurations)
ManagerloadConfigurations in interface Managerconfigurations - Dictionary of configurationspublic void peerJoined(PeerCard peer)
SpaceListenerpeerJoined in interface SpaceListenerpeer - PeerCardpublic void peerLost(PeerCard peer)
SpaceListenerpeerLost in interface SpaceListenerpublic boolean isDeployCoordinator()
DeployManagerisDeployCoordinator in interface DeployManagertrueif and only if the node has the Deploy Manager
Coordinator rolepublic void spaceStatusChanged(SpaceStatus status)
SpaceListenerspaceStatusChanged in interface SpaceListenerCopyright © 2018 universAAL Consortium. All rights reserved.