blob: fbc34be65166aa34ed5f512e2fca560f0bf80ef6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 VMware.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php.
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
* Christopher Frost - VMware
******************************************************************************/
package org.eclipse.gemini.management.framework;
import java.io.IOException;
import javax.management.openmbean.CompositeData;
import org.osgi.jmx.framework.ServiceStateMBean;
/**
*
*/
public interface CustomServiceStateMBean extends ServiceStateMBean {
/**
* Answer the list of services representing the services this bundle exports
*
* @param bundleId - the bundle identifier
* @return the list of services
* @throws IOException
* if the operation fails
* @throws IllegalArgumentException
* if the bundle indicated does not exist
*/
CompositeData[] getRegisteredServices(long bundleId) throws IOException;
/**
* Answer the list of services which refer to the the services this bundle is using
*
* @param bundleIdentifier - the bundle identifier
* @return the list of servics
* @throws IOException
* if the operation fails
* @throws IllegalArgumentException
* if the bundle indicated does not exist
*/
CompositeData[] getServicesInUse(long bundleIdentifier) throws IOException;
}