juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avinash Ganpat Mahajan (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] [Commented] (JUDDI-633) Building a Find Qualifiers for comparison operator such as "greater then" and "less than".
Date Fri, 16 Aug 2013 15:23:48 GMT

    [ https://issues.apache.org/jira/browse/JUDDI-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13742303#comment-13742303
] 

Avinash Ganpat Mahajan commented on JUDDI-633:
----------------------------------------------

I tried to omit the find_tModel portion of query but it is not searching services.

I tried with the "find_service.FindTModel.CategoryBag.KeyedReferences.Add" this approach and
changed the 1 qualifier.
i am now using qualifier "orlikekeys" with "approximateMatch" and it is presenting services
irrespective of QoS values given by User.

I think this is better to be used for ranking.
But i am not aware of how to parse the keyedreferences to get this values so to rank service
based on user preferences.


 FindService find_service = new FindService();
 find_service.Names.Add(service_name);

    
 //adding qualifier's

 // find_service.FindQualifiers.Add(FindQualifier.OrAllKeys);
    find_service.FindQualifiers.Add(FindQualifier.OrLikeKeys);
    find_service.FindQualifiers.Add(FindQualifier.ApproximateMatch);




 find_service.FindTModel.CategoryBag.KeyedReferences.Add("UDDI-WSMInfo-QoS-cost_of_service",
service_cost, "cost_of_service");
 find_service.FindTModel.CategoryBag.KeyedReferences.Add("UDDI-WSMInfo-QoS-service_provider",
service_provider, "service_provider");
 find_service.FindTModel.CategoryBag.KeyedReferences.Add("UDDI-WSMInfo-QoS-service_location",
service_location, "service_location");

          

  //Sending find service request over uddi connection.
         ServiceList list = new ServiceList();
         list = find_service.Send(myconn);

         int service_found = list.ServiceInfos.Count;
         //file.WriteLine("services found:" + service_found);


         if (service_found != 0)
          {
              //Writing results into file from list of service infos.
                foreach (ServiceInfo service_Info in list.ServiceInfos)
                {
                    
                   file.WriteLine("Service: {0} ({1})", service_Info.Names[0].Text, service_Info.ServiceKey
+ "\r\n");

                }


what you recommend to parse the keyedreferences of tModels to get QoS values?



                
> Building a Find Qualifiers for comparison operator such as "greater then" and "less than".
> ------------------------------------------------------------------------------------------
>
>                 Key: JUDDI-633
>                 URL: https://issues.apache.org/jira/browse/JUDDI-633
>             Project: jUDDI
>          Issue Type: New Feature
>          Components: juddi-tomcat
>    Affects Versions: 3.1.5
>         Environment: Windows 8 Pro.
> Tomcat 7.0
> MySQL 5.6
>            Reporter: Avinash Ganpat Mahajan
>            Assignee: Kurt T Stam
>              Labels: features
>             Fix For: 3.1.5
>
>   Original Estimate: 1,224h
>  Remaining Estimate: 1,224h
>
> I am trying to implement QoS aware UDDI searching mechanism.
> As QoS attributes are stored in KeyedReferences so needs to have some qualifiers to give
flexibility for searching such as for cost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message