|
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 fully describes a PeerGroup, and uniquely identifies a member of this peer group. The advertisement contains all the information needed to recognize this peer as the member of the peer group and to instanciate that group on another peer:
<?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()
Convenience method. |
java.lang.String |
getCode(java.lang.String name)
get the service implementation for a specific peer group service |
java.lang.String |
getDebugLevel()
Returns the debug level |
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 |
setDebugLevel(java.lang.String level)
Set the debug level. |
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,
getLocalExpirationTime,
setExpiration |
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()
public void setDebugLevel(java.lang.String level)
level
- The name of the level: error, warn, info, debug.public java.lang.String getDebugLevel()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |