Package org.ivoa.dm.tool
Class ProcessorScaling
java.lang.Object
org.ivoa.dm.tool.ProcessorScaling
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:ProcessorScaling",
role=objectType)
public class ProcessorScaling
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The scaling behaviour of a tool with respect to the number of processors used.
objectType: ProcessorScaling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ProcessorScaling, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ProcessorScalingProcessorScaling(ProcessorScaling other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessorScalingcreate a ProcessorScaling in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()voidupdateUsing(ProcessorScaling other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key
-
-
Constructor Details
-
ProcessorScaling
public ProcessorScaling()Creates a new ProcessorScaling -
ProcessorScaling
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
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.
-
createProcessorScaling
public static ProcessorScaling createProcessorScaling(Consumer<ProcessorScaling.ProcessorScalingBuilder> f) create a ProcessorScaling 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-