Class 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 Detail

      • ManagementUtils

        public ManagementUtils()
    • Method Detail

      • addToExistingScope

        public static final String addToExistingScope​(AllowedResourceTypes type,
                                                      String[] resourceIDs,
                                                      org.gcube.common.scope.impl.ScopeBean sourceScope,
                                                      org.gcube.common.scope.impl.ScopeBean 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.scope.impl.ScopeBean sourceScope,
                                                           org.gcube.common.scope.impl.ScopeBean targetScope)
                                                    throws Exception
        Applies the remove from scope
        Parameters:
        type -
        resources -
        sourceScope -
        targetScope -
        Returns:
        the generated report ID
        Throws:
        Exception
      • deploy

        public static final String deploy​(org.gcube.common.scope.impl.ScopeBean 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)