Package com.illumon.iris.binarystore
Class CommandRecordV2.LASCommandRecordV2
java.lang.Object
com.illumon.iris.binarystore.CommandRecordV2
com.illumon.iris.binarystore.CommandRecordV2.LASCommandRecordV2
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,RecordData
- Enclosing class:
- CommandRecordV2
Wrap a LAS command (as defined in com.illumon.iris.db.v2.logaggregator.CommandHelper.LasInnerCommandId) in a record entry.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.binarystore.CommandRecordV2
CommandRecordV2.CheckpointCommand, CommandRecordV2.DeletePartition2Command, CommandRecordV2.DeletePartitionCommand, CommandRecordV2.LASCommandRecordV2 -
Field Summary
Fields inherited from class com.illumon.iris.binarystore.CommandRecordV2
command -
Constructor Summary
ConstructorsConstructorDescriptionLASCommandRecordV2(byte command) LASCommandRecordV2(byte command, byte[] payload) -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) intDetermine the required buffer size in bytes.bytebyte[]voidwrite(ByteBuffer buffer) Write the record data to the given data buffer.Methods inherited from class com.illumon.iris.binarystore.CommandRecordV2
getCommand, setCommand, toString
-
Constructor Details
-
LASCommandRecordV2
public LASCommandRecordV2(byte command) -
LASCommandRecordV2
public LASCommandRecordV2(byte command, byte[] payload)
-
-
Method Details
-
getLasCommandByte
public byte getLasCommandByte() -
getPayload
public byte[] getPayload() -
write
Description copied from interface:RecordDataWrite the record data to the given data buffer.- Specified by:
writein interfaceRecordData- Overrides:
writein classCommandRecordV2- Parameters:
buffer- write to this buffer
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable- Overrides:
appendin classCommandRecordV2
-
getDataSize
public int getDataSize()Description copied from interface:RecordDataDetermine the required buffer size in bytes. Note that this method is intended for use in exception-handling and may not have good performance, and may allocate temporary buffers to determine the final data size.- Specified by:
getDataSizein interfaceRecordData- Overrides:
getDataSizein classCommandRecordV2- Returns:
- the required buffer size in bytes
-