Giriş
Açıklaması şöyle
Apache Ignite also comes with the REST API, which allows performing basic operations like reading or updating cache entries, executing SQL queries, looking at some of the metrics, etc.
In its current implementation, this API is not really suitable for any performance-sensitive purposes, so I usually avoid using it in production for applications of any type.
However, the REST API might sometimes be useful during development or testing — to quickly check a particular entry value or a SQL query result, for example.
get
Örnek
MyCache isimli tablodaki key değeri 1 olan satırı almak için şöyle yaparız
http://restapi-ignite-grid/ignite?cmd=get&key=1&cacheName=MyCache
{"successStatus":0,"affinityNodeId":<someValue>,"sessionToken":null,"error":null,
"response":null}
Örnek
MyCache isimli tablonun büyüklüğünü almak için şöyle yaparız
http://restapi-ignite-grid/ignite?cmd=size&cacheName=MyCache
Cevap şöyledir. İçinde 10 tane satır var{"successStatus":0,"affinityNodeId":null,"sessionToken":null,"error":null,"response":10}
Hiç yorum yok:
Yorum Gönder