Package net.jini.lookup

Examples of net.jini.lookup.ServiceItemFilter


  private QueueInterface getQueueService(int index)
    throws IOException
  {
    final ServiceID id =
      ((ServiceListModel)queueList.getModel()).getServiceID(index);
    ServiceItem si = lookupCache.lookup(new ServiceItemFilter() {

      public boolean check(ServiceItem item) {
        if(item.serviceID.equals(id))
          return true;
        return false;
View Full Code Here


  ProxyPreparer preparer = (ProxyPreparer) config.getEntry(
      "com.sun.jini.example.hello.Client",
      "preparer", ProxyPreparer.class, new BasicProxyPreparer());

        /* Create the filter to pass to the SDM for proxy preparation */
        ServiceItemFilter filter = new ProxyPreparerFilter(preparer);

  /* Look up the remote server (SDM performs proxy preparation) */
  ServiceItem serviceItem = serviceDiscovery.lookup(
      new ServiceTemplate(null, new Class[] { Hello.class }, null),
      filter, Long.MAX_VALUE);
View Full Code Here

    @Override
    public void monitor(Object proxy, final ServiceID id, LookupCache lCache)
        throws Exception {

        ServiceItem item = lCache.lookup(new ServiceItemFilter() {
            public boolean check(ServiceItem item) {
                return item.serviceID.equals(id);
            }
        });
        jmxConnection = JMXUtil.getJMXConnection(item.attributeSets);
View Full Code Here

TOP

Related Classes of net.jini.lookup.ServiceItemFilter

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.