[유치수] [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:
Chisu Yu
2012-11-05 02:13:33 +00:00
parent 1fa55eb654
commit 8dbcbc7a24
3 changed files with 25 additions and 1 deletions
@@ -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()) {