Spring xd Gemfire sink key-class and value-class parameters -
is there way use key-class , value-class parameters gemfire sink in spring xd? regarding documentation can use keyexpression nothing class type. same key-class.
i have such command gemfire,
put --key-class = java.lang.string --value-class = employee --key = ('id': '998') --value = ('id': 186, 'firstname': 'james', 'lastname': 'goslinga') --region = replicated2
so use --key-class , --value-class parameters in gemfire. cannot use them spring xd since there keyexpression parameter in gemfire sink.
any idea solve?
as far know syntax above not supported native gemfire. can't out of box spring xd. syntax looks vaguely sql-like. using gemfire xd? wrote yourself?
the gemfire sink uses spring-integration-gemfire, allowing declare keyexpression using spel. value, using gemfire sink, payload. si gemfire outbound adapter wraps region.put(key, value). gemfire api supports typing via generics, i.e. region<k,v>
not enforced in case. gemfire regionfactory allows keyconstraint , valueconstraint attributes constrain types part of region configuration external spring xd. furthermore, none of addresses data binding in example, e.g.,
person p = ('id': 186, 'firstname': 'james', 'lastname': 'goslinga')
this capability require custom sink module. if command can executed shell script, might able use shell
sink invoke it.
Comments
Post a Comment