Project JXTA

net.jxta.impl.protocol
Class DiscoveryConfigAdv

java.lang.Object
  extended by net.jxta.document.Advertisement
      extended by net.jxta.document.ExtendableAdvertisement
          extended by net.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
DiscoveryConfigAdv()
          Use the Instantiator through the factory
DiscoveryConfigAdv(Element root)
          Use the Instantiator through the factory
 
Method Summary
 Object clone()
          Make a safe clone of this DiscoveryConfigAdv.
static String getAdvertisementType()
          
 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.

Overrides:
clone in class Advertisement
Returns:
Object A copy of this DiscoveryConfigAdv

getAdvertisementType

public static String getAdvertisementType()


getAdvType

public String getAdvType()

Overrides:
getAdvType in class Advertisement

getBaseAdvType

public final String getBaseAdvType()

Specified by:
getBaseAdvType in class ExtendableAdvertisement

getID

public ID getID()

Specified by:
getID in class Advertisement

getDocument

public Document getDocument(MimeMediaType encodeAs)

Overrides:
getDocument in class ExtendableAdvertisement

getIndexFields

public String[] getIndexFields()

Specified by:
getIndexFields in class Advertisement

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.

Parameters:
boolean - The new setting.

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.

Parameters:
boolean - The new setting.

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.

Parameters:
boolean - The new setting.

JXTA J2SE