Class ManagementUtils
- java.lang.Object
-
- 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
Constructors Constructor Description ManagementUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringaddToExistingScope(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.scope.impl.ScopeBean sourceScope, org.gcube.common.scope.impl.ScopeBean targetScope)Applies the add to scope to multiple resources having the same type.static voiddelete(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.scope.impl.ScopeBean scope)static Stringdeploy(org.gcube.common.scope.impl.ScopeBean scope, String[] ghnsID, String[] servicesID)Makes the deployment of software on a list of ghns.static voidmain(String[] args)static StringremoveFromExistingScope(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.scope.impl.ScopeBean sourceScope, org.gcube.common.scope.impl.ScopeBean targetScope)Applies the remove from scope
-
-
-
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
-
delete
public static void delete(AllowedResourceTypes type, String[] resourceIDs, org.gcube.common.scope.impl.ScopeBean scope) throws AbstractResourceException
- Throws:
AbstractResourceException
-
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)
-
-