Groovy Documentation

com.ace.mws.services
[Groovy] Class ContainerService

java.lang.Object
  com.ace.mws.services.ContainerService

class ContainerService

Represents a container service in the core cloud stack workload driven model. This object contains other services. For example this service may contain services representing a VM, an OS storage mount, and an extra network storage mount.

The container also stores temporal dependencies. For example, it may indicate that a VM service must wait until the OS storage service and extra storage service have been set up before the VM service can run

Authors:
seeleyn


Field Summary
private Map attributes

(Map of String => String) A JSON string representing anything in the service request attributes.

private Map dependencies

(Map of String => String) A Map of svcIds to a String which is a comma separated list of svcIds.

private Long id

private String label

A label for this service.

private String name

The user specified name of the service.

private String serviceTemplateId

The id of the service template from which this service was created

private String serviceTemplateName

The name of the service template from which this service was created

private Set services

(String collection) A list of svcIds contained in this container

private String type

The type of service.

private String vcId

The id of the virtual container in Moab associated with this service

 
Constructor Summary
ContainerService()

 
Method Summary
Map getAttributes()

(Map of String => String) A JSON string representing anything in the service request attributes.

Map getDependencies()

(Map of String => String) A Map of svcIds to a String which is a comma separated list of svcIds.

Long getId()

String getLabel()

A label for this service.

String getName()

The user specified name of the service.

String getServiceTemplateId()

The id of the service template from which this service was created

String getServiceTemplateName()

The name of the service template from which this service was created

Set getServices()

(String collection) A list of svcIds contained in this container

String getType()

The type of service.

String getVcId()

The id of the virtual container in Moab associated with this service

void setAttributes(Map attributes)

(Map of String => String) A JSON string representing anything in the service request attributes.

void setDependencies(Map dependencies)

(Map of String => String) A Map of svcIds to a String which is a comma separated list of svcIds.

void setId(Long id)

void setLabel(String label)

A label for this service.

void setName(String name)

The user specified name of the service.

void setServiceTemplateId(String serviceTemplateId)

The id of the service template from which this service was created

void setServiceTemplateName(String serviceTemplateName)

The name of the service template from which this service was created

void setServices(Set services)

(String collection) A list of svcIds contained in this container

void setType(String type)

The type of service.

void setVcId(String vcId)

The id of the virtual container in Moab associated with this service

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

attributes

private Map attributes
(Map of String => String) A JSON string representing anything in the service request attributes. This is where sites can store arbitrary information
See Also:
Map


dependencies

private Map dependencies
(Map of String => String) A Map of svcIds to a String which is a comma separated list of svcIds. The service identified by the key cannot start until all the services in the value (which is a comma separated list) have run. For example, say the key is "wfsvc.2" and this maps to "wfsvc.5,wfsvc.10,wfsvc.11". This indicates that wfsvc.2 cannot run until "wfsvc.5", "wfsvc.10", and "wfsvc.11" have all run.

Note that when we say "have all run" we do not necessarily mean have completed since often service jobs are infinite walltime jobs. "have all run" means that the upstream jobs have indicated (often by setting a variable) they they are finished setting up so that the next services in the workflow can start

See Also:
String


id

private Long id


label

private String label
A label for this service. Can be used as a display name. (e.g. "Tomcat 6 Service")


name

private String name
The user specified name of the service. Note this is not globally unique


serviceTemplateId

private String serviceTemplateId
The id of the service template from which this service was created


serviceTemplateName

private String serviceTemplateName
The name of the service template from which this service was created


services

private Set services
(String collection) A list of svcIds contained in this container
See Also:
String


type

private String type
The type of service.


vcId

private String vcId
The id of the virtual container in Moab associated with this service


 
Constructor Detail

ContainerService

ContainerService()


 
Method Detail

getAttributes

Map getAttributes()
(Map of String => String) A JSON string representing anything in the service request attributes. This is where sites can store arbitrary information
See Also:
Map


getDependencies

Map getDependencies()
(Map of String => String) A Map of svcIds to a String which is a comma separated list of svcIds. The service identified by the key cannot start until all the services in the value (which is a comma separated list) have run. For example, say the key is "wfsvc.2" and this maps to "wfsvc.5,wfsvc.10,wfsvc.11". This indicates that wfsvc.2 cannot run until "wfsvc.5", "wfsvc.10", and "wfsvc.11" have all run.

Note that when we say "have all run" we do not necessarily mean have completed since often service jobs are infinite walltime jobs. "have all run" means that the upstream jobs have indicated (often by setting a variable) they they are finished setting up so that the next services in the workflow can start

See Also:
String


getId

Long getId()


getLabel

String getLabel()
A label for this service. Can be used as a display name. (e.g. "Tomcat 6 Service")


getName

String getName()
The user specified name of the service. Note this is not globally unique


getServiceTemplateId

String getServiceTemplateId()
The id of the service template from which this service was created


getServiceTemplateName

String getServiceTemplateName()
The name of the service template from which this service was created


getServices

Set getServices()
(String collection) A list of svcIds contained in this container
See Also:
String


getType

String getType()
The type of service.


getVcId

String getVcId()
The id of the virtual container in Moab associated with this service


setAttributes

void setAttributes(Map attributes)
(Map of String => String) A JSON string representing anything in the service request attributes. This is where sites can store arbitrary information
See Also:
Map


setDependencies

void setDependencies(Map dependencies)
(Map of String => String) A Map of svcIds to a String which is a comma separated list of svcIds. The service identified by the key cannot start until all the services in the value (which is a comma separated list) have run. For example, say the key is "wfsvc.2" and this maps to "wfsvc.5,wfsvc.10,wfsvc.11". This indicates that wfsvc.2 cannot run until "wfsvc.5", "wfsvc.10", and "wfsvc.11" have all run.

Note that when we say "have all run" we do not necessarily mean have completed since often service jobs are infinite walltime jobs. "have all run" means that the upstream jobs have indicated (often by setting a variable) they they are finished setting up so that the next services in the workflow can start

See Also:
String


setId

void setId(Long id)


setLabel

void setLabel(String label)
A label for this service. Can be used as a display name. (e.g. "Tomcat 6 Service")


setName

void setName(String name)
The user specified name of the service. Note this is not globally unique


setServiceTemplateId

void setServiceTemplateId(String serviceTemplateId)
The id of the service template from which this service was created


setServiceTemplateName

void setServiceTemplateName(String serviceTemplateName)
The name of the service template from which this service was created


setServices

void setServices(Set services)
(String collection) A list of svcIds contained in this container
See Also:
String


setType

void setType(String type)
The type of service.


setVcId

void setVcId(String vcId)
The id of the virtual container in Moab associated with this service


toString

String toString()


 

Groovy Documentation