Sign inSign up

mageshwaranr/faas-eval-java-fn

By mageshwaranr

Updated over 9 years ago

A sample java function which accepts input and produces a ouput both in json format.

Image
0

50K+

mageshwaranr/faas-eval-java-fn repository overview

Java based function to simulate business function. I/O is shared via Std IN/OUT

Accepts inputs via std.in in JSON format. Following are the attributes

  • respondIn : attribute defines the response should be sent after this interval
  • responseStr : response string that will be sent to System.out as a JSON named data
  • exitCode : the code with which program exits

Returns out as JSON containing following attributes

  • data : responseStr passed in
  • prop : a map containing java system props
  • prop : a map containing system env variables

Intended to be used as a function in iron functions (see http://open.iron.io/)

https://github.com/mageshwaranr/faas-eval/tree/master/java-function

Tag summary

Content type

Image

Digest

Size

482.3 MB

Last updated

over 9 years ago

docker pull mageshwaranr/faas-eval-java-fn