use of com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl in project CloudStack-archive by CloudStack-extras.
the class ElbVmMapDaoTest method testFindUnused.
public void testFindUnused() {
ElasticLbVmMapDaoImpl dao = ComponentLocator.inject(ElasticLbVmMapDaoImpl.class);
List<DomainRouterVO> map = dao.listUnusedElbVms();
if (map == null) {
System.out.println("Not Found");
} else {
System.out.println("Found");
}
}
use of com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl in project CloudStack-archive by CloudStack-extras.
the class ElbVmMapDaoTest method testFindByIp.
public void testFindByIp() {
ElasticLbVmMapDaoImpl dao = ComponentLocator.inject(ElasticLbVmMapDaoImpl.class);
ElasticLbVmMapVO map = dao.findOneByIp(3);
if (map == null) {
System.out.println("Not Found");
} else {
System.out.println("Found");
}
}
use of com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl in project CloudStack-archive by CloudStack-extras.
the class ElbVmMapDaoTest method testFindLB.
public void testFindLB() {
ElasticLbVmMapDaoImpl dao = ComponentLocator.inject(ElasticLbVmMapDaoImpl.class);
List<LoadBalancerVO> lbs = dao.listLbsForElbVm(12);
if (lbs == null) {
System.out.println("Not Found");
} else {
System.out.println("Found " + lbs.size() + " lbs");
}
}
Aggregations