mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-24 20:26:16 +10:00
[강운덕] [WEB-49] 메모리 할당을 덜하도록 코드 정리
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-commons/trunk@3366 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -17,29 +17,6 @@ import com.nhn.pinpoint.common.hbase.HBaseTables;
|
||||
*/
|
||||
public class ApplicationStatisticsUtils {
|
||||
|
||||
public static byte[] makeColumnName(String agentId, short slotNumber) {
|
||||
if (agentId == null) {
|
||||
agentId = "";
|
||||
}
|
||||
byte[] slotNumberBytes = Bytes.toBytes(slotNumber);
|
||||
byte[] agentIdBytes = Bytes.toBytes(agentId);
|
||||
|
||||
return BytesUtils.concat(slotNumberBytes, agentIdBytes);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* rowkey format = "APPLICATIONNAME(max 24bytes)" + apptype(2byte) + "TIMESTAMP(8byte)"
|
||||
* </pre>
|
||||
*
|
||||
* @param applicationName
|
||||
* @param timestamp
|
||||
* @return
|
||||
*/
|
||||
public static byte[] makeRowKey(String applicationName, short applicationType, long timestamp) {
|
||||
return ApplicationMapStatisticsUtils.makeRowKey(applicationName, applicationType, timestamp);
|
||||
}
|
||||
|
||||
public static String getApplicationNameFromRowKey(byte[] bytes) {
|
||||
return ApplicationMapStatisticsUtils.getApplicationNameFromRowKey(bytes);
|
||||
|
||||
Reference in New Issue
Block a user