Package net.jini.core.lookup

Examples of net.jini.core.lookup.ServiceTemplate


               null));
  ((DiscoveryLocatorManagement) disco).setLocators((LookupLocator[])
      Config.getNonNullEntry(config, BROWSER, "initialLookupLocators",
           LookupLocator[].class,
           new LookupLocator[0]));
  tmpl = new ServiceTemplate(null, new Class[0], new Entry[0]);
  setTitle("Service Browser");
  JMenuBar bar = new JMenuBar();
  JMenu file = new JMenu("File");
  JMenuItem allfind = new JMenuItem("Find All");
  allfind.addActionListener(wrap(new AllFind()));
View Full Code Here


      attrs = new Entry[] { new BasicServiceType("XmlSearchService") };
  }
  else if (serviceInfo.getTagName().equals("XmlDocumentService")) {
      attrs = new Entry[] { new BasicServiceType("XmlDocumentService") };
  }
  _serviceTemplate = new ServiceTemplate(null, null, attrs);
  // set up for discovery
  System.out.println("LookupDiscovery in groups:");
  for (int i = 0; i < _groups.length; i++)
      System.out.println("\tgroup " + _groups[i]);
   
View Full Code Here

  }

  // build our template
  Entry[] attrs = new Entry[]
  { new BasicServiceType(serviceType) };
  _serviceTemplate = new ServiceTemplate(null, null, attrs);
   
  // set up for discovery
  LookupDiscovery disco = new LookupDiscovery(_groups);
  disco.addDiscoveryListener(new Discoverer());
    }
View Full Code Here

      attrs = new Entry[] { new BasicServiceType("XmlSearchService") };
    }
    else if (serviceInfo.getTagName().equals("XmlDocumentService")) {
      attrs = new Entry[] { new BasicServiceType("XmlDocumentService") };
    }
    _serviceTemplate = new ServiceTemplate(null, null, attrs);
    // set up for discovery
    System.out.println("LookupDiscovery in groups:");
    for (int i = 0; i < _groups.length; i++)
      System.out.println("\tgroup " + _groups[i]);
   
View Full Code Here

    }

    // build our template
    Entry[] attrs = new Entry[]
      { new BasicServiceType(serviceType) };
    _serviceTemplate = new ServiceTemplate(null, null, attrs);
   
    // set up for discovery
    LookupDiscovery disco = new LookupDiscovery(_groups);
    disco.addDiscoveryListener(new Discoverer());
  }
View Full Code Here

  } catch (IOException e) {
      throw new TestException("failed to create a LookupDiscoveryManager",
            e);
  }
  logServiceParameters();
  ServiceTemplate template = new ServiceTemplate(null, types, null);
  while (true) {
      DiscoveryEvent event = null;
      synchronized (eventList) {
    try {
        event = (DiscoveryEvent) eventList.removeFirst();
View Full Code Here

               null));
  ((DiscoveryLocatorManagement) disco).setLocators((LookupLocator[])
      Config.getNonNullEntry(config, BROWSER, "initialLookupLocators",
           LookupLocator[].class,
           new LookupLocator[0]));
  tmpl = new ServiceTemplate(null, new Class[0], new Entry[0]);
  setTitle("Service Browser");
  JMenuBar bar = new JMenuBar();
  JMenu file = new JMenu("File");
  JMenuItem allfind = new JMenuItem("Find All");
  allfind.addActionListener(wrap(new AllFind()));
View Full Code Here

  tmpl     = new ServiceTemplate[srvcRegs.length];
  evntRegs = new EventRegistration[srvcRegs.length];
        for (i=0;i<srvcRegs.length;i++) {
            curSrvcID = srvcRegs[i].getServiceID();
            tmpl[i] = new ServiceTemplate(curSrvcID,null,null);
      EventRegistration er;
      er = proxy.notify(tmpl[i], regTransitions, listener,
            new MarshalledObject(curSrvcID),
            Long.MAX_VALUE);
      evntRegs[i] = prepareEventRegistration(er);
View Full Code Here

          indx = k;
          break;
      }
        }
        Class[] classTypeArray = {intfcClassTypes[j]};
        intfcClassTmpls[i][k] = new ServiceTemplate
      (null,classTypeArray,null);
    }
      }
  }
    }
View Full Code Here

  proxy = super.getProxy();

  srvcIDTmpl = new ServiceTemplate[srvcRegs.length];
        for (i=0;i<srvcRegs.length;i++) {
            curSrvcID = srvcRegs[i].getServiceID();
            srvcIDTmpl[i] = new ServiceTemplate(curSrvcID,null,null);
  }

  for(i=0; i<srvcRegs.length; i++) {
      /* Not necessary to add each attribute to each service
             * instance; just pick a different attribute set from
View Full Code Here

TOP

Related Classes of net.jini.core.lookup.ServiceTemplate

Copyright © 2018 www.massapicom. 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.