Examples of IServiceInfo


Examples of eu.scape_project.planning.services.IServiceInfo

            for (String measure : measures) {
                if (!processedMeasures.contains(measure)) {
                    List<IServiceInfo> qaWfs = queryQaComponents(measure, sourceMimetype, targetMimetype);
                    Iterator<IServiceInfo> qaIt = qaWfs.iterator();
                    if (qaIt.hasNext()) {
                        IServiceInfo wfi = qaIt.next();
                        WorkflowDescription wfd = MyExperimentRESTClient.getWorkflow(wfi.getDescriptor());
                        wfd.readMetadata();
                        List<Port> outputPorts = wfd.getOutputPorts();

                        List<String> leftMeasures = new ArrayList<String>();
                        List<String> rightMeasures = new ArrayList<String>();
View Full Code Here

Examples of eu.scape_project.planning.services.IServiceInfo

    private void recommendCcComponents(List<RecommendedComponent> recommendedComponents, Set<String> processedMeasures,
        final List<String> measures, final String measure, final String targetMimetype) throws PlanningServiceException {
        List<IServiceInfo> ccWfs = queryCcComponents(measure, targetMimetype);
        Iterator<IServiceInfo> ccIt = ccWfs.iterator();
        if (ccIt.hasNext()) {
            IServiceInfo wfi = ccIt.next();
            WorkflowDescription wfd = MyExperimentRESTClient.getWorkflow(wfi.getDescriptor());
            wfd.readMetadata();
            List<Port> outputPorts = wfd.getOutputPorts();
            List<String> ccMeasures = new ArrayList<String>();
            for (Port port : outputPorts) {
                if (measures.contains(port.getValue())) {
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

    this.registrationLock.lock();
    try {
      final IServiceInfoFactory service = serviceInfoFactoryTracker
          .getService();
      if (service != null) {
        final IServiceInfo serviceInfo = service.createServiceInfo(null,
            endpointDescription);
        if (serviceInfo != null) {
          trace("advertiseModifyEndpointDescription", //$NON-NLS-1$
              "advertising modify endpointDescription=" + endpointDescription +  //$NON-NLS-1$
              " and IServiceInfo " + serviceInfo); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

        return;
      }
      final IServiceInfoFactory service = serviceInfoFactoryTracker
          .getService();
      if (service != null) {
        final IServiceInfo serviceInfo = service.createServiceInfo(null,
            endpointDescription);
        if (serviceInfo != null) {
          trace("advertiseEndpointDescription", //$NON-NLS-1$
              "advertising endpointDescription=" + endpointDescription +  //$NON-NLS-1$
              " and IServiceInfo " + serviceInfo); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

        URI uri = createURI(endpointDescription, advertiser,
            serviceTypeID, serviceName);
        IServiceProperties serviceProperties = createServiceProperties(
            endpointDescription, advertiser, serviceTypeID,
            serviceName, uri);
        IServiceInfo newServiceInfo = createServiceInfo(uri,
            serviceName, serviceTypeID, serviceProperties);
        return newServiceInfo;
    } catch (Exception e) {
      logError(
          "createServiceInfo", //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

    }
  }

  private boolean hasContainer(Object receiver) {
    // get the container instance
    IServiceInfo serviceInfo = DiscoveryPropertyTesterUtil
        .getIServiceInfoReceiver(receiver);
    final String connectNamespace = getConnectNamespace(serviceInfo);
    final String connectId = getConnectID(serviceInfo);
    try {
      final ID createConnectId = IDFactory.getDefault().createID(
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

   * @see
   * org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands
   * .ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final IServiceInfo serviceInfo = DiscoveryHandlerUtil
        .getActiveIServiceInfoChecked(event);
    final IServiceProperties serviceProperties = serviceInfo
        .getServiceProperties();

    final String clazz = serviceProperties
        .getPropertyString(Constants.OBJECTCLASS);
    final String serviceId = new String(
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

  public IServiceInfo getServiceInfo(IServiceID aServiceId) {
    Assert.isNotNull(aServiceId);
    IServiceInfo[] services = getServices(aServiceId.getServiceTypeID());
    for (int i = 0; i < services.length; i++) {
      //TODO This can be a lot faster if done directly instead of via org.eclipse.ecf.provider.dnssrv.DnsSrvDisocoveryLocator.getServices(IServiceTypeID)
      IServiceInfo iServiceInfo = services[i];
      if(iServiceInfo.getServiceID().equals(aServiceId)) {
        return iServiceInfo;
      }
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

      }
      String path = props.getProperty(DNS_SD_PATH);
      String proto = props.getProperty(DNS_SD_PTCL) == null ? aServiceTypeID.getProtocols()[0] : props.getProperty(DNS_SD_PTCL);
     
      URI uri = URI.create(proto + "://" + host + ":" + port + (path == null ? "" : path)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
      IServiceInfo info =new ServiceInfo(uri, host, aServiceTypeID, priority, weight, new ServiceProperties(props), ttl);
      infos.add(info);
    }
    return infos;
  }
View Full Code Here

Examples of org.eclipse.ecf.discovery.IServiceInfo

    return adapter;
  }

  public static IRemoteServiceReference[] getActiveIRemoteServiceReferencesChecked(
      ExecutionEvent event) throws ExecutionException {
    final IServiceInfo serviceInfo = DiscoveryHandlerUtil
        .getActiveIServiceInfoChecked(event);
    final IRemoteServiceContainerAdapter adapter = getActiveIRemoteServiceContainerAdapterChecked(event);
    try {
      return getRemoteServiceReferencesForRemoteServiceAdapter(adapter,
          serviceInfo);
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.