How to aggregate(sum) metaspace tuples using the Java API.

How to aggregate(sum) metaspace tuples using the Java API.

book

Article ID: KB0093785

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:

ActiveSpaces (AS) does not have an API to get the total metaspace count. How to obtain the total metaspace tuples count using an existing API?

Issue/Introduction

How to aggregate(sum) metaspace tuples using the Java API.

Resolution

AS does not have an API to obtain the total metaspace count. You can write your own Java code and invoke it from BW to get the space count and list of spaces.


====Sample Code===========


Collection<String> list = ASCommon.getMetaspace(metaspace).getUserSpaceNames()

  long spaceTupleCount =0;
            for (String  space : list)
            {
                spaceTupleCount =spaceTupleCount +Space(space).size();

            }

=========================