Examples of ServiceTemplate


Examples of net.jini.core.lookup.ServiceTemplate

  /**
   * @see org.springmodules.beans.factory.config.AbstractFactoryBean#createInstance()
   */
  protected Object createInstance() throws Exception {
    ServiceTemplate templ;

    if (template == null) {
      Class[] types = (serviceClass == null ? null : new Class[] { serviceClass });
      Entry[] entry = (serviceName == null ? null : new Entry[] { new Name(serviceName) });

      templ = new ServiceTemplate(null, types, entry);
    }
    else
      templ = template;

    final ServiceTemplate finalTemplate = templ;

    LookupDiscovery lookupDiscovery = null;

    try {
      lookupDiscovery = new LookupDiscovery(groups);
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

    public void setup(QAConfig sysConfig) throws Exception {
  super.setup(sysConfig);
  srvcItems = super.createServiceItems(TEST_SRVC_CLASSES);
  srvcRegs = super.registerAll();
  proxy = super.getProxy();
  emptyTmpl = new ServiceTemplate(null,null,null);
    }
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

  srvcItems = super.createServiceItems(TEST_SRVC_CLASSES);
  srvcRegs = registerAll();
  proxy = super.getProxy();
  srvcIDTmpls = new ServiceTemplate[nInstances];
  for(int i=0; i<srvcIDTmpls.length; i++) {
      srvcIDTmpls[i] = new ServiceTemplate(srvcRegs[i].getServiceID(),
                                                 null,null);
  }
  reuseServiceID();
  evntRegs = new EventRegistration[nInstances];
  evntLeases = new Lease[nInstances];
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

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

      for (j=0;j<nAttrClasses;j++) {
    tmpl[i][j] = new ServiceTemplate(null,classType,
             tmplAttrs[j]);
    sTmpl[i][j] = new ServiceTemplate(null,sClassType,
              tmplAttrs[j]);
    proxy.notify(tmpl[i][j],
           transitionMask,
           listener,
           new MarshalledObject
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

  srvcRegs = super.registerAll();
  proxy = super.getProxy();

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

Examples of net.jini.core.lookup.ServiceTemplate

         */
  tmpl = new ServiceTemplate[nClasses*nSrvcsPerClass];
        for (i=0,k=0;i<nClasses;i++) {
            for (j=0;j<nSrvcsPerClass;j++) {
                int n = k%(attrEntries.length);
          tmpl[k] = new ServiceTemplate(null,null,tmplAttrs[n]);
    setStateAttrInfo(k,n,tmplAttrs,state);
    proxy.notify(tmpl[k],transitionMask,listener,
           new MarshalledObject
         (new QATestUtils.SrvcAttrTuple
             (srvcItems[k].service,
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

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

      for (j=0;j<nAttrClasses;j++) {
    tmpl[i][j] = new ServiceTemplate(null,classType,
             modAttrs[j]);
    sTmpl[i][j] = new ServiceTemplate(null,sClassType,
              modAttrs[j]);
    proxy.notify(tmpl[i][j],
           transitionMask,
           listener,
           new MarshalledObject
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

            srvcItems[i].serviceID = srvcRegs[i].getServiceID();
  }
  proxy = super.getProxy();
  tmpls = new ServiceTemplate[nInstances];
  for(i=0; i<tmpls.length; i++) {
      tmpls[i] = new ServiceTemplate(srvcRegs[i].getServiceID(),
                                           null,null);
  }
    }
View Full Code Here

Examples of net.jini.core.lookup.ServiceTemplate

    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

Examples of net.jini.core.lookup.ServiceTemplate

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

      for (j=0;j<nAttrClasses;j++) {
    tmpl[i][j] = new ServiceTemplate(null,classType,
             modAttrs[j]);
    sTmpl[i][j] = new ServiceTemplate(null,sClassType,
              modAttrs[j]);
    proxy.notify(tmpl[i][j],
           transitionMask,
           listener,
           new MarshalledObject
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.