caching - How to get All Cache names present in Oracle Coherence cluster? -


i running oracle coherence cluster , using extended clients connect cluster. if there multiple extended clients keep joining , leaving oracle coherence cluster, there chances 1 service created caches , left cluster caches present in cluster.

i want cache names present in cluster @ point of time.

is possible cache names?

there api in cacheservice called getcachenames returns cache names corresponding service.

but how cache names created other services belonging clients no more active caches present in cluster?

[update] :- there command called 'maps' gives caches present in server(created clients). not able find api same operation.

is there api execute maps command or way execute command directly using java code.

better late never...

here rough example, needs bit of tidying if want use in production...

enumeration servicenames = cachefactory.getcluster().getservicenames(); while(servicenames.hasmoreelements()){     string servicename = (string)servicenames.nextelement();     service service = null;     try{         service = cachefactory.getservice(servicename);     }catch(exception e){         continue;     }     if(service instanceof cacheservice){         cacheservice cacheservice = (cacheservice)service;         enumeration cachenames = cacheservice.getcachenames();         while(cachenames.hasmoreelements()){             string cachename = (string)cachenames.nextelement();             system.out.println("<<<" + cachename);         }     } } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -