Package net.jini.lookup.entry

Examples of net.jini.lookup.entry.ServiceInfo


                             ("net.jini.lookup.entry.ServiceInfo.model",
                              "");
        String serialNumber = config.getStringConfigVal
                             ("net.jini.lookup.entry.ServiceInfo.serialNumber",
                              "");
        return new ServiceInfo(name,manufacturer,vendor,version,
                               model,serialNumber);
    }//end getServiceInfoEntryFromConfig
View Full Code Here


    /**
     * Create the service-owned attributes for an Outrigger server.
     */
    private static Entry[] attributesFor() {
  final Entry info = new ServiceInfo("JavaSpace",
      "Sun Microsystems, Inc.", "Sun Microsystems, Inc.",
      com.sun.jini.constants.VersionConstants.SERVER_VERSION, "", "");
 
  final Entry type =
      new com.sun.jini.lookup.entry.BasicServiceType("JavaSpace");
View Full Code Here

        server and use it to register this server with the lookup service.
        JoinManager finds and registers with the lookup service */

        Entry[] attr = new Entry[2];
        attr[0] = new Name("Neon Light");
        attr[1] = new ServiceInfo("Name", "Manufactor", "vendor","version","model","serial");
        myServer = new RoomLightNeon ();
        serviceItem = new ServiceItem(null, myServer, attr);

        lookup = new LookupLocator ("jini://localhost");
        registrar  = lookup.getRegistrar();
View Full Code Here

              registrar  = lookup.getRegistrar();
              aeAttributes = new Entry[2];

              aeAttributes[0] = new Name("Neon Light");
              aeAttributes[1] = new ServiceInfo("Name", "Manufactor", "vendor","version","model","serial");
             
              template = new ServiceTemplate (null, null, aeAttributes);

              myRoomLight = (RoomLight) registrar.lookup (template);
View Full Code Here

    /**
     * Create the service-owned attributes for an Outrigger server.
     */
    private static Entry[] attributesFor() {
  final Entry info = new ServiceInfo("JavaSpace",
      "Sun Microsystems, Inc.", "Sun Microsystems, Inc.",
      com.sun.jini.constants.VersionConstants.SERVER_VERSION, "", "");
 
  final Entry type =
      new com.sun.jini.lookup.entry.BasicServiceType("JavaSpace");
View Full Code Here

    }

    protected void printServiceInfo(ServiceItem item) {
  for (int i = 0; i < item.attributeSets.length; i++) {
      if (item.attributeSets[i] instanceof ServiceInfo) {
    ServiceInfo info = (ServiceInfo) item.attributeSets[i];
    System.out.println("    ServiceInfo = " + info.name);
      }
      else if (item.attributeSets[i] instanceof Name) {
    Name name = (Name) item.attributeSets[i];
    System.out.println("    Name = " + name.name);
View Full Code Here

    }}).start();
    }
 
    private void startService() {
  _serviceAttrs =
      new Entry[] { new ServiceInfo(PRODUCT,
            MANUFACTURER,
            VENDOR,
            VERSION,
            null, null),
        new BasicServiceType("XmlDocumentService"),
View Full Code Here

    }}).start();
    }
 
    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()) {
View Full Code Here

  }

  protected void printServiceInfo(ServiceItem item) {
    for (int i = 0; i < item.attributeSets.length; i++) {
      if (item.attributeSets[i] instanceof ServiceInfo) {
  ServiceInfo info = (ServiceInfo) item.attributeSets[i];
  System.out.println("    ServiceInfo = " + info.name);
      }
      else if (item.attributeSets[i] instanceof Name) {
  Name name = (Name) item.attributeSets[i];
  System.out.println("    Name = " + name.name);
View Full Code Here

    /**
     * Create the service owned attributes for an Mahalo server
     */
    private static Entry[] attributesFor() {
  final Entry info = new ServiceInfo("Transaction Manager",
      "Sun Microsystems, Inc.""Sun Microsystems, Inc.",
      com.sun.jini.constants.VersionConstants.SERVER_VERSION,
      "", "");
 
  final Entry type =
View Full Code Here

TOP

Related Classes of net.jini.lookup.entry.ServiceInfo

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.