use of com.navercorp.pinpoint.web.vo.scatter.Dot in project pinpoint by naver.
the class TraceIndexScatterMapper method createDot.
private Dot createDot(Cell cell) {
final Buffer valueBuffer = new OffsetFixedBuffer(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
int elapsed = valueBuffer.readVInt();
int exceptionCode = valueBuffer.readSVInt();
String agentId = valueBuffer.readPrefixedString();
long reverseAcceptedTime = BytesUtils.bytesToLong(cell.getRowArray(), cell.getRowOffset() + HBaseTables.APPLICATION_NAME_MAX_LEN + HBaseTables.APPLICATION_TRACE_INDEX_ROW_DISTRIBUTE_SIZE);
long acceptedTime = TimeUtils.recoveryTimeMillis(reverseAcceptedTime);
final int qualifierOffset = cell.getQualifierOffset();
TransactionId transactionId = TransactionIdMapper.parseVarTransactionId(cell.getQualifierArray(), qualifierOffset, cell.getQualifierLength());
return new Dot(transactionId, acceptedTime, elapsed, exceptionCode, agentId);
}
use of com.navercorp.pinpoint.web.vo.scatter.Dot in project pinpoint by naver.
the class TraceIndexScatterMapper2 method createDot.
private Dot createDot(Cell cell) {
final Buffer valueBuffer = new OffsetFixedBuffer(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
int elapsed = valueBuffer.readVInt();
if (elapsed < responseOffsetFrom || elapsed > responseOffsetTo) {
return null;
}
int exceptionCode = valueBuffer.readSVInt();
String agentId = valueBuffer.readPrefixedString();
long reverseAcceptedTime = BytesUtils.bytesToLong(cell.getRowArray(), cell.getRowOffset() + HBaseTables.APPLICATION_NAME_MAX_LEN + HBaseTables.APPLICATION_TRACE_INDEX_ROW_DISTRIBUTE_SIZE);
long acceptedTime = TimeUtils.recoveryTimeMillis(reverseAcceptedTime);
final int qualifierOffset = cell.getQualifierOffset();
// TransactionId transactionId = new TransactionId(buffer,
// qualifierOffset);
// for temporary, used TransactionIdMapper
TransactionId transactionId = TransactionIdMapper.parseVarTransactionId(cell.getQualifierArray(), qualifierOffset, cell.getQualifierLength());
return new Dot(transactionId, acceptedTime, elapsed, exceptionCode, agentId);
}
use of com.navercorp.pinpoint.web.vo.scatter.Dot in project pinpoint by naver.
the class TraceIndexScatterMapper3 method mapRow.
@Override
public ScatterData mapRow(Result result, int rowNum) throws Exception {
if (result.isEmpty()) {
return new ScatterData(from, to, xGroupUnit, yGroupUnit);
}
ScatterData scatterData = new ScatterData(from, to, xGroupUnit, yGroupUnit);
Cell[] rawCells = result.rawCells();
for (Cell cell : rawCells) {
final Dot dot = createDot(cell);
if (dot != null) {
scatterData.addDot(dot);
}
}
return scatterData;
}
use of com.navercorp.pinpoint.web.vo.scatter.Dot in project pinpoint by naver.
the class TraceIndexScatterMapper3 method createDot.
private Dot createDot(Cell cell) {
final Buffer valueBuffer = new OffsetFixedBuffer(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
int elapsed = valueBuffer.readVInt();
int exceptionCode = valueBuffer.readSVInt();
String agentId = valueBuffer.readPrefixedString();
long reverseAcceptedTime = BytesUtils.bytesToLong(cell.getRowArray(), cell.getRowOffset() + HBaseTables.APPLICATION_NAME_MAX_LEN + HBaseTables.APPLICATION_TRACE_INDEX_ROW_DISTRIBUTE_SIZE);
long acceptedTime = TimeUtils.recoveryTimeMillis(reverseAcceptedTime);
// TransactionId transactionId = new TransactionId(buffer,
// qualifierOffset);
// for temporary, used TransactionIdMapper
TransactionId transactionId = TransactionIdMapper.parseVarTransactionId(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength());
return new Dot(transactionId, acceptedTime, elapsed, exceptionCode, agentId);
}
Aggregations