|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.managers.deploy.DeployManagerImpl
public class DeployManagerImpl
The implementation of the DeployManager
Constructor Summary | |
---|---|
DeployManagerImpl(ModuleContext context,
ModuleConfigHome configHome)
|
Method Summary | |
---|---|
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)
Remove an installed uApp by means of the unique pair String
serviceId and String id |
void |
sharedObjectAdded(Object sharedObj,
Object arg1)
|
void |
sharedObjectRemoved(Object sharedObj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeployManagerImpl(ModuleContext context, ModuleConfigHome configHome)
Method Detail |
---|
public boolean init()
Manager
init
in interface Manager
public InstallationResultsDetails requestToInstall(UAPPPackage application)
DeployManager
#requestToInstall(URI, Map, String)
method once for each
application that is contained in a uSrv
requestToInstall
in interface DeployManager
application
- UAPPPackage
the representing the uAPP application
deployment plan to install on uAAL
InstallationResults
as result of the installationpublic InstallationResultsDetails requestToUninstall(String serviceId, String id)
DeployManager
String
serviceId and String
id
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 remove
public 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 partpublic 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
dispose
in interface 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |