Class GHNManager
- java.lang.Object
-
- org.gcube.resourcemanagement.support.server.managers.resources.AbstractResourceManager
-
- org.gcube.resourcemanagement.support.server.managers.resources.GHNManager
-
public class GHNManager extends AbstractResourceManager
- Author:
- Daniele Strollo (ISTI-CNR)
-
-
Constructor Summary
Constructors Constructor Description GHNManager()Deprecated.discouraged use.GHNManager(String id)GHNManager(String id, String name)GHNManager(String id, String name, String subtype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddToNewScope(org.gcube.common.scope.impl.ScopeBean sourceScope, org.gcube.common.scope.impl.ScopeBean targetScope, String scopeMap)Add a scope to a gHN and the related Service Map that is not available on the gHN.protected org.gcube.common.resources.gcore.ResourcebuildResource(String xmlRepresentation)Given the XML profile representation of a gcube resource, its GCUBEResource is built.org.gcube.common.vremanagement.ghnmanager.client.GHNManagerLibrarygetGHNManager(org.gcube.common.scope.impl.ScopeBean scope)Required information:
The name of the resource must be specified and valid.voidshutDown(org.gcube.common.scope.impl.ScopeBean scope, boolean restart, boolean clean)Implements all the three possible shutdown policies according to restart and clean parameters.-
Methods inherited from class org.gcube.resourcemanagement.support.server.managers.resources.AbstractResourceManager
addToExistingScope, copyFromToVO, delete, forceDelete, getID, getName, getRegistryPublisher, getReportResourceManager, getResource, getResourceManager, getSubType, getType, getXMLDescription, removeFromScope, setID, validateScopes
-
-
-
-
Constructor Detail
-
GHNManager
public GHNManager() throws ResourceParameterException, ResourceAccessExceptionDeprecated.discouraged use. With no ID some operations cannot be accessed.
-
GHNManager
public GHNManager(String id) throws ResourceParameterException, ResourceAccessException
- Parameters:
id- the identifier of wrapper resource.- Throws:
ResourceParameterExceptionResourceAccessException
-
GHNManager
public GHNManager(String id, String name) throws ResourceParameterException, ResourceAccessException
- Parameters:
id-name-- Throws:
ResourceParameterExceptionResourceAccessException
-
GHNManager
public GHNManager(String id, String name, String subtype) throws ResourceParameterException, ResourceAccessException
- Parameters:
id-name-subtype-- Throws:
ResourceParameterExceptionResourceAccessException
-
-
Method Detail
-
addToNewScope
public final String addToNewScope(org.gcube.common.scope.impl.ScopeBean sourceScope, org.gcube.common.scope.impl.ScopeBean targetScope, String scopeMap) throws AbstractResourceException
Add a scope to a gHN and the related Service Map that is not available on the gHN.Required information:
The ID of the resource must be specified and valid.- Parameters:
scope-scopeMap-- Returns:
- the generated reportID
- Throws:
ResourceParameterExceptionResourceOperationExceptionAbstractResourceException
-
getGHNManager
public final org.gcube.common.vremanagement.ghnmanager.client.GHNManagerLibrary getGHNManager(org.gcube.common.scope.impl.ScopeBean scope) throws AbstractResourceExceptionRequired information:
The name of the resource must be specified and valid. It is used to retrieve the GHN manager URL.- Parameters:
scope- the scope in which the manager is bound.- Returns:
- Throws:
AbstractResourceException
-
shutDown
public final void shutDown(org.gcube.common.scope.impl.ScopeBean scope, boolean restart, boolean clean) throws AbstractResourceExceptionImplements all the three possible shutdown policies according to restart and clean parameters.Required information:
The ID of the resource must be specified and valid.- Parameters:
scope-restart-clean-- Throws:
ResourceOperationExceptionResourceAccessExceptionResourceParameterExceptionAbstractResourceException
-
buildResource
protected final org.gcube.common.resources.gcore.Resource buildResource(String xmlRepresentation) throws AbstractResourceException
Description copied from class:AbstractResourceManagerGiven the XML profile representation of a gcube resource, its GCUBEResource is built. Since it depends on the type of the resource, each concrete implementation of resource managers must implement it.- Specified by:
buildResourcein classAbstractResourceManager- Returns:
- Throws:
AbstractResourceException
-
-