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, getName, setId, setName
protected static final int LOG_RESPONSE_MAX_PAYLOAD_SIZE
public LogResponse()
public LogResponse(org.msgpack.core.MessageUnpacker unpacker) throws IOException
IOException
public 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 MaestroResponse
IOException
protected InputStream initializeInputStream() throws IOException
IOException
public void join(LogResponse logResponse)
public InputStream getLogData()
public void next()
MaestroNote
public boolean hasNext()
MaestroNote
public boolean isLast()
public String toString()
MaestroNote
toString
in interface MaestroNote
toString
in class MaestroResponse
public MaestroNoteType getNoteType()
MaestroNote
getNoteType
in interface MaestroNote
public MaestroCommand getMaestroCommand()
MaestroNote
getMaestroCommand
in interface MaestroNote
public MessageCorrelation correlate()
correlate
in interface MaestroNote
public void correlate(MessageCorrelation correlation)
correlate
in interface MaestroNote
public void correlate(MaestroNote note)
correlate
in interface MaestroNote
public boolean correlatesTo(MessageCorrelation correlation)
correlatesTo
in interface MaestroNote
public boolean correlatesTo(MaestroNote note)
correlatesTo
in interface MaestroNote
public final byte[] serialize() throws IOException
MaestroNote
serialize
in interface MaestroNote
IOException
- if unable to serialize the noteThis documentation was released into the public domain.