001/*
002 *  This file is part of the Jikes RVM project (http://jikesrvm.org).
003 *
004 *  This file is licensed to You under the Eclipse Public License (EPL);
005 *  You may not use this file except in compliance with the License. You
006 *  may obtain a copy of the License at
007 *
008 *      http://www.opensource.org/licenses/eclipse-1.0.php
009 *
010 *  See the COPYRIGHT.txt file distributed with this work for information
011 *  regarding copyright ownership.
012 */
013package gnu.java.lang.management;
014
015final class VMMemoryManagerMXBeanImpl {
016
017  /**
018   * We ignore the name as we only have one manager,
019   * and simply return the same as the management factory
020   * would.
021   *
022   * @param name the name of the memory manager whose pools
023   *             should be returned (ignored).
024   * @return the list of pools.
025   */
026  static String[] getMemoryPoolNames(String name) {
027    return VMMemoryPoolMXBeanImpl.getPoolNames();
028  }
029
030  /**
031   * We assume that our manager is always valid.
032   *
033   * @param name the name of the memory manager whose pools
034   *             should be returned (ignored).
035   * @return {@code true}
036   */
037  static boolean isValid(String name) {
038    return true;
039  }
040
041}