blob: 4dfc2b5114fd0d549728b948b7420b74721e51a7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* VMware Inc. - initial contribution
*******************************************************************************/
package org.eclipse.virgo.kernel.osgi.region.management;
import javax.management.MXBean;
import org.eclipse.virgo.kernel.osgi.region.RegionDigraph;
/**
* {@link ManageableRegionDigraph} is a JMX representation of the {@link RegionDigraph}.
* <p />
*
* <strong>Concurrent Semantics</strong><br />
* Thread safe.
*/
@MXBean
public interface ManageableRegionDigraph {
/**
* Gets the {@link ManageableRegion}s in the digraph.
*
* @return an array of {@link ManageableRegion}s
*/
ManageableRegion[] getRegions();
/**
* Gets the {@link ManageableRegion} with the given name.
*
* @param regionName the region name
* @return a {@link ManageableRegion} or <code>null</code> if there is no region with the given name
*/
ManageableRegion getRegion(String regionName);
}