org.gcube.vremanagement.resourcemanager.porttypes
Class Reporting

java.lang.Object
  extended by org.gcube.common.core.porttypes.GCUBEPortType
      extended by org.gcube.vremanagement.resourcemanager.porttypes.Reporting
All Implemented Interfaces:
javax.xml.rpc.server.ServiceLifecycle

public class Reporting
extends org.gcube.common.core.porttypes.GCUBEPortType

Reporting portType implementation

Author:
Manuele Simi (CNR)

Field Summary
protected  org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger.
 
Fields inherited from class org.gcube.common.core.porttypes.GCUBEPortType
initialized
 
Constructor Summary
Reporting()
           
 
Method Summary
protected  void addScopeToInstanceState(org.gcube.common.core.scope.GCUBEScope scope)
          Adds the scope to the current service's instance
protected  InstanceState getInstanceState()
          Gets the instance state
 String getReport(String ID)
          Gets a Resource Report
protected  org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
           
 void sendReport(org.gcube.vremanagement.resourcemanager.stubs.reporting.SendReportParameters reportMessage)
          Receives a deployment session.
 
Methods inherited from class org.gcube.common.core.porttypes.GCUBEPortType
destroy, init, onFailure, onInitialisation, onReady, onStateChange, onUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.gcube.common.core.utils.logging.GCUBELog logger
Object logger.

Constructor Detail

Reporting

public Reporting()
Method Detail

sendReport

public void sendReport(org.gcube.vremanagement.resourcemanager.stubs.reporting.SendReportParameters reportMessage)
                throws org.gcube.common.core.faults.GCUBEFault
Receives a deployment session. It is called by the Deployer services on the GHNs contacted within the #addResources(AddResourcesParameters) operation

Parameters:
session - the resource session
Throws:
org.gcube.common.core.faults.GCUBEFault - if the session does not have a valid serialization

getReport

public String getReport(String ID)
                 throws org.gcube.vremanagement.resourcemanager.stubs.reporting.NoSuchReportFaultType
Gets a Resource Report

Parameters:
ID - the session identifier
Returns:
the string serialization of the session
Throws:
GNoSuchReportFaultTypeCUBEFault - if the session is not found or does not have a valid serialization
org.gcube.vremanagement.resourcemanager.stubs.reporting.NoSuchReportFaultType

getServiceContext

protected org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
Specified by:
getServiceContext in class org.gcube.common.core.porttypes.GCUBEPortType

getInstanceState

protected InstanceState getInstanceState()
                                  throws org.globus.wsrf.NoSuchResourceException,
                                         org.globus.wsrf.ResourceException
Gets the instance state

Returns:
the InstanceState
Throws:
org.globus.wsrf.NoSuchResourceException
org.globus.wsrf.ResourceException

addScopeToInstanceState

protected void addScopeToInstanceState(org.gcube.common.core.scope.GCUBEScope scope)
                                throws org.globus.wsrf.ResourceException
Adds the scope to the current service's instance

Parameters:
scope -
Throws:
org.globus.wsrf.ResourceException


Copyright © 2012. All Rights Reserved.