Hi Nick,

querying the index service itself can be realized quite simple in the following way: IndexPortType mIndexPortType mIndexPortType = null;
      Object[] entries = null;
try{ Address address = new Address("http://myhost:8080/wsrf/services/DefaultIndexService); mIndexPortType = new IndexServiceAddressingLocator().getIndexPortTypePort(new EndpointReferenceType(address));
           //query the DefaultIndexService
GetResourcePropertyResponse mQueryResponse = mIndexPortType.getResourceProperty(org.globus.wsrf.WSRFConstants.ENTRY);
           //deserialize alle entries returned by the index service
entries = ObjectDeserializer.toObject(mQueryResponse, EntryType.class);
           if(entries == null){
               logger.debug("No entries found");
           }else{
               logger.debug("Found " + entries.length + " entries");
           }catch(Exception e){
logger.error("Exception while querying DefaultIndexService");
            }finally{
               try{
                   mIndexPortType.destroy(new Destroy());
               }catch(Throwable t{}
           }

The object array contains elements of type EntryType.class.
Information which you can get from these entries are e.g.:

       EntryType entry = (EntryType)entries[0];
String address = entry.getMemberServiceEPR().getAddress().toString(); //the registered service address ReferencePropertiesType props = entry.getMemberServiceEPR().getProperties(); //reference properties e.g. ResourceKey AggregatorData aggData = ((AggregatorContent)entry.getContent()).getAggregatorData(); //aggregator data

The much more challenging task is to parse the aggregator data, which is doubtless the most interesting part. Explaining it here wouldn't make much sense.
If you're interested in parsing this data feel free to ask me directly.
Hopefully I could help you a bit so far.

Cheers,
Thomas.

--
Forschungszentrum Karlsruhe in der Helmholtz-Gemeinschaft
    Institute for Data Processing and Electronics

             Hermann-von-Helmholtz-Platz 1
        76344 Eggenstein-Leopoldshafen, Germany

phone: +49 7247 82-4042   email: [EMAIL PROTECTED]
fax  : +49 7247 82-3560
---------------------------------------------------------
    Macht es, kosmisch betrachtet, wirklich was aus,
      wenn ich nicht aufstehe und arbeiten gehe?
                    -Douglas Adams-

begin:vcard
fn:Thomas Jejkal
n:Jejkal;Thomas
org:Forschungszentrum Karlsruhe;Institute for Data Processing and Electronics
adr;quoted-printable:;;Hermann-von-Helmholtz-Platz 1;Eggenstein-Leopoldshafen;BaW=C3=BC;76344;Germany
email;internet:[EMAIL PROTECTED]
title:Dipl. Ing.
tel;work:+49 7247 824 042
x-mozilla-html:TRUE
url:http://www.fzk.de
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to