Package net.jini.core.lookup

Examples of net.jini.core.lookup.ServiceTemplate


        tmpls = new ServiceTemplate[nClasses][nAttrClasses];
        for (i=0;i<nClasses;i++) {
      Class c = Class.forName(TEST_SRVC_CLASSES[i]);
      Class[] classType = {c};
      for (j=0;j<nAttrClasses;j++) {
    tmpls[i][j] = new ServiceTemplate
        (null,classType,tmplAttrs[j]);
      }
        }

        /* add each attribute to each service item */
 
View Full Code Here


        srvcLeases = new Lease[srvcRegs.length];
  for(i=0; i<srvcLeases.length; i++) {
      srvcLeases[i] = getRegistrationLease(srvcRegs[i]);
  }
  for(i=0; i<srvcIDTmpls.length; i++) {
      srvcIDTmpls[i] = new ServiceTemplate(srvcRegs[i].getServiceID(),
                                                 null,null);
  }
    }
View Full Code Here

  classTmpls = new ServiceTemplate[nClasses];
  for(int i=0; i<nClasses; i++) {
      Class c = Class.forName(TEST_SRVC_CLASSES[i]);
      Class[] classType = {c};
      classTmpls[i] = new ServiceTemplate(null,classType,null);
  }
    }
View Full Code Here

  proxy = super.getProxy();

        /* create the attribute templates to be used with getEntryClasses() */
        tmpls = new ServiceTemplate[nAttrClasses];
        for (i = 0; i < nAttrClasses; i++) {
      tmpls[i] = new ServiceTemplate(null,null,tmplAttrs[i]);
        }

        /* add each attribute to each service item */
        for(i=0; i<srvcRegs.length; i++) {
      for(j=0; j<nAttrClasses; j++) {
View Full Code Here

  listener = new Listener();
        evntLeaseDurMS = 5*QATestUtils.N_MS_PER_SEC;
        srvcItems = super.createServiceItems(TEST_SRVC_CLASSES);
  srvcRegs = super.registerAll();
  proxy = super.getProxy();
  emptyTmpl = new ServiceTemplate(null,null,null);
  EventRegistration evntReg
      = proxy.notify(emptyTmpl,
         ServiceRegistrar.TRANSITION_NOMATCH_MATCH |
         ServiceRegistrar.TRANSITION_MATCH_NOMATCH |
         ServiceRegistrar.TRANSITION_MATCH_MATCH,
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

        /* load each of the attribute classes and create a non-initialized
         * instance (null fields) of each loaded class; create a
         * ServiceTemplate containing the attributes just created
         */
        attrEntries = super.createNullFieldAttributes();
  tmpl = new ServiceTemplate(null,null,attrEntries);
        /* create an initialized instance (non-null fields) of each loaded
         * attribute class, then load one of the service classes and create
         * an instance of it containing all of the initialized attributes
         * created above; register that service classe with the lookup service
         */
 
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

    sClassType[1] = sc;
      }
      /* XXXX end */

      for (j=0;j<nAttrClasses;j++) {
    tmpl[i][j] = new ServiceTemplate(null,classType,
             addAttrs[j]);
    sTmpl[i][j] = new ServiceTemplate(null,sClassType,
              addAttrs[j]);
    proxy.notify(tmpl[i][j],
           transitionMask,
           listener,
           new MarshalledObject
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.