Package org.ivoa.dm.executionbroker
Class RucioDataResourceBlock
java.lang.Object
org.ivoa.dm.executionbroker.RucioDataResourceBlock
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:RucioDataResourceBlock",
role=dataType)
public class RucioDataResourceBlock
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A reusable block describing a data resource in a Rucio storage system.
dataType: RucioDataResourceBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for RucioDataResourceBlock, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RucioDataResourceBlockRucioDataResourceBlock(String endpoint, String scope, String object, String type) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RucioDataResourceBlockcreate a RucioDataResourceBlock in functional builder style.voidReturns endpoint Attribute.Returns object Attribute.getScope()Returns scope Attribute.getType()Returns type Attribute.voidsetEndpoint(String pEndpoint) Set endpoint Attribute.voidSet object Attribute.voidSet scope Attribute.voidSet type Attribute.voidUpdate this object with the content of the given object.withEndpoint(String pEndpoint) fluent setter for endpoint Attribute.withObject(String pObject) fluent setter for object Attribute.fluent setter for scope Attribute.fluent setter for type Attribute.
-
Field Details
-
endpoint
@VoDml(id="execbroker:RucioDataResourceBlock.endpoint", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String endpointThe endpoint address of the Rucio service. : Attribute endpoint : multiplicity 1 -
scope
@VoDml(id="execbroker:RucioDataResourceBlock.scope", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String scopeThe Rucio scope. : Attribute scope : multiplicity 1 -
object
@VoDml(id="execbroker:RucioDataResourceBlock.object", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String objectThe target object name. : Attribute object : multiplicity 1 -
type
@VoDml(id="execbroker:RucioDataResourceBlock.type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String typeThe Rucio data object type. : Attribute type : multiplicity 1
-
-
Constructor Details
-
RucioDataResourceBlock
public RucioDataResourceBlock()Creates a new RucioDataResourceBlock -
RucioDataResourceBlock
full parameter constructor.- Parameters:
endpoint- The endpoint address of the Rucio service.scope- The Rucio scope.object- The target object name.type- The Rucio data object type.
-
RucioDataResourceBlock
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getEndpoint
Returns endpoint Attribute.- Returns:
- endpoint Attribute
-
setEndpoint
Set endpoint Attribute.- Parameters:
pEndpoint- value to set
-
withEndpoint
fluent setter for endpoint Attribute.- Parameters:
pEndpoint- value to set- Returns:
- RucioDataResourceBlock
-
getScope
Returns scope Attribute.- Returns:
- scope Attribute
-
setScope
Set scope Attribute.- Parameters:
pScope- value to set
-
withScope
fluent setter for scope Attribute.- Parameters:
pScope- value to set- Returns:
- RucioDataResourceBlock
-
getObject
Returns object Attribute.- Returns:
- object Attribute
-
setObject
Set object Attribute.- Parameters:
pObject- value to set
-
withObject
fluent setter for object Attribute.- Parameters:
pObject- value to set- Returns:
- RucioDataResourceBlock
-
getType
Returns type Attribute.- Returns:
- type Attribute
-
setType
Set type Attribute.- Parameters:
pType- value to set
-
withType
fluent setter for type Attribute.- Parameters:
pType- value to set- Returns:
- RucioDataResourceBlock
-
createRucioDataResourceBlock
public static RucioDataResourceBlock createRucioDataResourceBlock(Consumer<RucioDataResourceBlock.RucioDataResourceBlockBuilder> f) create a RucioDataResourceBlock in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-