|
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.PeerGroupAdvertisement
Describes a peer group and references additional information required for instantiating it. The PeerGroup method newGroup performs the task of instantiating a PeerGroup given its advertisement (provided the required subsequent documents can actually be found).
ModuleSpecID,
ModuleImplAdvertisement,
PeerGroup| Constructor Summary | |
PeerGroupAdvertisement()
|
|
| Method Summary | |
java.lang.Object |
clone()
Clone this PeerGroupAdvertisement |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.lang.String |
getDescription()
returns the description |
ID |
getID()
Returns a unique ID for indexing purposes. |
ModuleSpecID |
getModuleSpecID()
Returns the id of the group spec that this uses. |
java.lang.String |
getName()
returns the name of the group. |
PeerGroupID |
getPeerGroupID()
Returns the id of the group. |
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 |
setDescription(java.lang.String description)
sets the description |
void |
setModuleSpecID(ModuleSpecID sid)
Sets the id of the group spec that this uses. |
void |
setName(java.lang.String name)
sets the name of the group. |
void |
setPeerGroupID(PeerGroupID gid)
Sets the id of the group. |
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 PeerGroupAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.Object clone()
clone in class Advertisementpublic java.lang.String getName()
public void setName(java.lang.String name)
name - name of the group.public ModuleSpecID getModuleSpecID()
public void setModuleSpecID(ModuleSpecID sid)
id - The id of the specpublic PeerGroupID getPeerGroupID()
public void setPeerGroupID(PeerGroupID gid)
id - The id of the group.public ID getID()
getID in class Advertisementpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the descriptionpublic 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 | ||||||||