mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-27 21:56:38 +10:00
[유치수] [NOBTS] save application name
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@840 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package com.nhn.hippo.web.dao;
|
||||
|
||||
public interface ApplicationsIndex {
|
||||
public void getAgentIds(String applicationName);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.nhn.hippo.web.dao;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import com.profiler.common.hbase.HbaseOperations2;
|
||||
|
||||
public class HbaseApplicationsIndexDao implements ApplicationsIndex {
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass().getName());
|
||||
|
||||
@Autowired
|
||||
private HbaseOperations2 hbaseTemplate;
|
||||
|
||||
@Override
|
||||
public void getAgentIds(String applicationName) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public class FlowChartServiceImpl implements FlowChartService {
|
||||
List<HbaseColumn> column = new ArrayList<HBaseQuery.HbaseColumn>();
|
||||
column.add(new HbaseColumn("Agents", "AgentID"));
|
||||
|
||||
HBaseQuery query = new HBaseQuery(HBaseTables.SERVERS, null, null, column);
|
||||
HBaseQuery query = new HBaseQuery(HBaseTables.APPLICATIONS_INDEX, null, null, column);
|
||||
Iterator<Map<String, byte[]>> iterator = client.getHBaseData(query);
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user