|
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.PeerInfoAdvertisement
Constructor Summary | |
PeerInfoAdvertisement()
|
Method Summary | |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.util.Enumeration |
getIncomingTrafficChannels()
Get an enumeration of incoming traffic channels on this peer. |
long |
getIncomingTrafficOnChannel(java.lang.String channel)
Get the number of bytes recieved on the specified channel. |
int |
getLastIncomingMessageTime()
Get the time in seconds since this peer last recieved a message in seconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
int |
getLastOutgoingMessageTime()
Get the time in seconds since this peer last sent a message in seconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
java.util.Enumeration |
getOutgoingTrafficChannels()
Get an enumeration of outgoing traffic channels on this peer. |
long |
getOutgoingTrafficOnChannel(java.lang.String channel)
Get the number of bytes sent on the specified channel. |
java.lang.String |
getSourcePid()
returns the sender's pid |
java.lang.String |
getTargetPid()
returns the target pid |
int |
getTimestamp()
returns the time when this peer was last polled |
int |
getUptime()
returns the number of seconds since this peer was started |
void |
setIncomingTrafficElement(java.lang.String channel,
long bytes)
Set the number of bytes recieved on the specified channel. |
void |
setLastIncomingMessageTime(int t)
Set the time in seconds since this peer last recieved a message in seconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
void |
setLastOutgoingMessageTime(int t)
Set the time in seconds since this peer last sent a message in seconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
void |
setOutgoingTrafficElement(java.lang.String channel,
long bytes)
Set the number of bytes sent on the specified channel. |
void |
setSourcePid(java.lang.String pid)
sets the sender's pid |
void |
setTargetPid(java.lang.String pid)
sets the target's pid |
void |
setTimestamp(int seconds)
sets the time when this peer was last polled |
void |
setUptime(int seconds)
sets the number of seconds since this peer was started |
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 PeerInfoAdvertisement()
Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getSourcePid()
public void setSourcePid(java.lang.String pid)
pid
- a string representing a peer's idpublic java.lang.String getTargetPid()
public void setTargetPid(java.lang.String pid)
pid
- a string representing a peer's idpublic int getUptime()
public void setUptime(int seconds)
seconds
- the number of seconds since this peer was startedpublic int getTimestamp()
public void setTimestamp(int seconds)
seconds
- time in seconds when this peer was last polled
in seconds since "the epoch", namely January 1, 1970, 00:00:00
GMT.public int getLastIncomingMessageTime()
public void setLastIncomingMessageTime(int t)
t
- time in secondspublic int getLastOutgoingMessageTime()
public void setLastOutgoingMessageTime(int t)
t
- time in secondspublic java.util.Enumeration getIncomingTrafficChannels()
public long getIncomingTrafficOnChannel(java.lang.String channel)
public void setIncomingTrafficElement(java.lang.String channel, long bytes)
channel
- service namelong
- number of bytes recievedpublic java.util.Enumeration getOutgoingTrafficChannels()
public long getOutgoingTrafficOnChannel(java.lang.String channel)
public void setOutgoingTrafficElement(java.lang.String channel, long bytes)
channel
- service namelong
- number of bytes sent
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |