Examples of ServiceInfo


Examples of org.jgroups.mux.ServiceInfo

        _testSize(hdr);

        hdr=new MuxHeader("bla");
        _testSize(hdr);

        ServiceInfo si=new ServiceInfo();
        hdr=new MuxHeader(si);
        _testSize(hdr);      
        _testSize(new MuxHeader(si));
    }
View Full Code Here

Examples of org.platformlayer.core.model.ServiceInfo

    if (items.containsKey(head)) {
      Collection<ServiceInfo> services = items.get(head);
      if (services.size() > 1) {
        throw new IllegalArgumentException("Cannot resolve path (ambiguous item type): " + path);
      }
      ServiceInfo serviceInfo = Iterables.getOnlyElement(services);
      itemType = head;
      if (serviceType != null) {
        if (!Objects.equal(serviceType, serviceInfo.serviceType)) {
          throw new IllegalArgumentException("Cannot resolve path (service/item type mismatch): " + path);
        }
View Full Code Here

Examples of org.rioproject.tools.cli.ServiceFinder.ServiceInfo

    public static String[] formattedArray(final ServiceItem[] items) {
        List<OutputInfo> list = new ArrayList<OutputInfo>();
        ServiceInfo[] serviceInfo = CLI.getInstance().finder.getServiceInfo();
        for(int i=0; i<items.length; i++) {
            ServiceInfo sInfo = null;
            for (ServiceInfo aServiceInfo : serviceInfo) {
                ServiceItem item = aServiceInfo.getServiceItem();
                if (item.serviceID.equals(items[i].serviceID)) {
                    sInfo = aServiceInfo;
                    break;
                }
            }
            if(sInfo==null) {
                sInfo = new ServiceInfo(items[i]);
                Future<ServiceInfo> future = CLI.getInstance().finder.resolveServiceInfo(sInfo);
                try {
                    sInfo = future.get(5, TimeUnit.SECONDS);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }

            String name = sInfo.getServiceName();
            String[] groups = sInfo.getGroups();
            String host = sInfo.getHost();
            if(groups==null)
                groups = new String[]{"<?>"};

            String[] optionValues= new String[] {"", "", ""};
View Full Code Here

Examples of org.rzo.yajsw.os.ServiceInfo

    return true;
  }

  private boolean isService(String name)
  {
    ServiceInfo s = _services.get(name);
    return !"Console".equals(s.getWrapped());
  }
View Full Code Here

Examples of org.rzo.yajsw.os.ServiceInfo

    final ReloadConsoleDialog reloadConsole = new ReloadConsoleDialog();
   
      final JDialog dialog = new JDialog(frame);
      if (servicesTable.getSelection().size() == 0)
        return;
      final ServiceInfo selected = servicesTable.getSelection().get(0);
      reloadConsole._SERVICE.setText(selected.getName());
      reloadConsole._CONFIGURATION.setModel(new DefaultComboBoxModel(new Vector(configurations)));

      reloadConsole._OK_BUTTON.setAction(new AbstractAction("Reload")
      {

      public void actionPerformed(ActionEvent e)
      {
        reloadConsole._OK_BUTTON.setEnabled(false);
          AsyncServiceManagerServer proxy = proxies.get(selected.getHost());
        boolean result = false;
        try
        {
          result = ((Boolean)((Future)proxy.yajswReloadConsole(selected.getName(), (String) reloadConsole._CONFIGURATION.getSelectedItem())).get(10, TimeUnit.SECONDS)).booleanValue();
        }
        catch (Exception e1)
        {
          // TODO Auto-generated catch block
          e1.printStackTrace();
View Full Code Here

Examples of org.rzo.yajsw.os.ServiceInfo

      for (int i=0; i<listData.size(); i++)
        install._HOSTS_LIST.setSelectedIndex(i);
      List<ServiceInfo> selected = servicesTable.getSelection();
      if (selected.size() >0)
      {
        ServiceInfo selection = selected.get(0);
      }
    install._CONFIGURATION.setModel(new DefaultComboBoxModel(new Vector(configurations)));
      install._OK_BUTTON.setAction(new AbstractAction("INSTALL")
      {
View Full Code Here

Examples of org.uddi.api_v2.ServiceInfo

                ServiceInfos r = new ServiceInfos();
                if (serviceInfos == null) {
                        return r;
                }
                for (int i = 0; i < serviceInfos.getServiceInfo().size(); i++) {
                        ServiceInfo x = new ServiceInfo();
                        x.setBusinessKey(serviceInfos.getServiceInfo().get(i).getBusinessKey());
                        x.setServiceKey(serviceInfos.getServiceInfo().get(i).getServiceKey());
                        x.getName().addAll(MapName(serviceInfos.getServiceInfo().get(i).getName()));
                        r.getServiceInfo().add(x);
                }
                return r;
        }
View Full Code Here

Examples of org.uddi.api_v3.ServiceInfo

      if (sInfos == null)
        Assert.fail("No result from getSubscriptionResults operation");
      List<ServiceInfo> siList = sInfos.getServiceInfo();
      if (siList == null || siList.size() == 0)
        Assert.fail("No result from getSubscriptionResults operation");
      ServiceInfo siOut = siList.get(0);
     
      BusinessService bsIn = (BusinessService)EntityCreator.buildFromDoc(TckBusinessService.JOE_SERVICE_XML, "org.uddi.api_v3");

      assertEquals(bsIn.getServiceKey(), siOut.getServiceKey());
     
      TckValidator.checkNames(bsIn.getName(), siOut.getName());
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown");   
    }
View Full Code Here

Examples of org.uddi.api_v3.ServiceInfo

          List<BusinessInfo> biList = bl.getBusinessInfos().getBusinessInfo();
          if (biList.get(0).getServiceInfos().getServiceInfo().size() != 1) {
            Assert.fail("Should have found only one ServiceInfo");
          } else {
              List<ServiceInfo> siList = biList.get(0).getServiceInfos().getServiceInfo();
              ServiceInfo si = siList.get(0);
              if (!TOM_PUBLISHER_SERVICEINFO_NAME.equals(si.getName().get(0).getValue())) {
                Assert.fail("Should have found " + TOM_PUBLISHER_TMODEL01_NAME + " as the "
                    + "ServiceInfo name, found " + si.getName().get(0).getValue());
              }
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of org.uddi.api_v3.ServiceInfo

      if (sInfos == null)
        Assert.fail("No result from find service operation");
      List<ServiceInfo> siList = sInfos.getServiceInfo();
      if (siList == null || siList.size() == 0)
        Assert.fail("No result from find service operation");
      ServiceInfo siOut = siList.get(0);
     
      BusinessService bsIn = (BusinessService)EntityCreator.buildFromDoc(TckBusinessService.JOE_SERVICE_XML, "org.uddi.api_v3");
     
      assertEquals(bsIn.getServiceKey(), siOut.getServiceKey());
     
      TckValidator.checkNames(bsIn.getName(), siOut.getName());
      serviceKey = siOut.getServiceKey();
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown.");
    }
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.