|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucr.core.TraceRecord
Represents information about a single file served
Field Summary | |
(package private) int |
id
|
(package private) java.lang.String |
ip
|
(package private) int |
port
|
Constructor Summary | |
TraceRecord()
|
|
TraceRecord(int id,
java.lang.String ip,
int port)
Constructs a record describing a node in the traceroute |
|
TraceRecord(short[] payload)
This constructor assembles a message from some little-endian encoded byte sequence that comes from the network |
Method Summary | |
byte[] |
getBytes()
Flatten the FileRecord |
int |
getID()
Get the id of this record |
java.lang.String |
getIP()
Get the ip of this record |
int |
getPORT()
Get the file name |
int |
size()
|
int |
sizeOf()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int id
java.lang.String ip
int port
Constructor Detail |
public TraceRecord(int id, java.lang.String ip, int port)
id
- of this nodeip
- of this nodeport
- of this nodepublic TraceRecord()
public TraceRecord(short[] payload)
payload
- - some bytearray containing the sent stuffMethod Detail |
public int getID()
public java.lang.String getIP()
public int getPORT()
public int sizeOf()
public int size()
public java.lang.String toString()
public byte[] getBytes()
FileRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |