Package org.ivoa.dm.tool
Class PerformanceProfile
java.lang.Object
org.ivoa.dm.tool.PerformanceProfile
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:PerformanceProfile",
role=objectType)
public class PerformanceProfile
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A performance profile for Tool execution.
objectType: PerformanceProfile
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for PerformanceProfile, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected DataScalingthe scaling behaviour of the tool with respect to the data size of the input data.protected ProcessorScalingthe scaling behaviour of the tool with respect to the number of processors used. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PerformanceProfileCopy Constructor.PerformanceProfile(ProcessorScaling processorScaling, DataScaling dataScaling) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PerformanceProfilecreate a PerformanceProfile in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns dataScaling Attribute.getId()Returns processorScaling Attribute.voidsetDataScaling(DataScaling pDataScaling) Set dataScaling Attribute.voidsetProcessorScaling(ProcessorScaling pProcessorScaling) Set processorScaling Attribute.voidupdateUsing(PerformanceProfile other) Update this object with the content of the given object.withDataScaling(DataScaling pDataScaling) fluent setter for dataScaling Attribute.withProcessorScaling(ProcessorScaling pProcessorScaling) fluent setter for processorScaling Attribute.
-
Field Details
-
_id
inserted database key -
processorScaling
@VoDml(id="tool:PerformanceProfile.processorScaling", role=composition, type="tool:ProcessorScaling", typeRole=objectType) protected ProcessorScaling processorScalingthe scaling behaviour of the tool with respect to the number of processors used. composition processorScaling : ( Multiplicity : 1 ) -
dataScaling
@VoDml(id="tool:PerformanceProfile.dataScaling", role=composition, type="tool:DataScaling", typeRole=objectType) protected DataScaling dataScalingthe scaling behaviour of the tool with respect to the data size of the input data. composition dataScaling : ( Multiplicity : 1 )
-
-
Constructor Details
-
PerformanceProfile
public PerformanceProfile()Creates a new PerformanceProfile -
PerformanceProfile
full parameter constructor.- Parameters:
processorScaling- the scaling behaviour of the tool with respect to the number of processors used.dataScaling- the scaling behaviour of the tool with respect to the data size of the input data.
-
PerformanceProfile
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.
-
getProcessorScaling
Returns processorScaling Attribute.- Returns:
- processorScaling Attribute
-
setProcessorScaling
Set processorScaling Attribute.- Parameters:
pProcessorScaling- value to set
-
withProcessorScaling
fluent setter for processorScaling Attribute.- Parameters:
pProcessorScaling- value to set- Returns:
- PerformanceProfile
-
getDataScaling
Returns dataScaling Attribute.- Returns:
- dataScaling Attribute
-
setDataScaling
Set dataScaling Attribute.- Parameters:
pDataScaling- value to set
-
withDataScaling
fluent setter for dataScaling Attribute.- Parameters:
pDataScaling- value to set- Returns:
- PerformanceProfile
-
createPerformanceProfile
public static PerformanceProfile createPerformanceProfile(Consumer<PerformanceProfile.PerformanceProfileBuilder> f) create a PerformanceProfile 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>
-