public class Report extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Report.PACKAGESTATUS
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
|
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
Object logger.
|
protected static long |
serialVersionUID |
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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
|
protected static final long serialVersionUID
protected final org.gcube.common.core.utils.logging.GCUBELog logger
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)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 reportpublic void addRI(String riid, org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo pack)
riid - the RI identifierpack - the package infopublic 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 reportpublic String getPackageStatus(int i)
i - the position in the reportpublic void close()
public void save()
throws IOException
IOException - if the saving failspublic boolean delete()
throws IOException
IOExceptionpublic static Report load(String id) throws Report.ReportNotFoundException, IOException, Report.ReportNotValidException, Exception
id - the ID of the report to loadIOException - if the report cannot be loadedReport.ReportNotValidException - if the string is not a valid report serializationException - if the report is not foundReport.ReportNotFoundExceptionpublic 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 statusCopyright © 2015. All Rights Reserved.