diff --git a/src/main/java/com/nhn/pinpoint/web/mapper/AgentInfoMapper.java b/src/main/java/com/nhn/pinpoint/web/mapper/AgentInfoMapper.java index 08b5e786c..78c4f1ec9 100644 --- a/src/main/java/com/nhn/pinpoint/web/mapper/AgentInfoMapper.java +++ b/src/main/java/com/nhn/pinpoint/web/mapper/AgentInfoMapper.java @@ -1,7 +1,7 @@ package com.nhn.pinpoint.web.mapper; +import com.nhn.pinpoint.common.PinpointConstants; import com.nhn.pinpoint.common.bo.AgentInfoBo; -import com.nhn.pinpoint.common.hbase.HBaseTables; import com.nhn.pinpoint.common.util.BytesUtils; import com.nhn.pinpoint.common.util.TimeUtils; import org.apache.hadoop.hbase.KeyValue; @@ -43,10 +43,10 @@ public class AgentInfoMapper implements RowMapper> { agentInfoBo.readValue(keyValue.getValue()); byte[] rowKey = keyValue.getRow(); - String agentId = Bytes.toString(rowKey, 0, HBaseTables.AGENT_NAME_MAX_LEN - 1).trim(); + String agentId = Bytes.toString(rowKey, 0, PinpointConstants.AGENT_NAME_MAX_LEN - 1).trim(); agentInfoBo.setAgentId(agentId); - long reverseStartTime = BytesUtils.bytesToLong(rowKey, HBaseTables.AGENT_NAME_MAX_LEN); + long reverseStartTime = BytesUtils.bytesToLong(rowKey, PinpointConstants.AGENT_NAME_MAX_LEN); long startTime = TimeUtils.recoveryCurrentTimeMillis(reverseStartTime); agentInfoBo.setStartTime(startTime); diff --git a/src/main/java/com/nhn/pinpoint/web/vo/TransactionId.java b/src/main/java/com/nhn/pinpoint/web/vo/TransactionId.java index 9049daa58..688c63ded 100644 --- a/src/main/java/com/nhn/pinpoint/web/vo/TransactionId.java +++ b/src/main/java/com/nhn/pinpoint/web/vo/TransactionId.java @@ -1,7 +1,6 @@ package com.nhn.pinpoint.web.vo; import com.nhn.pinpoint.common.PinpointConstants; -import com.nhn.pinpoint.common.hbase.HBaseTables; import com.nhn.pinpoint.common.util.BytesUtils; import com.nhn.pinpoint.common.util.TransactionIdUtils; @@ -72,7 +71,7 @@ public class TransactionId { } public byte[] getBytes() { - return BytesUtils.stringLongLongToBytes(agentId, HBaseTables.AGENT_NAME_MAX_LEN, agentStartTime, transactionSequence); + return BytesUtils.stringLongLongToBytes(agentId, PinpointConstants.AGENT_NAME_MAX_LEN, agentStartTime, transactionSequence); } @Override