|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.resources.GCUBEResource
org.gcube.common.core.resources.GCUBEService
public abstract class GCUBEService
Specifies the behaviour common to all gCUBE services.
| 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 | |
|---|---|
protected Configuration |
configuration
The configuration of the service. |
protected List<ServiceDependency> |
dependencies
VRE Dependencies |
protected String |
specificData
Service-specific data. |
static String |
TYPE
The type of the resource. |
| Fields inherited from class org.gcube.common.core.resources.GCUBEResource |
|---|
eventProducer, logger, resourceVersion, type |
| Constructor Summary | |
|---|---|
GCUBEService()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Configuration |
getConfiguration()
Returns the service configuration. |
List<ServiceDependency> |
getDependencies()
Returns the service dependencies. |
String |
getDescription()
Returns the description of the service |
String |
getLastResourceVersion()
|
List<Package> |
getPackages()
Returns the list of service packages. |
String |
getServiceClass()
Returns the class of the service. |
String |
getServiceName()
Returns the name of the service. |
String |
getSpecificData()
Return service-specific data. |
String |
getVersion()
Returns the service version |
boolean |
inScope(GCUBEScope... scopes)
Indicates whether the resource is in one or more given scopes. |
void |
setConfiguration(Configuration configuration)
Sets the service configuration. |
void |
setDescription(String description)
Sets the description of the service. |
boolean |
setServiceClass(String clazz)
Sets the class of the service. |
boolean |
setServiceName(String name)
Sets the name of the service. |
void |
setSpecificData(String specificData)
Sets service-specific data. |
boolean |
setVersion(String version)
Sets the service version As the version is a one-time constant, the operation returns successfully from the first invocation only. |
| Methods inherited from class org.gcube.common.core.resources.GCUBEResource |
|---|
addScope, getID, getResourceVersion, getScopes, getType, 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 |
|---|
public static final String TYPE
protected Configuration configuration
protected List<ServiceDependency> dependencies
protected String specificData
| Constructor Detail |
|---|
public GCUBEService()
| Method Detail |
|---|
public boolean inScope(GCUBEScope... scopes)
inScope in class GCUBEResourcescopes - the scopes.
true if it is in all the input scopes, false otherwise.public String getServiceClass()
public boolean setServiceClass(String clazz)
clazz - the class.
true if the class was set, false otherwise.public String getServiceName()
public boolean setServiceName(String name)
name - the name.
true if the identifier was set, false otherwise.public void setDescription(String description)
description - the description.public String getDescription()
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration - the configuration.public String getSpecificData()
public void setSpecificData(String specificData)
specificData - the data.public List<Package> getPackages()
public List<ServiceDependency> getDependencies()
public String getVersion()
public boolean setVersion(String version)
version - the version
true if the class was set, false otherwise.public String getLastResourceVersion()
getLastResourceVersion in class GCUBEResourcepublic boolean equals(Object obj)
equals in class GCUBEResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||