public class LogResponse extends MaestroResponse
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LOG_RESPONSE_MAX_PAYLOAD_SIZE |
| Constructor and Description |
|---|
LogResponse() |
LogResponse(org.msgpack.core.MessageUnpacker unpacker) |
| Modifier and Type | Method and Description |
|---|---|
MessageCorrelation |
correlate() |
void |
correlate(MaestroNote note) |
void |
correlate(MessageCorrelation correlation) |
boolean |
correlatesTo(MaestroNote note) |
boolean |
correlatesTo(MessageCorrelation correlation) |
protected int |
getChunkSize(int maxChunkSize) |
File |
getFile() |
String |
getFileHash() |
String |
getFileName() |
LocationType |
getLocationType() |
InputStream |
getLogData() |
MaestroCommand |
getMaestroCommand()
Gets the Maestro command for the note
|
MaestroNoteType |
getNoteType()
Gets the note type
|
boolean |
hasNext()
Whether the note contains content that cannot be sent
in a single exchange.
|
protected InputStream |
initializeInputStream() |
boolean |
isLast() |
void |
join(LogResponse logResponse) |
void |
next()
Moves to the next subsequent note
|
protected org.msgpack.core.MessageBufferPacker |
pack() |
byte[] |
serialize()
Serialize the note
|
void |
setFile(File file) |
void |
setFileHash(String fileHash) |
protected void |
setFileName(String fileName) |
protected void |
setFileSize(long fileSize) |
void |
setLocationType(LocationType locationType) |
protected void |
setTotal(int total) |
String |
toString()
Converts the note to string for debugging purposes
|
getId, getPeerInfo, setId, setPeerInfoprotected static final int LOG_RESPONSE_MAX_PAYLOAD_SIZE
public LogResponse()
public LogResponse(org.msgpack.core.MessageUnpacker unpacker)
throws IOException
IOExceptionpublic LocationType getLocationType()
public void setLocationType(LocationType locationType)
public String getFileName()
protected void setFileName(String fileName)
protected void setFileSize(long fileSize)
protected void setTotal(int total)
public String getFileHash()
public void setFileHash(String fileHash)
protected int getChunkSize(int maxChunkSize)
public File getFile()
public void setFile(File file)
protected org.msgpack.core.MessageBufferPacker pack()
throws IOException
pack in class MaestroResponseIOExceptionprotected InputStream initializeInputStream() throws IOException
IOExceptionpublic void join(LogResponse logResponse)
public InputStream getLogData()
public void next()
MaestroNotepublic boolean hasNext()
MaestroNotepublic boolean isLast()
public String toString()
MaestroNotetoString in interface MaestroNotetoString in class MaestroResponsepublic MaestroNoteType getNoteType()
MaestroNotegetNoteType in interface MaestroNotepublic MaestroCommand getMaestroCommand()
MaestroNotegetMaestroCommand in interface MaestroNotepublic MessageCorrelation correlate()
correlate in interface MaestroNotepublic void correlate(MessageCorrelation correlation)
correlate in interface MaestroNotepublic void correlate(MaestroNote note)
correlate in interface MaestroNotepublic boolean correlatesTo(MessageCorrelation correlation)
correlatesTo in interface MaestroNotepublic boolean correlatesTo(MaestroNote note)
correlatesTo in interface MaestroNotepublic final byte[] serialize()
throws IOException
MaestroNoteserialize in interface MaestroNoteIOException - if unable to serialize the noteThis documentation was released into the public domain.