是否有工具可以检查/调试 Oracle Coherence 缓存的内容?
我是 Oracle Coherence 的新手,我正在尝试找到一个开发/调试工具来帮助我验证我的应用程序。
感觉应该有一种直接的方式来查看缓存的键和/或值(甚至可能运行临时查询和函数?)。但是,除了(Oracle Coherence Cache Viewer)[http://www.sl.com/products/coherenceviewer.shtml],我找不到任何东西。
否则,我可以编写一些东西来询问 Coherence JMX MBean,使用 Coherence 命令行界面,或者自己编写代码来查询我的缓存,但这感觉就像以前遇到过的问题 - 希望我可以回收一些东西,而不是从中写入划痕?
I'm new to Oracle Coherence, and I'm trying to find a development / debug tool to help me validate my application.
It feels like there should be a straight-forward way of viewing the keys and/or values of a cache (and possibly even run ad-hoc queries and functions?). However I can't find anything except (Oracle Coherence Cache Viewer)[http://www.sl.com/products/coherenceviewer.shtml].
Otherwise I can write something to interrogate the Coherence JMX MBean, use the Coherence command-line interface, or write code myself to query my cache, but this feels like a problem which has been encountered before - hopefully I can recycle something rather than write from scratch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我能找到的最好的工具是完整 Coherence 安装
%COHERENCE_HOME%\bin\query.cmd
或$COHERENCE_HOME/bin/query.sh
附带的 QueryPlus 命令行工具>。您需要通过在 JVM 上设置属性将其指向 Coherence 配置文件:
java -Dtangosol.coherence.cacheconfig=META-INF/wlevs/coherence/coherence-cache-config.xml -Dtangosol.pof.config= my-pof-config.xml ...
您还需要添加将用户类型加载到类路径所需的所有 jar,并获取类路径中的
tangosol-coherence-override.xml
用于定义要加入的集群。The best tool I can find is the QueryPlus command-line tool shipped with a full Coherence install
%COHERENCE_HOME%\bin\query.cmd
or$COHERENCE_HOME/bin/query.sh
.You need to point it to your Coherence config files by setting properties on the JVM:
java -Dtangosol.coherence.cacheconfig=META-INF/wlevs/coherence/coherence-cache-config.xml -Dtangosol.pof.config=my-pof-config.xml ...
You also need to add all jars required to load your user types to the classpath, and get a
tangosol-coherence-override.xml
in the classpath to define the cluster to join to.QueryPlus 的 GUI:
http://code.google.com/p/zh-coherence-viewer/
它可以执行 CohQL 脚本并将其显示在表格或文本窗格中。
GUI for QueryPlus:
http://code.google.com/p/zh-coherence-viewer/
It can execute CohQL script and show it in table or text pane.
我一直在开发一个基于 Coherence C++ 客户端库的命令行工具:
https://github。 com/actsasflinn/coherence-tool
还没有 CohQL,但支持以下用法,涵盖了我想要的大部分内容:
I've been working on a command line tool based on the Coherence C++ client library here:
https://github.com/actsasflinn/coherence-tool
No CohQL yet but supports the following usage which covers most everything I'd want:
另请参阅“使用一致性查询语言”:http://docs。 oracle.com/cd/E15357_01/coh.360/e15723/api_cq.htm
See also "Using Coherence Query Language": http://docs.oracle.com/cd/E15357_01/coh.360/e15723/api_cq.htm