org.gcube.vremanagement.resourcemanager.porttypes
Class ScopeController

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

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

ScopeController 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
ScopeController()
           
 
Method Summary
protected  void addScopeToInstanceState(org.gcube.common.core.scope.GCUBEScope scope)
          Adds the scope to the current service's instance
 void changeScopeOptions(org.gcube.vremanagement.resourcemanager.stubs.scontroller.OptionsParameters options)
          Changes some options on the scope
 void createScope(org.gcube.vremanagement.resourcemanager.stubs.scontroller.CreateScopeParameters params)
           
 String disposeScope(String targetScope)
          Disposes the managed Scope
protected  InstanceState getInstanceState()
          Gets the instance state
protected  org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
           
 
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

ScopeController

public ScopeController()
Method Detail

disposeScope

public String disposeScope(String targetScope)
                    throws org.gcube.vremanagement.resourcemanager.stubs.common.InvalidScopeFaultType,
                           org.gcube.common.core.faults.GCUBEFault
Disposes the managed Scope

Parameters:
params -
Returns:
Throws:
org.gcube.common.core.faults.GCUBEFault
org.gcube.vremanagement.resourcemanager.stubs.common.InvalidScopeFaultType

createScope

public void createScope(org.gcube.vremanagement.resourcemanager.stubs.scontroller.CreateScopeParameters params)
                 throws org.gcube.vremanagement.resourcemanager.stubs.common.InvalidScopeFaultType,
                        org.gcube.vremanagement.resourcemanager.stubs.scontroller.InvalidOptionsFaultType,
                        org.gcube.common.core.faults.GCUBEFault
Throws:
org.gcube.vremanagement.resourcemanager.stubs.common.InvalidScopeFaultType
org.gcube.vremanagement.resourcemanager.stubs.scontroller.InvalidOptionsFaultType
org.gcube.common.core.faults.GCUBEFault

changeScopeOptions

public void changeScopeOptions(org.gcube.vremanagement.resourcemanager.stubs.scontroller.OptionsParameters options)
                        throws org.gcube.vremanagement.resourcemanager.stubs.scontroller.InvalidOptionsFaultType,
                               org.gcube.vremanagement.resourcemanager.stubs.scontroller.InvalidOptionsFaultType,
                               org.gcube.common.core.faults.GCUBEFault
Changes some options on the scope

Parameters:
options - the new options to change
Throws:
org.gcube.common.core.faults.GCUBEFault - if any of the input options is not valid
org.gcube.vremanagement.resourcemanager.stubs.scontroller.InvalidOptionsFaultType

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 © 2013. All Rights Reserved.