|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.cybernode.StagedDataManager
public class StagedDataManager
A utility to assist in downloading and installing data for a service.
| Constructor Summary | |
|---|---|
StagedDataManager(ComputeResource computeResource)
Create a StagedDataManager |
|
| Method Summary | |
|---|---|
Map<StagedData,DownloadRecord[]> |
download()
Download any artifacts the service requires |
Map<StagedData,DownloadRecord[]> |
getDownloadedArtifacts()
Get the map of StagedData keys and
DownloadRecord values for each
downloaded item. |
DownloadRecord[] |
getDownloadRecords()
Get all DownloadRecords |
Collection<PlatformCapability> |
getInstalledPlatformCapabilities()
Get any PlatformCapability
instances that were installed |
PlatformCapability[] |
removeInstalledPlatformCapabilities()
Remove any installed PlatformCapability components |
PlatformCapability[] |
removeInstalledPlatformCapabilities(boolean force)
Remove installed PlatformCapability components |
void |
removeStagedData()
Remove any installed StagedData |
void |
setServiceElement(ServiceElement sElem)
|
Collection<SystemRequirements.SystemComponent> |
verifyPlatformCapabilities()
Verify that required platform capabilities are present |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StagedDataManager(ComputeResource computeResource)
computeResource - The compute resource| Method Detail |
|---|
public void setServiceElement(ServiceElement sElem)
sElem - The service element informationpublic PlatformCapability[] removeInstalledPlatformCapabilities()
public PlatformCapability[] removeInstalledPlatformCapabilities(boolean force)
force - Whether to remove the PlatformCapability, regardless of
whether the remove on destroy attribute of the StatedData element is true
public void removeStagedData()
public Collection<PlatformCapability> getInstalledPlatformCapabilities()
PlatformCapability
instances that were installed
PlatformCapability instances
that were installed. If there were none installed, return a zero-length
collectionpublic DownloadRecord[] getDownloadRecords()
DownloadRecord
instances that represent the download of a
StagedData instance. If nothing
was downloaded return a zero-length arraypublic Map<StagedData,DownloadRecord[]> getDownloadedArtifacts()
StagedData keys and
DownloadRecord values for each
downloaded item.
StagedData keys and
DownloadRecord values for each
downloaded item. If nothing was downloaded, return an empty map
public Map<StagedData,DownloadRecord[]> download()
throws Exception
StagedData keys and
DownloadRecord values for each
downloaded item. If nothing was downloaded, return an empty map
Exception - If errors occur downloading or creating
PlatformCapability instancespublic Collection<SystemRequirements.SystemComponent> verifyPlatformCapabilities()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||