@@ -80,7 +80,6 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
8080 protected final SearchBuilder <HostVO > MaintenanceCountSearch ;
8181 protected final SearchBuilder <HostVO > ClusterSearch ;
8282 protected final SearchBuilder <HostVO > ConsoleProxyHostSearch ;
83- protected final SearchBuilder <HostVO > ConsoleProxyHostsListSearch ;
8483
8584 protected final Attribute _statusAttr ;
8685 protected final Attribute _msIdAttr ;
@@ -161,10 +160,6 @@ public HostDaoImpl() {
161160 ConsoleProxyHostSearch .and ("name" , ConsoleProxyHostSearch .entity ().getName (), SearchCriteria .Op .EQ );
162161 ConsoleProxyHostSearch .and ("type" , ConsoleProxyHostSearch .entity ().getType (), SearchCriteria .Op .EQ );
163162 ConsoleProxyHostSearch .done ();
164-
165- ConsoleProxyHostsListSearch = createSearchBuilder ();
166- ConsoleProxyHostsListSearch .and ("type" , ConsoleProxyHostsListSearch .entity ().getType (), SearchCriteria .Op .EQ );
167- ConsoleProxyHostsListSearch .done ();
168163
169164 PodSearch = createSearchBuilder ();
170165 PodSearch .and ("pod" , PodSearch .entity ().getPodId (), SearchCriteria .Op .EQ );
@@ -466,13 +461,6 @@ public HostVO findConsoleProxyHost(String name, Type type) {
466461 else
467462 return hostList .get (0 );
468463 }
469-
470- @ Override
471- public List <HostVO > listAllConsoleProxyHosts (Type type ) {
472- SearchCriteria <HostVO > sc = ConsoleProxyHostSearch .create ();
473- sc .setParameters ("type" , type );
474- return listBy (sc );
475- }
476464
477465 public List <HostVO > listByHostPod (long podId ) {
478466 SearchCriteria <HostVO > sc = PodSearch .create ("pod" , podId );
@@ -496,15 +484,10 @@ public List<HostVO> listByTypeDataCenter(Type type, long dcId) {
496484 }
497485
498486 @ Override
499- public List <HostVO > listByType (Type type , boolean routingCapable ) {
487+ public List <HostVO > listByType (Type type ) {
500488 SearchCriteria <HostVO > sc = TypeSearch .create ();
501489 sc .setParameters ("type" , type .toString ());
502-
503- if (routingCapable ) {
504- sc .addAnd ("routing_capbable" , SearchCriteria .Op .EQ , Integer .valueOf (1 ));
505- }
506-
507- return listIncludingRemovedBy (sc );
490+ return listBy (sc );
508491 }
509492
510493 protected void saveDetails (HostVO host ) {
0 commit comments