[ 
https://issues.apache.org/jira/browse/FLINK-14733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhu Zhu updated FLINK-14733:
----------------------------
    Description: 
The ResourceProfile constructors may accept values in raw types (double/int) or 
advanced types(CPUResource/MemorySize). Thus it had to maintain different kinds 
of constructors for the combinations. Or one may need to build advanced values 
types from raw types to use construct ResourceProfile.

I'd propose to introduce a builder to enable flexible building of 
ResourceProfile. It allows setting a resource with advanced value types as well 
as raw value types.

The builder will also make it easier to see what resource is set.

  was:
The ResourceProfile constructors may accept values in raw types (double/int) or 
advanced types(CPUResource/MemorySize). Thus it had to maintain different kinds 
of constructors for the combinations. Or one may need to build advanced values 
types from raw types to use construct ResourceProfile.

I'd propose to introduce a builder to enable flexible building of 
ResourceProfile. The builder will also make it clearer that which resources are 
set.


> Introduce ResourceProfile builder to enable flexible building
> -------------------------------------------------------------
>
>                 Key: FLINK-14733
>                 URL: https://issues.apache.org/jira/browse/FLINK-14733
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Coordination
>    Affects Versions: 1.10.0
>            Reporter: Zhu Zhu
>            Priority: Major
>             Fix For: 1.10.0
>
>
> The ResourceProfile constructors may accept values in raw types (double/int) 
> or advanced types(CPUResource/MemorySize). Thus it had to maintain different 
> kinds of constructors for the combinations. Or one may need to build advanced 
> values types from raw types to use construct ResourceProfile.
> I'd propose to introduce a builder to enable flexible building of 
> ResourceProfile. It allows setting a resource with advanced value types as 
> well as raw value types.
> The builder will also make it easier to see what resource is set.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to