Project JXTA

net.jxta.impl.protocol
Class DiscoveryConfigAdv

java.lang.Object
  extended bynet.jxta.document.Advertisement
      extended bynet.jxta.document.ExtendableAdvertisement
          extended bynet.jxta.impl.protocol.DiscoveryConfigAdv

public final class DiscoveryConfigAdv
extends ExtendableAdvertisement

Contains parameters for configuration of the Reference Implemenation Rendezvous Service.



 


Nested Class Summary
static class DiscoveryConfigAdv.Instantiator
          Instantiator for DiscoveryConfigAdv
 
Constructor Summary
(package private) DiscoveryConfigAdv()
          Use the Instantiator through the factory
(package private) DiscoveryConfigAdv(Element root)
          Use the Instantiator through the factory
 
Method Summary
 Object clone()
          Make a safe clone of this DiscoveryConfigAdv.
static String getAdvertisementType()
          {@inheritDoc}
 String getAdvType()
          
 String getBaseAdvType()
          
 Document getDocument(MimeMediaType encodeAs)
          
 boolean getForwardAlwaysReplica()
          True if this discovery service will forward queries to the replica peer in all cases, rather than only in the absence of local responses.
 boolean getForwardBelowTreshold()
          True if this discovery service will forward queries when the number of local responses is below the specified treshold, rather than only in the absence of local responses.
 ID getID()
          
 String[] getIndexFields()
          
 boolean getLocalOnly()
          True if this discovery service performs only local discovery.
 void setForwardAlwaysReplica(boolean newvalue)
          Specifies if this discovery service will forward queries to the replica peer in all cases, rather than only in the absence of local responses.
 void setForwardBelowTreshold(boolean newvalue)
          Specifies if this discovery service will forward queries when the number of local responses is below the specified treshold, rather than only in the absence of local responses.
 void setLocalOnly(boolean newvalue)
          Specifies if this discovery service will perform local only discovery.
 
Methods inherited from class net.jxta.document.ExtendableAdvertisement
handleElement
 
Methods inherited from class net.jxta.document.Advertisement
toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscoveryConfigAdv

DiscoveryConfigAdv()
Use the Instantiator through the factory


DiscoveryConfigAdv

DiscoveryConfigAdv(Element root)
Use the Instantiator through the factory

Method Detail

clone

public Object clone()
Make a safe clone of this DiscoveryConfigAdv.

Returns:
Object A copy of this DiscoveryConfigAdv

getAdvertisementType

public static String getAdvertisementType()
{@inheritDoc}


getAdvType

public String getAdvType()


getBaseAdvType

public final String getBaseAdvType()


getID

public ID getID()


getDocument

public Document getDocument(MimeMediaType encodeAs)


getIndexFields

public String[] getIndexFields()


getForwardAlwaysReplica

public boolean getForwardAlwaysReplica()
True if this discovery service will forward queries to the replica peer in all cases, rather than only in the absence of local responses.

Returns:
The current setting.

setForwardAlwaysReplica

public void setForwardAlwaysReplica(boolean newvalue)
Specifies if this discovery service will forward queries to the replica peer in all cases, rather than only in the absence of local responses.


getForwardBelowTreshold

public boolean getForwardBelowTreshold()
True if this discovery service will forward queries when the number of local responses is below the specified treshold, rather than only in the absence of local responses.

Returns:
The current setting.

setForwardBelowTreshold

public void setForwardBelowTreshold(boolean newvalue)
Specifies if this discovery service will forward queries when the number of local responses is below the specified treshold, rather than only in the absence of local responses.


getLocalOnly

public boolean getLocalOnly()
True if this discovery service performs only local discovery.

Returns:
The current setting.

setLocalOnly

public void setLocalOnly(boolean newvalue)
Specifies if this discovery service will perform local only discovery.


JXTA J2SE