|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.jxta.protocol.PeerInfoResponseMessage
This abstract class define the PeerInfoService advertisement
This message is part of the Peer PeerInfoService protocol
<xs:element name="PeerInfoResponse " type="jxta:PeerInfoResponse"/> <xs:complexType name="PeerInfoResponse"> <xs:element name="sourcePid" type="xs:anyURI"/> <xs:element name="targetPid" type="xs:anyURI"/> <xs:element name="uptime" type="xs:unsignedLong" minOccurs="0"/> <xs:element name="timestamp" type="xs:unsignedLong" minOccurs="0"/> <xs:element name="response" type="xs:anyType" minOccurs="0"/> <xs:element name="traffic" type="jxta:piptraffic" minOccurs="0"/> </xs:complexType> <xs:complexType name="piptraffic"> <xs:element name="lastIncomingMessageAt" type="xs:unsignedLong" minOccurs="0"/> <xs:element name="lastOutgoingMessageAt" type="xs:unsignedLong" minOccurs="0"/> <xs:element name="in" type="jxta:piptrafficinfo" minOccurs="0"/> <xs:element name="out" type="jxta:piptrafficinfo" minOccurs="0"/> </xs:complexType> <xs:complexType name="piptrafficinfo"> <xs:element name="transport" type="xs:unsignedLong" maxOccurs="unbounded"> <xs:attribute name="endptaddr" type="xs:anyURI"/> </xs:element> </xs:complexType>
| Constructor Summary | |
PeerInfoResponseMessage()
|
|
| Method Summary | |
abstract Document |
getDocument(MimeMediaType encodeAs)
|
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. |
long |
getLastIncomingMessageTime()
Get the time in milliseconds since this peer last recieved a message in milliseconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
long |
getLastOutgoingMessageTime()
Get the time in milliseconds since this peer last sent a message in milliseconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
static java.lang.String |
getMessageType()
returns the Message type |
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. |
Element |
getResponse()
returns the response |
ID |
getSourcePid()
returns the sender's pid |
ID |
getTargetPid()
returns the target pid |
long |
getTimestamp()
returns the time when this peer was last polled |
long |
getUptime()
returns the number of milliseconds 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(long t)
Set the time in milliseconds since this peer last recieved a message in milliseconds since "the epoch", namely January 1, 1970, 00:00:00 GMT. |
void |
setLastOutgoingMessageTime(long t)
Set the time in milliseconds since this peer last sent a message in milliseconds 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 |
setResponse(Element response)
sets the request |
void |
setSourcePid(ID pid)
sets the sender's pid |
void |
setTargetPid(ID pid)
sets the target's pid |
void |
setTimestamp(long milliseconds)
sets the time when this peer was last polled |
void |
setUptime(long milliseconds)
sets the number of milliseconds since this peer was started |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeerInfoResponseMessage()
| Method Detail |
public static java.lang.String getMessageType()
public ID getSourcePid()
public void setSourcePid(ID pid)
pid - a string representing a peer's idpublic ID getTargetPid()
public void setTargetPid(ID pid)
pid - a string representing a peer's idpublic Element getResponse()
public void setResponse(Element response)
request - a structured document representing a peerinfo requestpublic long getUptime()
public void setUptime(long milliseconds)
milliseconds - the number of milliseconds since this peer was startedpublic long getTimestamp()
public void setTimestamp(long milliseconds)
milliseconds - time in milliseconds when this peer was last polled
in milliseconds since "the epoch", namely January 1, 1970, 00:00:00
GMT.public long getLastIncomingMessageTime()
public void setLastIncomingMessageTime(long t)
t - time in millisecondspublic long getLastOutgoingMessageTime()
public void setLastOutgoingMessageTime(long t)
t - time in millisecondspublic 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 sentpublic abstract Document getDocument(MimeMediaType encodeAs)
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||