public abstract class GCUBEService extends GCUBEResource
GCUBEResource.AddScopeEvent, GCUBEResource.InvalidScopeException, GCUBEResource.RemoveScopeEvent, GCUBEResource.ResourceConsumer, GCUBEResource.ResourceEvent<PAYLOAD>, GCUBEResource.ResourceTopic| Modifier and Type | Field and Description |
|---|---|
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.
|
eventProducer, logger, resourceVersion, type| Constructor and Description |
|---|
GCUBEService() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addScope, getID, getResourceVersion, getScopes, getType, load, removeScope, setID, setLogger, setResourceVersion, store, subscribeResourceEvents, validateAddScopes, validateRemoveScopespublic static final String TYPE
protected Configuration configuration
protected List<ServiceDependency> dependencies
protected String specificData
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 versiontrue if the class was set, false otherwise.public String getLastResourceVersion()
getLastResourceVersion in class GCUBEResourcepublic boolean equals(Object obj)
equals in class GCUBEResourceCopyright © 2015. All Rights Reserved.