org.gcube.common.core.resources
Class GCUBEHostingNode
java.lang.Object
org.gcube.common.core.resources.GCUBEResource
org.gcube.common.core.resources.GCUBEHostingNode
- Direct Known Subclasses:
- KGCUBEHostingNode
public abstract class GCUBEHostingNode
- extends GCUBEResource
| Methods inherited from class org.gcube.common.core.resources.GCUBEResource |
addScope, getID, getResourceVersion, getScopes, getType, inScope, load, removeScope, setID, setLogger, setResourceVersion, store, subscribeResourceEvents |
TYPE
public static final String TYPE
- The type of the resource.
- See Also:
- Constant Field Values
MAP_PREFIX
public static final String MAP_PREFIX
- The file prefix of service map files.
- See Also:
- Constant Field Values
GCUBEHostingNode
public GCUBEHostingNode()
getNodeDescription
public Description getNodeDescription()
setNodeDescription
public void setNodeDescription(Description description)
getInfrastructure
public String getInfrastructure()
setInfrastructure
public void setInfrastructure(String description)
getDeployedPackages
public List<GCUBEHostingNode.Package> getDeployedPackages()
getSite
public GCUBEHostingNode.Site getSite()
setSite
public void setSite(GCUBEHostingNode.Site site)
getLastResourceVersion
public String getLastResourceVersion()
- Overrides:
getLastResourceVersion in class GCUBEResource
- Returns:
- the last version available of the resource
equals
public boolean equals(Object obj)
- Overrides:
equals in class GCUBEResource
validateAddScopes
public Set<GCUBEScope> validateAddScopes(GCUBEScope... scopes)
- Invoked by
GCUBEResource.addScope(GCUBEScope...), to filter scopes as per
resource-specific scoping rules.By default, it returns its input.
- Overrides:
validateAddScopes in class GCUBEResource
- Parameters:
scopes - the scopes.
- Returns:
- the subset of valid scopes.
getMapFile
public File getMapFile(GCUBEScope scope)
- Utility method to return the map file for a given scope;
- Parameters:
scope - the scope.
- Returns:
- the file.
validateRemoveScopes
public Set<GCUBEScope> validateRemoveScopes(GCUBEScope... scopes)
- Invoked by
GCUBEResource.removeScope(GCUBEScope...), to filter scopes as per
resource-specific scoping rules.By default, it returns its input.
- Overrides:
validateRemoveScopes in class GCUBEResource
- Parameters:
scopes - the scopes.
- Returns:
- the subset of valid scopes.
Copyright © 2012. All Rights Reserved.