|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.document.Advertisement
net.jxta.document.ExtendableAdvertisement
net.jxta.impl.protocol.RdvConfigAdv
public final class RdvConfigAdv
Contains parameters for configuration of the Reference Implemenation Rendezvous Service.
Nested Class Summary | |
---|---|
static class |
RdvConfigAdv.Instantiator
Instantiator for RdvConfigAdv |
static class |
RdvConfigAdv.RendezVousConfiguration
Enumeration of possible Rendezvous configurations. |
Constructor Summary | |
---|---|
RdvConfigAdv()
Use the Instantiator through the factory |
|
RdvConfigAdv(Element root)
Use the Instantiator through the factory |
Method Summary | |
---|---|
void |
addSeedingURI(String addr)
|
void |
addSeedingURI(URI addr)
|
void |
addSeedRendezvous(String addr)
|
void |
addSeedRendezvous(URI addr)
|
void |
clearSeedingURIs()
|
void |
clearSeedRendezvous()
|
static String |
getAdvertisementType()
|
String |
getAdvType()
|
long |
getAutoRendezvousCheckInterval()
The interval in relative milliseconds at which this peer will re-evaluate it's state as a rendezvous. |
String |
getBaseAdvType()
|
RdvConfigAdv.RendezVousConfiguration |
getConfiguration()
True if this peer is to default to act as a rendezvous. |
Document |
getDocument(MimeMediaType encodeAs)
|
ID |
getID()
|
String[] |
getIndexFields()
|
long |
getLeaseDuration()
The interval in relative milliseconds of leases offered by rendezvous peers. |
long |
getLeaseMargin()
The interval in relative milliseconds of leases offered by rendezvous peers. |
int |
getMaxClients()
Return the maximum number of clients. |
int |
getMaxTTL()
Returns the maximum TTL for messages propagated by this peer or -1 for the default value. |
int |
getMinHappyPeerView()
Returns the minimum peerview size which the rendezvous service will find sufficient. |
boolean |
getProbeRelays()
If true then rendezvous clients will probe relay servers for rendezvous. |
URI[] |
getSeedingURIs()
|
URI[] |
getSeedRendezvous()
|
long |
getSeedRendezvousConnectDelay()
The interval in relative milliseconds before which this peer will attempt to contact the the seed peers. |
boolean |
getUseOnlySeeds()
If true then this peer will use only seed rendezvous when configured as an edge peer. |
protected boolean |
handleElement(Element raw)
|
boolean |
removeSeedingURI(URI addr)
|
boolean |
removeSeedRendezvous(URI addr)
|
void |
setAutoRendezvousCheckInterval(long newvalue)
Sets the interval in relative milliseconds at which this peer will re-evaluate it's state as a rendezvous. |
void |
setConfiguration(RdvConfigAdv.RendezVousConfiguration newstate)
Set the default rendezvous state of this peer. |
void |
setLeaseDuration(long newvalue)
Sets interval in relative milliseconds of leases to be offered by rendezvous peers. |
void |
setLeaseMargin(long newvalue)
Sets interval in relative milliseconds of leases to be offered by rendezvous peers. |
void |
setMaxClients(int newvalue)
Sets he maximum number of clients. |
void |
setMaxTTL(int newvalue)
Sets the maximum TTL for messages propagated by this peer. |
void |
setMinHappyPeerView(int newvalue)
Sets the minimum peerview size which the rendezvous service will find sufficient. |
void |
setProbeRelays(boolean doProbe)
Set whether rendezvous clients will probe relay servers for rendezvous. |
void |
setSeedRendezvousConnectDelay(long newvalue)
Sets the interval in relative milliseconds before which this peer will attempt to contact the the seed peers. |
void |
setUseOnlySeeds(boolean onlySeeds)
Set whether this peer will use only seed rendezvous when configured as an edge peer. |
Methods inherited from class net.jxta.document.Advertisement |
---|
clone, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
RdvConfigAdv()
RdvConfigAdv(Element root)
Method Detail |
---|
public static String getAdvertisementType()
public String getAdvType()
getAdvType
in class Advertisement
public final String getBaseAdvType()
getBaseAdvType
in class ExtendableAdvertisement
public ID getID()
getID
in class Advertisement
protected boolean handleElement(Element raw)
handleElement
in class ExtendableAdvertisement
public Document getDocument(MimeMediaType encodeAs)
getDocument
in class ExtendableAdvertisement
public String[] getIndexFields()
getIndexFields
in class Advertisement
public RdvConfigAdv.RendezVousConfiguration getConfiguration()
public void setConfiguration(RdvConfigAdv.RendezVousConfiguration newstate)
newstate
- if true then this peer should default to acting as a
rendezvous.public long getAutoRendezvousCheckInterval()
0
(zero), the default, then
the peer will remain in the state of isRendezvous
.
0
(zero), the default, then
the peer will remain in the state of isRendezvous
.public void setAutoRendezvousCheckInterval(long newvalue)
0
(zero), the default, then
the peer will remain in the state of isRendezvous
.
newvalue
- The interval in relative milliseconds at which this peer
will re-evaluate it's state as a rendezvous. If 0
(zero),
the default, then the peer will remain in the state of
isRendezvous
.public boolean getProbeRelays()
public void setProbeRelays(boolean doProbe)
doProbe
- If true then rendezvous clients will probe relay servers for rendezvous.public URI[] getSeedRendezvous()
public void addSeedRendezvous(URI addr)
public void addSeedRendezvous(String addr)
public boolean removeSeedRendezvous(URI addr)
public void clearSeedRendezvous()
public URI[] getSeedingURIs()
public void addSeedingURI(URI addr)
public void addSeedingURI(String addr)
public boolean removeSeedingURI(URI addr)
public void clearSeedingURIs()
public boolean getUseOnlySeeds()
public void setUseOnlySeeds(boolean onlySeeds)
onlySeeds
- If true then this peer will use only seed rendezvous
when configured as an edge peer.public long getSeedRendezvousConnectDelay()
public void setSeedRendezvousConnectDelay(long newvalue)
newvalue
- The interval in relative milliseconds before which this peer will
attempt to contact the the seed peers or
-1
for the default value.public long getLeaseDuration()
public void setLeaseDuration(long newvalue)
newvalue
- The interval in relative milliseconds of leases to be offered by rendezvous
peers or -1
for the default value.public long getLeaseMargin()
public void setLeaseMargin(long newvalue)
newvalue
- The interval in relative milliseconds of leases to be offered by rendezvous
peers or
-1
for the default value.public int getMaxClients()
public void setMaxClients(int newvalue)
newvalue
- The maximum number of clients or
-1
for the default value.public int getMaxTTL()
public void setMaxTTL(int newvalue)
newvalue
- the maximum TTL for messages propagated by this peer or
-1
for the default value.public int getMinHappyPeerView()
public void setMinHappyPeerView(int newvalue)
newvalue
- the minimum peerview size, which must be > 0 or
-1
for the default value.
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |