public HashMap<String, ShardCount> topMap(HashMap<String, ShardCount> map,boolean isdesc,int num)
{
ArrayList<shardCountDayCmp> list=new ArrayList<shardCountDayCmp>();
for(Entry<String, ShardCount> e:map.entrySet())
{
ShardCount sc=e.getValue();
if(sc.cnt>0&&!sc.isTimeout())
{
list.add(new shardCountDayCmp(e.getKey(), sc,isdesc));
}
}