|
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.RdvAdvertisement
public abstract class RdvAdvertisement
This class defines a Rendezvous Advertisement. This advertisement is indexed on "RdvGroupId", "RdvPeerId", and "RdvServiceName"
Field Summary | |
---|---|
static String |
GroupIDTag
GroupID tag |
static String |
NameTag
Name tag |
static String |
PeerIDTag
Rendezvous ID tag |
static String |
RouteTag
Route tage |
static String |
ServiceNameTag
Rendezvous service name tag |
Constructor Summary | |
---|---|
RdvAdvertisement()
|
Method Summary | |
---|---|
static String |
getAdvertisementType()
Returns the identifying type of this Advertisement. |
String |
getBaseAdvType()
Returns the base type of this advertisement hierarchy. |
PeerGroupID |
getGroupID()
get the group id |
ID |
getID()
Returns an ID which identifies this Advertisement as uniquely as
possible. |
String |
getName()
get the symbolic name associated with the rdv |
PeerID |
getPeerID()
get the rdv peer id |
RouteAdvertisement |
getRouteAdv()
Get the Route Adv. |
String |
getServiceName()
get the rdv service name |
void |
setGroupID(PeerGroupID id)
set the group Id |
void |
setName(String n)
set the symbolic name associated with the rdv |
void |
setPeerID(PeerID id)
set the peer Id |
void |
setRouteAdv(RouteAdvertisement route)
set the RouteAdvertisement |
void |
setServiceName(String n)
set the service name |
Methods inherited from class net.jxta.document.ExtendableAdvertisement |
---|
getDocument, handleAttribute, handleElement |
Methods inherited from class net.jxta.document.Advertisement |
---|
clone, getAdvType, getIndexFields, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String GroupIDTag
public static final String NameTag
public static final String PeerIDTag
public static final String RouteTag
public static final String ServiceNameTag
Constructor Detail |
---|
public RdvAdvertisement()
Method Detail |
---|
public static String getAdvertisementType()
public final String getBaseAdvType()
final
.
getBaseAdvType
in class ExtendableAdvertisement
public PeerGroupID getGroupID()
public ID getID()
Advertisement
as uniquely as
possible. This ID is typically used as the primary key for indexing of
the Advertisement within databases.
Each advertisement sub-class must choose an appropriate implementation
which returns canonical and relatively unique ID values for it's
instances. Since this ID is commonly used for indexing, the IDs returned
must be as unique as possible to avoid collisions. The value for the ID
returned can either be:
IllegalStateException
should be
thrown.
getID
in class Advertisement
ID.nullID
if this advertisement is of a type that is not
normally indexed.public String getName()
public PeerID getPeerID()
public RouteAdvertisement getRouteAdv()
null
if nopublic String getServiceName()
public void setGroupID(PeerGroupID id)
id
- The new groupID valuepublic void setName(String n)
n
- the name this rdv adv should have.public void setPeerID(PeerID id)
id
- The new peerID valuepublic void setRouteAdv(RouteAdvertisement route)
route
- RouteAdvertisementpublic void setServiceName(String n)
n
- The new serviceName value
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |