|
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.protocol.PeerAdvertisement
public abstract class PeerAdvertisement
This type of advertisement 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.
| Field Summary | |
|---|---|
protected int |
modCount
Counts the changes made to this object. |
| Constructor Summary | |
|---|---|
PeerAdvertisement()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Make a safe clone of this PeerAdvertisement. |
static String |
getAdvertisementType()
Returns the identifying type of this Advertisement. |
String |
getBaseAdvType()
Returns the base type of this advertisement hierarchy. |
StructuredDocument |
getDesc()
returns the description |
String |
getDescription()
returns the description |
ID |
getID()
Returns a unique ID for that peer X group intersection. |
int |
getModCount()
Returns the number of times this object has been modified since it was created. |
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. |
Hashtable |
getServiceParams()
Returns the sets of parameters for all services. |
protected int |
incModCount()
|
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 |
setDesc(Element desc)
sets the description |
void |
setDescription(String description)
sets the description |
void |
setName(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(Hashtable params)
sets the sets of parameters for all services. |
| Methods inherited from class net.jxta.document.ExtendableAdvertisement |
|---|
getDocument, handleElement |
| Methods inherited from class net.jxta.document.Advertisement |
|---|
getAdvType, getIndexFields, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected volatile int modCount
| Constructor Detail |
|---|
public PeerAdvertisement()
| Method Detail |
|---|
public int getModCount()
protected int incModCount()
public static String getAdvertisementType()
public final String getBaseAdvType()
final.
getBaseAdvType in class ExtendableAdvertisementpublic Object clone()
clone in class Advertisementpublic String getName()
public void setName(String name)
name - name of the peer.public PeerID getPeerID()
public void setPeerID(PeerID pid)
pid - the id of this peer.public PeerGroupID getPeerGroupID()
public void setPeerGroupID(PeerGroupID gid)
gid - The id of the peer.public ID getID()
getID in class Advertisementpublic String getDescription()
public void setDescription(String description)
description - the descriptionpublic StructuredDocument getDesc()
public void setDesc(Element desc)
desc - the descriptionpublic void setServiceParams(Hashtable params)
params - The whole set of parameters.public Hashtable getServiceParams()
public void putServiceParam(ID key,
Element param)
key - The key.param - The parameter, as an element. What is stored is a copy as
a stand alone StructuredDocument which type is the element's name.public StructuredDocument getServiceParam(ID key)
key - The key.
public StructuredDocument removeServiceParam(ID key)
key - The key.
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||