org.gcube.common.core.resources
Class GCUBERunningInstance

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

public abstract class GCUBERunningInstance
extends GCUBEResource

Specifies the behaviour common to all gCUBE services.

Author:
Andrea Manzi, Manuele Simi (CNR)

Nested Class Summary
 
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 TYPE
          The type of the resource.
 
Fields inherited from class org.gcube.common.core.resources.GCUBEResource
eventProducer, logger, resourceVersion, type
 
Constructor Summary
GCUBERunningInstance()
          Creates a new instance.
 
Method Summary
 boolean equals(Object obj)
           
 AccessPoint getAccessPoint()
          Returns the Access Point info
 HashMap<GCUBEScope,ScopedAccounting> getAccounting()
          Get the ScopedAccoutingMap
 DeploymentData getDeploymentData()
          Returns the deploymentInformation of the runninginstance
 String getDescription()
          Returns the description of the service
 String getGHNID()
          Returns the ghn id
 String getInstanceVersion()
           
 String getLastResourceVersion()
           
 PlatformDescription getPlatform()
           
 List<RIEquivalenceFunction> getRIEquivalenceFunctions()
          Returns the RunningInstance Equivalence functions
 List<RunningInstanceSecurity> getRunningInstanceSecurity()
          Returns the service dependencies.
 String getServiceClass()
          Return the class of the instance's service.
 String getServiceID()
          Returns the serviceID
 String getServiceName()
          Returns the name of the service.
 String getSpecificData()
          Returns the running Instance specific data
 void setAccessPoint(AccessPoint accessPoint)
          Sets Access Point info
 void setAccounting(HashMap<GCUBEScope,ScopedAccounting> accounting)
          Set the ScopedAccounting
 void setDeploymentData(DeploymentData data)
          Sets the deploymentInformation of the runninginstance
 void setDescription(String description)
          Sets the description of the service.
 void setGHNID(String id)
          Sets the ghn id.
 boolean setInstanceVersion(String version)
          Sets the instance version As the version is a one-time constant, the operation returns successfully from the first invocation only.
 void setPlatform(PlatformDescription platform)
           
 boolean setServiceClass(String clazz)
          Sets the class of the service.
 void setServiceID(String id)
          Sets the serviceID.
 boolean setServiceName(String name)
          Sets the name of the service.
 void setSpecificData(String specificData)
          Sets the specific data of the Running Instance.
 
Methods inherited from class org.gcube.common.core.resources.GCUBEResource
addScope, getID, getResourceVersion, getScopes, getType, inScope, load, removeScope, setID, setLogger, setResourceVersion, store, subscribeResourceEvents, validateAddScopes, validateRemoveScopes
 
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
Constructor Detail

GCUBERunningInstance

public GCUBERunningInstance()
Creates a new instance.

Method Detail

getAccounting

public HashMap<GCUBEScope,ScopedAccounting> getAccounting()
Get the ScopedAccoutingMap

Returns:
The ScopedAccounting map

setAccounting

public void setAccounting(HashMap<GCUBEScope,ScopedAccounting> accounting)
Set the ScopedAccounting

Parameters:
The - ScopedAccounting map

getServiceClass

public String getServiceClass()
Return the class of the instance's service.

Returns:
the class.

setServiceClass

public boolean setServiceClass(String clazz)
Sets the class of the service. As the class is a one-time constant, the operation returns successfully from the first invocation only.

Parameters:
clazz - the class.
Returns:
true if the class was set, false otherwise.

getServiceName

public String getServiceName()
Returns the name of the service. As the name is a one-time constant, the operation returns successfully from the first invocation only.

Returns:
the name.

setServiceName

public boolean setServiceName(String name)
Sets the name of the service. As the class is a one-time constant, the operation returns successfully from the first invocation only.

Parameters:
name - the name.
Returns:
true if the name was set, false otherwise.

setDescription

public void setDescription(String description)
Sets the description of the service.

Parameters:
description - the description.

getDescription

public String getDescription()
Returns the description of the service

Returns:
the description.

getRunningInstanceSecurity

public List<RunningInstanceSecurity> getRunningInstanceSecurity()
Returns the service dependencies.

Returns:
the dependencies.

setDeploymentData

public void setDeploymentData(DeploymentData data)
Sets the deploymentInformation of the runninginstance

Parameters:
data - deployment data information

getDeploymentData

public DeploymentData getDeploymentData()
Returns the deploymentInformation of the runninginstance

Returns:
the deployment data information

getRIEquivalenceFunctions

public List<RIEquivalenceFunction> getRIEquivalenceFunctions()
Returns the RunningInstance Equivalence functions

Returns:
the RunningInstance Equivalence functions

setAccessPoint

public void setAccessPoint(AccessPoint accessPoint)
Sets Access Point info

Parameters:
accessPoint - Access Point info

getAccessPoint

public AccessPoint getAccessPoint()
Returns the Access Point info

Returns:
the Access Point info

setSpecificData

public void setSpecificData(String specificData)
Sets the specific data of the Running Instance.

Parameters:
specificData - the datat.

getSpecificData

public String getSpecificData()
Returns the running Instance specific data

Returns:
the specificData.

setGHNID

public void setGHNID(String id)
Sets the ghn id.

Parameters:
id - the ghn id.

getGHNID

public String getGHNID()
Returns the ghn id

Returns:
the ghn id.

setServiceID

public void setServiceID(String id)
Sets the serviceID.

Parameters:
id - the serviceID.

getServiceID

public String getServiceID()
Returns the serviceID

Returns:
the serviceID.

getInstanceVersion

public String getInstanceVersion()

setInstanceVersion

public boolean setInstanceVersion(String version)
Sets the instance version As the version is a one-time constant, the operation returns successfully from the first invocation only.

Parameters:
version - the version
Returns:
true if the class was set, false otherwise.

getLastResourceVersion

public String getLastResourceVersion()
Overrides:
getLastResourceVersion in class GCUBEResource
Returns:
the last version available of the resource

setPlatform

public void setPlatform(PlatformDescription platform)
Parameters:
platform - the platform to set

getPlatform

public PlatformDescription getPlatform()
Returns:
the platform

equals

public boolean equals(Object obj)
Overrides:
equals in class GCUBEResource


Copyright © 2012. All Rights Reserved.