Package com.sun.jini.lookup.entry

Examples of com.sun.jini.lookup.entry.BasicServiceType


     */
    public static Entry getBasicServiceTypeFromConfig(QAConfig config) {
        String type = config.getStringConfigVal
                           ("com.sun.jini.lookup.entry.BasicServiceType.type",
                            "Jini(TM) Service");
        return new BasicServiceType(type);
    }//end getBasicServiceTypeFromConfig
View Full Code Here


  }
  String lookup = serviceInfo.getAttribute("lookup");

  Entry[] attrs = null;
  if (serviceInfo.getTagName().equals("XmlSearchService")) {
      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++)
View Full Code Here

      System.setSecurityManager(new RMISecurityManager());
  }

  // 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

      new Entry[] { new ServiceInfo(PRODUCT,
            MANUFACTURER,
            VENDOR,
            VERSION,
            null, null),
        new BasicServiceType("XmlDocumentService"),
        new net.jini.lookup.entry.Name("Xml Transformation Service")
            };
   
  /* Create a LeaseRenewalManager for the JoinManager to use */
  LeaseRenewalManager leaseRenewalMgr = new LeaseRenewalManager();
View Full Code Here

 
    private void startService() {
  Vector entries = new Vector();
  entries.addElement(new ServiceInfo(PRODUCT, MANUFACTURER,
             VENDOR, VERSION, null, null));
  entries.addElement(new BasicServiceType("XmlSearchService"));
  entries.addElement(new Name(_name));
  Enumeration servers = _servers.elements();
  while (servers.hasMoreElements()) {
      XmlSearchServer server = (XmlSearchServer)servers.nextElement();
      entries.addElement(new SearchEngineEntry(server));
View Full Code Here

    }
    String lookup = serviceInfo.getAttribute("lookup");

    Entry[] attrs = null;
    if (serviceInfo.getTagName().equals("XmlSearchService")) {
      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++)
View Full Code Here

      System.setSecurityManager(new RMISecurityManager());
    }

    // 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

        "Sun Microsystems, Inc.",    // manufacturer
        "Sun Microsystems, Inc.",    // vender
        VersionConstants.SERVER_VERSION,  // version
        "",          // model
        ""),        // serialNumber
    new BasicServiceType("Lease Renewal Service")
      };
      try {
    joinState = new JoinState(
        normProxy, lrm, config, serviceAttributes,
        recoveredLocatorPreparer,
View Full Code Here

     */
    public static Entry getBasicServiceTypeFromConfig(QAConfig config) {
        String type = config.getStringConfigVal
                           ("com.sun.jini.lookup.entry.BasicServiceType.type",
                            "Jini(TM) Service");
        return new BasicServiceType(type);
    }//end getBasicServiceTypeFromConfig
View Full Code Here

  if (serviceByID.isEmpty()) {
      /* register myself */
      lookupAttrs = new Entry[]{new ServiceInfo(PRODUCT, MANUFACTURER,
                  VENDOR, VERSION,
                  "", ""),
              new BasicServiceType("Lookup")};
      Item item = new Item(new ServiceItem(myServiceID,
             proxy,
             lookupAttrs));
      resolver.resolve(item);
      SvcReg reg = new SvcReg(item, 0, Long.MAX_VALUE);
View Full Code Here

TOP

Related Classes of com.sun.jini.lookup.entry.BasicServiceType

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.