org.gcube.resourcemanagement.support.server.managers.resources
Class ManagementUtils

java.lang.Object
  extended by org.gcube.resourcemanagement.support.server.managers.resources.ManagementUtils

public class ManagementUtils
extends Object

A support class containing operations to manage multiple resources. Here are provided the functionalities to delete/addToScope/deploy groups of homogeneous resources.

Author:
Daniele Strollo (ISTI-CNR)

Constructor Summary
ManagementUtils()
           
 
Method Summary
static String addToExistingScope(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.core.scope.GCUBEScope sourceScope, org.gcube.common.core.scope.GCUBEScope targetScope)
          Applies the add to scope to multiple resources having the same type.
static void delete(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.core.scope.GCUBEScope scope)
           
static String deploy(org.gcube.common.core.scope.GCUBEScope scope, String[] ghnsID, String[] servicesID)
          Makes the deployment of software on a list of ghns.
static void main(String[] args)
           
static String removeFromExistingScope(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.core.scope.GCUBEScope sourceScope, org.gcube.common.core.scope.GCUBEScope targetScope)
          Applies the add to scope to multiple resources having the same type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementUtils

public ManagementUtils()
Method Detail

addToExistingScope

public static final String addToExistingScope(AllowedResourceTypes type,
                                              String[] resourceIDs,
                                              org.gcube.common.core.scope.GCUBEScope sourceScope,
                                              org.gcube.common.core.scope.GCUBEScope targetScope)
                                       throws Exception
Applies the add to scope to multiple resources having the same type.

Parameters:
type -
resources -
sourceScope -
targetScope -
Returns:
the generated report ID
Throws:
Exception

removeFromExistingScope

public static final String removeFromExistingScope(AllowedResourceTypes type,
                                                   String[] resourceIDs,
                                                   org.gcube.common.core.scope.GCUBEScope sourceScope,
                                                   org.gcube.common.core.scope.GCUBEScope targetScope)
                                            throws Exception
Applies the add to scope to multiple resources having the same type.

Parameters:
type -
resources -
sourceScope -
targetScope -
Returns:
the generated report ID
Throws:
Exception

delete

public static void delete(AllowedResourceTypes type,
                          String[] resourceIDs,
                          org.gcube.common.core.scope.GCUBEScope scope)
                   throws AbstractResourceException
Throws:
AbstractResourceException

deploy

public static final String deploy(org.gcube.common.core.scope.GCUBEScope scope,
                                  String[] ghnsID,
                                  String[] servicesID)
                           throws Exception
Makes the deployment of software on a list of ghns.

Parameters:
ghnsID -
servicesID -
Returns:
the generated report ID
Throws:
Exception

main

public static final void main(String[] args)


Copyright © 2013. All Rights Reserved.