net.jini.lookup
Class ServiceDiscoveryManager.ServiceItemReg

java.lang.Object
  extended by net.jini.lookup.ServiceDiscoveryManager.ServiceItemReg
Enclosing class:
ServiceDiscoveryManager

private static final class ServiceDiscoveryManager.ServiceItemReg
extends Object

Used in the LookupCache. For each LookupCache, there is a HashMap that maps ServiceId to a ServiceItemReg. The ServiceItemReg class helps track where the ServiceItem comes from.


Field Summary
private  boolean bDiscarded
           
 ServiceItem filteredItem
           
 ServiceItem item
           
private  Map items
           
private  ServiceRegistrar proxy
           
 
Constructor Summary
ServiceDiscoveryManager.ServiceItemReg(ServiceRegistrar proxy, ServiceItem item)
           
 
Method Summary
 boolean addProxy(ServiceRegistrar proxy, ServiceItem item)
           
 boolean hasNoProxys()
           
 boolean isDiscarded()
           
 ServiceItem removeProxy(ServiceRegistrar proxy)
           
 void setDiscarded(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

private final Map items

proxy

private ServiceRegistrar proxy

bDiscarded

private boolean bDiscarded

item

public ServiceItem item

filteredItem

public ServiceItem filteredItem
Constructor Detail

ServiceDiscoveryManager.ServiceItemReg

public ServiceDiscoveryManager.ServiceItemReg(ServiceRegistrar proxy,
                                              ServiceItem item)
Method Detail

addProxy

public boolean addProxy(ServiceRegistrar proxy,
                        ServiceItem item)

removeProxy

public ServiceItem removeProxy(ServiceRegistrar proxy)

hasNoProxys

public boolean hasNoProxys()

setDiscarded

public void setDiscarded(boolean b)

isDiscarded

public boolean isDiscarded()


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.