|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.jxta.document.Advertisement
|
+--net.jxta.protocol.PeerAdvertisement
This type of advertisement is used in two different fashions: One is generated when instantiating a group on a peer and contains all the parameters that services need to publish. It is then published within the the group. The other is generated by configuration menus and serves to pass to all services their optional user-driven configuration. Some of which may be published as part of the above process. A configuration PeerAdvertisement is not itself published.
| Constructor Summary | |
PeerAdvertisement()
|
|
| Method Summary | |
java.lang.Object |
clone()
Make a safe clone of this PeerAdvertisement. |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.lang.String |
getDebugLevel()
returns the debugLevel |
java.lang.String |
getDescription()
returns the description |
ID |
getID()
Returns a unique ID for that peer X group intersection. |
java.lang.String |
getName()
returns the name of the peer. |
PeerGroupID |
getPeerGroupID()
Returns the id of the peergroup this peer advertisement is for. |
PeerID |
getPeerID()
Returns the id of the peer. |
StructuredDocument |
getServiceParam(ID key)
Returns the parameter element that matches the given key from the service parameters table. |
java.util.Hashtable |
getServiceParams()
Returns the sets of parameters for all services. |
void |
putServiceParam(ID key,
Element param)
Puts a service parameter in the service parameters table under the given key. |
StructuredDocument |
removeServiceParam(ID key)
Removes and returns the parameter element that matches the given key from the service parameters table. |
void |
setDebugLevel(java.lang.String debugLevel)
sets the debugLevel |
void |
setDescription(java.lang.String description)
sets the description |
void |
setName(java.lang.String name)
sets the name of the peer. |
void |
setPeerGroupID(PeerGroupID gid)
Returns the id of the peergroup this peer advertisement is for. |
void |
setPeerID(PeerID pid)
Sets the id of the peer. |
void |
setServiceParams(java.util.Hashtable params)
sets the sets of parameters for all services. |
| Methods inherited from class net.jxta.document.Advertisement |
getDocument |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeerAdvertisement()
| Method Detail |
public java.lang.Object clone()
clone in class Advertisementpublic static java.lang.String getAdvertisementType()
public java.lang.String getName()
public void setName(java.lang.String name)
name - name of the peer.public PeerID getPeerID()
public void setPeerID(PeerID pid)
id - The id of the peer.public PeerGroupID getPeerGroupID()
public void setPeerGroupID(PeerGroupID gid)
gid - The id of the peer.public ID getID()
getID in class Advertisementpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the descriptionpublic java.lang.String getDebugLevel()
public void setDebugLevel(java.lang.String debugLevel)
description - the debugLevelpublic void setServiceParams(java.util.Hashtable params)
params - The whole set of parameters.public java.util.Hashtable getServiceParams()
params - The whole set of parameters.
public void putServiceParam(ID key,
Element param)
key - The key.param - The parameter, as an element. What is stored is a copy as
a standalone StructuredDocument which type is the element's name.public StructuredDocument getServiceParam(ID key)
key - The key.public StructuredDocument removeServiceParam(ID key)
key - The key.
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||