You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Teije van Sloten (Jira)" <ji...@apache.org> on 2020/05/22 16:28:00 UTC

[jira] [Updated] (BEAM-10066) Support ValueProvider for RedisIO

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

Teije van Sloten updated BEAM-10066:
------------------------------------
    Description: 
RedisIO doesn't have support for `ValueProvider` when setting up the connection with Redis, therefore I cannot provide the connection at runtime of the application only at compile time.

This will involve wrapping the RedisConnectionConfiguration with ValueProvider and ensuring that the building the configuration still supports values without ValueProvider.

E.g.:

 
{code:java}
public abstract class RedisConnectionConfiguration implements Serializable {

  abstract ValueProvider<String> host();

  abstract ValueProvider<Integer> port();

  @Nullable
  abstract ValueProvider<String> auth();

  abstract ValueProvider<Integer> timeout();

  abstract ValueProvider<Boolean> ssl();

  abstract Builder builder();
}
 
{code}
 

  was:
RedisIO doesn't have support for `ValueProvider` when setting up the connection with Redis, therefore I cannot provide the connection at runtime of the application only compile time.

This will involve wrapping the RedisConnectionConfiguration with ValueProvider and ensuring that the building the configuration still supports values without ValueProvider.

E.g.:

 
{code:java}
public abstract class RedisConnectionConfiguration implements Serializable {

  abstract ValueProvider<String> host();

  abstract ValueProvider<Integer> port();

  @Nullable
  abstract ValueProvider<String> auth();

  abstract ValueProvider<Integer> timeout();

  abstract ValueProvider<Boolean> ssl();

  abstract Builder builder();
}
 
{code}
 


> Support ValueProvider for RedisIO
> ---------------------------------
>
>                 Key: BEAM-10066
>                 URL: https://issues.apache.org/jira/browse/BEAM-10066
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-redis
>    Affects Versions: 2.20.0
>            Reporter: Teije van Sloten
>            Priority: P3
>   Original Estimate: 1h
>          Time Spent: 10m
>  Remaining Estimate: 50m
>
> RedisIO doesn't have support for `ValueProvider` when setting up the connection with Redis, therefore I cannot provide the connection at runtime of the application only at compile time.
> This will involve wrapping the RedisConnectionConfiguration with ValueProvider and ensuring that the building the configuration still supports values without ValueProvider.
> E.g.:
>  
> {code:java}
> public abstract class RedisConnectionConfiguration implements Serializable {
>   abstract ValueProvider<String> host();
>   abstract ValueProvider<Integer> port();
>   @Nullable
>   abstract ValueProvider<String> auth();
>   abstract ValueProvider<Integer> timeout();
>   abstract ValueProvider<Boolean> ssl();
>   abstract Builder builder();
> }
>  
> {code}
>  



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