org.gcube.common.core.resources
Class GCUBEHostingNode

java.lang.Object
  extended by org.gcube.common.core.resources.GCUBEResource
      extended by org.gcube.common.core.resources.GCUBEHostingNode
Direct Known Subclasses:
KGCUBEHostingNode

public abstract class GCUBEHostingNode
extends GCUBEResource


Nested Class Summary
static class GCUBEHostingNode.Package
           
static class GCUBEHostingNode.Site
           
 
Nested classes/interfaces inherited from class org.gcube.common.core.resources.GCUBEResource
GCUBEResource.AddScopeEvent, GCUBEResource.InvalidScopeException, GCUBEResource.RemoveScopeEvent, GCUBEResource.ResourceConsumer, GCUBEResource.ResourceEvent<PAYLOAD>, GCUBEResource.ResourceTopic
 
Field Summary
static String MAP_PREFIX
          The file prefix of service map files.
static String TYPE
          The type of the resource.
 
Fields inherited from class org.gcube.common.core.resources.GCUBEResource
eventProducer, logger, resourceVersion, type
 
Constructor Summary
GCUBEHostingNode()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<GCUBEHostingNode.Package> getDeployedPackages()
           
 String getInfrastructure()
           
 String getLastResourceVersion()
           
 File getMapFile(GCUBEScope scope)
          Utility method to return the map file for a given scope;
 Description getNodeDescription()
           
 GCUBEHostingNode.Site getSite()
           
 void setInfrastructure(String description)
           
 void setNodeDescription(Description description)
           
 void setSite(GCUBEHostingNode.Site site)
           
 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.
 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.
 
Methods inherited from class org.gcube.common.core.resources.GCUBEResource
addScope, getID, getResourceVersion, getScopes, getType, inScope, load, removeScope, setID, setLogger, setResourceVersion, store, subscribeResourceEvents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

GCUBEHostingNode

public GCUBEHostingNode()
Method Detail

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 © 2013. All Rights Reserved.