|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.vremanagement.deployer.impl.operators.common.Report
public class Report
Creates a report of the deployment operations to send to the DLManagement Service
| Nested Class Summary | |
|---|---|
static class |
Report.PACKAGESTATUS
possible package status on the report |
static class |
Report.ReportNotFoundException
ReportNotFoundException exception |
static class |
Report.ReportNotValidException
ReportNotValidException exception |
static class |
Report.REPORTSTATUS
|
static class |
Report.TYPE
report type |
| Field Summary | |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
Object logger. |
| Constructor Summary | |
|---|---|
Report(org.apache.axis.message.addressing.EndpointReferenceType callbackEPR,
String callbackID,
int numOfPackages,
Report.TYPE type,
org.gcube.common.core.scope.GCUBEScope callerScope)
Creates a new empty report |
|
| Method Summary | |
|---|---|
void |
addPackage(org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo deployedpackage,
Report.PACKAGESTATUS status,
int position,
String... message)
Adds a new package to the report |
void |
addRI(String riid,
org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo pack)
Adds a new RunningInstance ID to the report |
void |
close()
Closes the report |
boolean |
delete()
|
org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo |
getPackageInfo(int i)
Gets the package information in the given position in the report |
String |
getPackageStatus(int i)
Gets the deployment status of the package in the given position in the report |
static Report |
load(String id)
Loads the deployment report |
void |
save()
Saves the report on the local file system |
void |
send()
Sends the report to the DLManagement Service |
void |
updatePackageStatus(org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo p,
Report.PACKAGESTATUS status,
String... message)
Updates the status of the given package in the report |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.gcube.common.core.utils.logging.GCUBELog logger
| Constructor Detail |
|---|
public Report(org.apache.axis.message.addressing.EndpointReferenceType callbackEPR,
String callbackID,
int numOfPackages,
Report.TYPE type,
org.gcube.common.core.scope.GCUBEScope callerScope)
callbackEPR - the callback EndpointReference where to send the reportcallbackID - the session ID for the deploymentnumOfPackages - number of packages that compose the reporttype - the report type (deploy/undeploy)| Method Detail |
|---|
public void addPackage(org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo deployedpackage,
Report.PACKAGESTATUS status,
int position,
String... message)
deployedpackage - the information about the deployed packagestatus - the final status of the deployment (started/deployed/failed...)position - the position in the report
public void addRI(String riid,
org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo pack)
riid - the RI identifierpack - the package info
public void send()
throws IOException
IOException - if the generation and/or the sending of the report failspublic org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo getPackageInfo(int i)
i - the position in the report
public String getPackageStatus(int i)
i - the position in the report
public void close()
public void save()
throws IOException
IOException - if the saving fails
public boolean delete()
throws IOException
IOException
public static Report load(String id)
throws Report.ReportNotFoundException,
IOException,
Report.ReportNotValidException,
Exception
id - the ID of the report to load
IOException - if the report cannot be loaded
Report.ReportNotValidException - if the string is not a valid report serialization
Exception - if the report is not found
Report.ReportNotFoundException
public void updatePackageStatus(org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo p,
Report.PACKAGESTATUS status,
String... message)
p - the package to updatestatus - the new statusmessage - the message associated to the new status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||