client probe cache metadata

classic Classic list List threaded Threaded
4 messages Options
wt wt
Reply | Threaded
Open this post in threaded view
|

client probe cache metadata

Hi

The rest service has a meta method that returns fields and index info. I
can't see another rest method that would show what a cache config is like
(backup, atomic or transactional, if metrics tracking is enabled, and
whatever other relevant cache config there might be. Can i get this from the
client?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Stanislav Lukyanov Stanislav Lukyanov
Reply | Threaded
Open this post in threaded view
|

RE: client probe cache metadata

No, seems there are no methods for that.

I assume it could be added to the metadata response. But why do you need it?

 

Stan

 

From: [hidden email]
Sent: 11 октября 2018 г. 15:12
To: [hidden email]
Subject: client probe cache metadata

 

Hi

 

The rest service has a meta method that returns fields and index info. I

can't see another rest method that would show what a cache config is like

(backup, atomic or transactional, if metrics tracking is enabled, and

whatever other relevant cache config there might be. Can i get this from the

client?

 

 

 

 

--

Sent from: http://apache-ignite-users.70518.x6.nabble.com/

 

aealexsandrov aealexsandrov
Reply | Threaded
Open this post in threaded view
|

Re: client probe cache metadata

In reply to this post by wt
Hi,

You can get all caches configuration from Java API:

        IgniteCache<String, Object> cache =
dr1Hub.getOrCreateCache("CACHE");

        CacheConfiguration conf =
cache.getConfiguration(CacheConfiguration.class);

       
System.out.println("------------------------------------------------");
        System.out.println("Cache name " + conf.getName());
        System.out.println("Atomicity mode " + conf.getAtomicityMode());
        System.out.println("Backups " + conf.getBackups());
       
System.out.println("------------------------------------------------");

Output:

------------------------------------------------
Cache name CACHE
Atomicity mode TRANSACTIONAL
Backups 1
------------------------------------------------

Also possible to get it from Mbeans:

1)Start jconsole
2)choose Mbeans tab
3)org.apache->id->gridname->cache_groups->cache_name->attributes

BR,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
wt wt
Reply | Threaded
Open this post in threaded view
|

Re: client probe cache metadata

This post was updated on .
thanks for the help on this Andrei -i will look into that method. thanks



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/