|
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
This abstract class defines a PeerGroup advertisement A peer group advertisement uniquely identifies a member of a peer group. The advertisement contains all the information to recognize this peer as the member of the peer group.
The peer group advertisement aslo contains all the information necessary for a new peer to join a peer group. The peer group advertisement contains a reference to all the services (membership, discovery, resolver, pipe, etc.) that define the peer group. The peer group advertisement also describes all the available peer endpoints that can be used by other peer group members to contact this peer.
The peer group advertisement also specifies the default startup application run when the peer group instance is initialized on this peer. This application is started every time the peer first joins the group after a reboot of the peer or when the peer joins for the first time the new peer group.
<?xml version="1.0"?> <PeerAdvertisement> <Name>string</Name> <Keywords>string</Keywords> <Pid> Peer Id </Pid> <Gid>Peer Group Id </Gid> <isRendezVous> boolean </isRendezVous> <Service> service advertisement</Service> ........... <Service> service advertisement</Service> <Endpoint> endpoint Advertisement </Endpoint> ........... <Endpoint> endpoint Advertisement </Endpoint> <InitialApp> initial application </InitialApplication> <GroupImpl> group Implementation </GroupImpl> <PeerAdvertisement>
PeerGroupAdvertisement
,
ServiceAdvertisement
,
EndpointAdvertisement
,
TransportAdvertisement
Constructor Summary | |
PeerGroupAdvertisement()
|
Method Summary | |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
ServiceAdvertisement |
getApp()
returns the default application for the peergroup |
java.lang.String |
getAppCode()
get the implementation for the default peer group application |
java.lang.String |
getCode(java.lang.String name)
get the service implementation for a specific peer group service |
java.util.Hashtable |
getEndpointAdvertisements()
returns the endpoints associated with the peer group |
java.lang.String |
getGid()
returns the peer group id |
java.lang.String |
getGroupCode()
Convenience. |
ServiceAdvertisement |
getGroupImpl()
returns the peer group framework service |
boolean |
getIsRendezvous()
check if the member of the peer group is a rendez vous member |
java.lang.String |
getKeywords()
returns the keywords associated with this peer group |
java.lang.String |
getName()
returns the name of the peer group |
java.lang.String |
getPeerName()
returns the name of the peer |
java.lang.String |
getPid()
returns the peer id of the member of the peer group |
java.util.Hashtable |
getServiceAdvertisements()
returns the services associated with the peer group |
void |
setApp(ServiceAdvertisement app)
sets the default application |
void |
setEndpointAdvertisements(java.util.Hashtable endpoints)
sets the endpoint advertisement |
void |
setGid(java.lang.String gid)
sets the peer group id |
void |
setGroupImpl(ServiceAdvertisement group)
sets the peer group service implementation. |
void |
setIsRendezvous(boolean flag)
sets the peer group member as a rendezvous member |
void |
setKeywords(java.lang.String keywords)
sets the keywords associated with this peer group |
void |
setName(java.lang.String name)
sets the name of the peer group |
void |
setPeerName(java.lang.String peerName)
sets the name of the peer |
void |
setPid(java.lang.String pid)
sets the peer id of the member of this peer group |
void |
setServiceAdvertisements(java.util.Hashtable services)
sets the service advertisement |
Methods inherited from class net.jxta.document.Advertisement |
getDocument |
Methods inherited from class java.lang.Object |
clone,
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.String getName()
public void setName(java.lang.String name)
name
- name of the peer group to be setpublic java.lang.String getPeerName()
public void setPeerName(java.lang.String peerName)
peerName
- name of the peer to be setpublic java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
keywords
- public java.lang.String getPid()
public void setPid(java.lang.String pid)
public java.lang.String getGid()
public void setGid(java.lang.String gid)
gid
- group id to be setpublic boolean getIsRendezvous()
public void setIsRendezvous(boolean flag)
flag
- boolean valuepublic java.util.Hashtable getServiceAdvertisements()
public void setServiceAdvertisements(java.util.Hashtable services)
services
- hashtable of service advertisementspublic java.util.Hashtable getEndpointAdvertisements()
public void setApp(ServiceAdvertisement app)
ServiceAdvertisement
- default application service advertisementpublic void setGroupImpl(ServiceAdvertisement group)
ServiceAdvertisement
- advertisement for the peer group framework servicepublic ServiceAdvertisement getApp()
public ServiceAdvertisement getGroupImpl()
public void setEndpointAdvertisements(java.util.Hashtable endpoints)
endpoints
- hashtable of endpoint advertisementspublic java.lang.String getCode(java.lang.String name)
name
- name of the peer group servicepublic java.lang.String getGroupCode()
public java.lang.String getAppCode()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |