ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Global Map size in global cache .

Post new topic  Reply to topic
 Global Map size in global cache . « View previous topic :: View next topic » 
Author Message
binayak.nanda
PostPosted: Tue Jun 27, 2017 8:22 pm    Post subject: Global Map size in global cache . Reply with quote

Novice

Joined: 29 Oct 2014
Posts: 17

Hi All ,

I am having a requirement that i have to log all the cache entry with no of records cached . I am having following challenges on implementing this .

1)As i have to print no of records cached , but MbGlobalMap is not having size method which can return the size of the map .

2)I have to write MessageFlowLevel which puts/gets the record from cache , but unable to find any java method which can return current message flow level which is interacting with global cache . Though it is possible in ESQL , but how to do in java code .


Thanks in Advance !
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 27, 2017 8:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

You'd probably have to have a property value pair in the cache that you'd increment and decrement as the cache grows / shrinks. However that would still not cover elements inserted into the cache with a TTL.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
binayak.nanda
PostPosted: Wed Jun 28, 2017 9:10 am    Post subject: Reply with quote

Novice

Joined: 29 Oct 2014
Posts: 17

Thanks for the quick response . But that is not a great idea . IBM should expose a size method in the MbGlobalMap API .

Could you please help me on the second query . How to get MessageFlowLevel in java code .
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 28, 2017 11:56 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What are you really trying to do?

You seem to be trying to do several things that don't quite make sense...

The cache doesn't really have a "size". It might have a # of keys. It might have a # of kb/gb on disk...

And what's "MessageFLowLevel"?

Where's the documentation that shows how to get it from ESQL?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Global Map size in global cache .
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.