|
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.RelayConfigAdv
public final class RelayConfigAdv
Contains parameters for configuration of the Reference Implemenation Relay Service.
Nested Class Summary | |
---|---|
static class |
RelayConfigAdv.Instantiator
Instantiator for RelayConfigAdv |
Constructor Summary | |
---|---|
RelayConfigAdv()
Use the Instantiator through the factory |
|
RelayConfigAdv(Element root)
Use the Instantiator through the factory |
Method Summary | |
---|---|
void |
addSeedingURI(String addr)
|
void |
addSeedingURI(URI addr)
|
void |
addSeedRelay(EndpointAddress addr)
|
void |
addSeedRelay(String addr)
|
void |
clearSeedingURIs()
|
void |
clearSeedRelays()
|
static String |
getAdvertisementType()
|
String |
getAdvType()
|
long |
getAnnounceInterval()
The interval in relative milliseconds at which relay server will announce its presence. |
String |
getBaseAdvType()
|
long |
getClientLeaseDuration()
The interval in relative milliseconds of leases accepted by clients. |
int |
getClientMessageQueueSize()
Return the client message queue length size. |
Document |
getDocument(MimeMediaType encodeAs)
|
ID |
getID()
|
String[] |
getIndexFields()
|
int |
getMaxClients()
Return the maximum number of relay clients. |
int |
getMaxRelays()
Return the maximum number of relay clients. |
long |
getMessengerPollInterval()
The interval in relative milliseconds of at which clients will poll for messengers |
URI[] |
getSeedingURIs()
|
EndpointAddress[] |
getSeedRelays()
|
long |
getServerLeaseDuration()
The interval in relative milliseconds of leases offered by servers. |
long |
getStallTimeout()
The interval in relative milliseconds after which a client is assumed to no longer be connected if it fails to request messages. |
boolean |
getUseOnlySeeds()
If true then this peer will use only seed rendezvous when configured as an edge peer. |
protected boolean |
handleElement(Element raw)
|
boolean |
isClientEnabled()
If true then this peer will act as a relay client. |
boolean |
isServerEnabled()
If true then this peer will act as a relay server. |
boolean |
removeSeedingURI(URI addr)
|
boolean |
removeSeedRelay(EndpointAddress addr)
|
void |
setAnnounceInterval(long newvalue)
Sets interval in relative milliseconds at which relay server will announce its presence or -1 for default value. |
void |
setClientEnabled(boolean enabled)
If true then this peer will act as a relay client. |
void |
setClientLeaseDuration(long newvalue)
Sets interval in relative milliseconds of leases accepted by clients. |
void |
setClientMessageQueueSize(int newvalue)
Sets the client message queue length size. |
void |
setMaxClients(int newvalue)
Sets he maximum number of relay clients. |
void |
setMaxRelays(int newvalue)
Sets the maximum number of relay clients. |
void |
setMessengerPollInterval(long newvalue)
Sets interval in relative milliseconds of at which clients will poll for messengers. |
void |
setServerEnabled(boolean enabled)
If true then this peer will act as a relay server. |
void |
setServerLeaseDuration(long newvalue)
Sets interval in relative milliseconds of leases offered by servers. |
void |
setStallTimeout(long newvalue)
Sets interval in relative milliseconds after which a client is assumed to no longer be connected if it fails to request messages. |
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 |
---|
RelayConfigAdv()
RelayConfigAdv(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 boolean isClientEnabled()
public void setClientEnabled(boolean enabled)
enabled
- If true then this peer will act as a relay client.public int getMaxRelays()
-1
for
default value.public void setMaxRelays(int newvalue)
newvalue
- The maximum number of relay clients or -1
for default value or -1
for default value.public long getClientLeaseDuration()
-1
for default value.public void setClientLeaseDuration(long newvalue)
newvalue
- The interval in relative milliseconds of leases accepted
by clients or -1
for default value.public long getMessengerPollInterval()
-1
for default value.public void setMessengerPollInterval(long newvalue)
newvalue
- The interval in relative milliseconds of at which clients
will poll for messengers or -1
for default value.public boolean getUseOnlySeeds()
public void setUseOnlySeeds(boolean onlySeeds)
doProbe
- If true then this peer will use only seed rendezvous when configured as
an edge peer.public EndpointAddress[] getSeedRelays()
public void addSeedRelay(EndpointAddress addr)
public void addSeedRelay(String addr)
public boolean removeSeedRelay(EndpointAddress addr)
public void clearSeedRelays()
public URI[] getSeedingURIs()
public void addSeedingURI(URI addr)
public void addSeedingURI(String addr)
public boolean removeSeedingURI(URI addr)
public void clearSeedingURIs()
public boolean isServerEnabled()
public void setServerEnabled(boolean enabled)
enabled
- If true then this peer will act as a relay server.public int getMaxClients()
-1
for
default value.public void setMaxClients(int newvalue)
newvalue
- The maximum number of relay clients or -1
for default value.public int getClientMessageQueueSize()
-1
for default value.public void setClientMessageQueueSize(int newvalue)
newvalue
- The client message queue length size or -1
for default value.public long getServerLeaseDuration()
public void setServerLeaseDuration(long newvalue)
newvalue
- The interval in relative milliseconds of leases offered
by servers or -1
for default value.public long getStallTimeout()
-1
for default value.public void setStallTimeout(long newvalue)
newvalue
- The interval in relative milliseconds after which a
client is assumed to no longer be connected if it fails to request
messages or -1
for default value.public long getAnnounceInterval()
-1
for default value.public void setAnnounceInterval(long newvalue)
-1
for default value.
newvalue
- The interval in relative milliseconds at which relay server will
announce its presence.
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |