astore 介绍
astore 是基于 Akka 开发的 Avro
数据存储,持久化功能还在开发中。
脚本示例(要求 JDK 1.8)
function onNameUpdated() { var age = record.get("age"); what_is(age); what_is(http_get); var http_get_result = http_get.apply("http://localhost:8080/ping"); java.lang.Thread.sleep(1000); what_is(http_get_result.value()); what_is(http_post); var http_post_result = http_post.apply("http://localhost:8080/personinfo/put/2/age", "888"); java.lang.Thread.sleep(1000); what_is(http_post_result.value()); for (i = 0; i < fields.length; i++) { var field = fields[i]; what_is(field._1); what_is(field._2); } } function what_is(value) { print(id + ": " + value); } onNameUpdated()
astore 官网
https://github.com/wandoulabs/astore
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。