Examples of listServices()


Examples of org.openengsb.core.api.OsgiUtilsService.listServices()

public class DomainInfoCommand extends OsgiCommandSupport {

    @Override
    protected Object doExecute() throws Exception {
        OsgiUtilsService service = new DefaultOsgiUtilsService(getBundleContext());
        List<DomainProvider> serviceList = service.listServices(DomainProvider.class);
        Collections.sort(serviceList, Comparators.forDomainProvider());
        System.out.println("Services");
        for (DomainProvider dp : serviceList) {
            OutputStreamFormater.printValue(dp.getName().getString(Locale.getDefault()),
                dp.getDescription().getString(Locale.getDefault()));
View Full Code Here

Examples of org.openengsb.core.util.DefaultOsgiUtilsService.listServices()

public class DomainInfoCommand extends OsgiCommandSupport {

    @Override
    protected Object doExecute() throws Exception {
        OsgiUtilsService service = new DefaultOsgiUtilsService(getBundleContext());
        List<DomainProvider> serviceList = service.listServices(DomainProvider.class);
        Collections.sort(serviceList, Comparators.forDomainProvider());
        System.out.println("Services");
        for (DomainProvider dp : serviceList) {
            OutputStreamFormater.printValue(dp.getName().getString(Locale.getDefault()),
                dp.getDescription().getString(Locale.getDefault()));
View Full Code Here

Examples of org.osgi.jmx.framework.ServiceStateMBean.listServices()

        assertEquals(1, usingBundles.length);
        assertEquals(a.getBundleId(), usingBundles[0]);
       
        // listServices
       
        TabularData allServices = mbean.listServices();
        assertNotNull(allServices);
        assertEquals(bundleContext.getAllServiceReferences(null, null).length, allServices.values().size());
       
        // notifications
       
View Full Code Here

Examples of org.osgi.jmx.framework.ServiceStateMBean.listServices()

        assertEquals(1, usingBundles.length);
        assertEquals(a.getBundleId(), usingBundles[0]);
       
        // listServices
       
        TabularData allServices = mbean.listServices();
        assertNotNull(allServices);
        assertEquals(bundleContext.getAllServiceReferences(null, null).length, allServices.values().size());
       
        // notifications
       
View Full Code Here

Examples of org.osgi.jmx.framework.ServiceStateMBean.listServices()

        assertEquals(1, usingBundles.length);
        assertEquals(a.getBundleId(), usingBundles[0]);
       
        // listServices
       
        TabularData allServices = mbean.listServices();
        assertNotNull(allServices);
        assertEquals(bundleContext.getAllServiceReferences(null, null).length, allServices.values().size());
       
        // notifications
       
View Full Code Here

Examples of org.osgi.jmx.framework.ServiceStateMBean.listServices()

        assertEquals(1, usingBundles.length);
        assertEquals(a.getBundleId(), usingBundles[0]);
       
        // listServices
       
        TabularData allServices = mbean.listServices();
        assertNotNull(allServices);
        assertEquals(bundleContext.getAllServiceReferences(null, null).length, allServices.values().size());
       
        // notifications
       
View Full Code Here

Examples of org.osgi.jmx.framework.ServiceStateMBean.listServices()

        assertEquals(1, usingBundles.length);
        assertEquals(a.getBundleId(), usingBundles[0]);
       
        // listServices
       
        TabularData allServices = mbean.listServices();
        assertNotNull(allServices);
        assertEquals(bundleContext.getAllServiceReferences(null, null).length, allServices.values().size());
       
        // notifications
       
View Full Code Here

Examples of org.platformlayer.PlatformLayerClient.listServices()

    return services;
  }

  private Iterable<ServiceInfo> getAllServiceInfos() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();
    Iterable<ServiceInfo> allServices = client.listServices(true);
    return allServices;
  }

  public Multimap<String, ServiceInfo> listItemTypes() throws PlatformLayerClientException {
    Iterable<ServiceInfo> allServices = getAllServiceInfos();
View Full Code Here

Examples of org.platformlayer.PlatformLayerClient.listServices()

  @Override
  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    return client.listServices(true);
  }

  @Override
  public void formatRaw(Object o, PrintWriter writer) {
    Iterable<ServiceInfo> services = (Iterable<ServiceInfo>) o;
View Full Code Here

Examples of org.platformlayer.TypedPlatformLayerClient.listServices()

    TypedPlatformLayerClient client = getTypedClient();

    JaxbHelper jaxbHelper = PlatformLayerClientBase.toJaxbHelper(itemClass, new Class[] {});

    PlatformLayerKey key = PlatformLayerClientBase.toKey(jaxbHelper, new ManagedItemId(id), itemClass,
        client.listServices(true));
    return client.getItem(key, itemClass);
  }

  public void cleanup() throws IOException, OpsException {
    while (!ownedItems.isEmpty()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.