[강운덕] [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:
Woonduk Kang
2014-02-20 06:30:02 +00:00
parent eb9c8b4eac
commit d432ecfda6
@@ -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);