@Override
    public String[] getCacheIDsInPushPullTable(String cacheInstance, String pattern) throws javax.management.AttributeNotFoundException { // LI4337-17

        // Get the cache for this cacheInstance
        DCache cache1 = getCache(cacheInstance);
        // Check that the input pattern is a valid regular expression
        Pattern cpattern = checkPattern(pattern);

        // retrieve all the cache ids from PushPullTable
        List<String> matchSet = new ArrayList<String>(10);
        int count = 0;
        Object[] list = cache1.getCacheIdsInPushPullTable().toArray();
        for (int i = 0; i < list.length; i++) {
            String skey = list[i].toString();
            boolean matches = checkMatch(cpattern, skey);
            if (matches) {
                matchSet.add(skey);
                count++;
                //if (tc.isDebugEnabled()) {
                //  Tr.debug(tc,"getCacheIDsInPushPullTable:  Cache element # " + count +" = " + skey + " matches the pattern " + pattern + " for cacheInstance = " + cacheInstance);
                //}    
            }
        }
        if (tc.isDebugEnabled()) {
            Tr.debug(tc, "getCacheIDsInPushPullTable" + "/" + cacheInstance + "/" + "Exiting. Number of matches found = " + count);
        }
        //Allocate output String array #entries matched and return
        //Convert to string array and return 
        String[] cids = matchSet.toArray(new String[matchSet.size()]);
        return cids;
    }
@ Override public String [ ] getCacheIDsInPushPullTable ( String cacheInstance , String pattern ) throws javax . management . AttributeNotFoundException { DCache cache1 = getCache ( cacheInstance ) ; Pattern cpattern = checkPattern ( pattern ) ; List < String > matchSet = new ArrayList < String > ( 10 ) ; int count = 0 ; Object [ ] list = cache1 . getCacheIdsInPushPullTable ( ) . toArray ( ) ; for ( int i = 0 ; i < list . length ; i ++ ) { String skey = list [ i ] . toString ( ) ; boolean matches = checkMatch ( cpattern , skey ) ; if ( matches ) { matchSet . add ( skey ) ; count ++ ; } } if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getCacheIDsInPushPullTable" + "/" + cacheInstance + "/" + "Exiting. Number of matches found = " + count ) ; } String [ ] cids = matchSet . toArray ( new String [ matchSet . size ( ) ] ) ; return cids ; }
/*
(non-Javadoc)

@see com.ibm.websphere.cache.CacheAdminMBean#getCacheIDsInPushPullTable(java.lang.String, java.lang.String)