org.gcube.vremanagement.resourcemanager.porttypes
Class ResourceBinder

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

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

ResourceBinder 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
ResourceBinder()
           
 
Method Summary
 String addResources(org.gcube.vremanagement.resourcemanager.stubs.binder.AddResourcesParameters resourceList)
          Adds a new group of ScopedResources to the managed Scope
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
protected  org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
           
 String removeResources(org.gcube.vremanagement.resourcemanager.stubs.binder.RemoveResourcesParameters resourceList)
          Removes a group of ScopedResources from the managed Scope
 
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

ResourceBinder

public ResourceBinder()
Method Detail

addResources

public String addResources(org.gcube.vremanagement.resourcemanager.stubs.binder.AddResourcesParameters resourceList)
                    throws org.gcube.vremanagement.resourcemanager.stubs.binder.ResourcesCreationFaultType,
                           org.gcube.common.core.faults.GCUBEFault
Adds a new group of ScopedResources to the managed Scope

Parameters:
resourcesList - the resources to join
Returns:
the ID assigned to the operation, it can be used to retrieve the resource session by invoking the ResourceBinder#getReport(String) operation
Throws:
org.gcube.common.core.faults.GCUBEFault - if the operation fails
org.gcube.vremanagement.resourcemanager.stubs.binder.ResourcesCreationFaultType

removeResources

public String removeResources(org.gcube.vremanagement.resourcemanager.stubs.binder.RemoveResourcesParameters resourceList)
                       throws org.gcube.vremanagement.resourcemanager.stubs.binder.ResourcesRemovalFaultType,
                              org.gcube.vremanagement.resourcemanager.stubs.common.InvalidScopeFaultType
Removes a group of ScopedResources from the managed Scope

Parameters:
resourcesList - the resources to remove from the PublishedScopeResource
Throws:
org.gcube.common.core.faults.GCUBEFault - if the operation fails
org.gcube.vremanagement.resourcemanager.stubs.binder.ResourcesRemovalFaultType
org.gcube.vremanagement.resourcemanager.stubs.common.InvalidScopeFaultType

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.