Search in sources :

Example 1 with ElasticLbVmMapDaoImpl

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");
    }
}
Also used : ElasticLbVmMapDaoImpl(com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl) DomainRouterVO(com.cloud.vm.DomainRouterVO)

Example 2 with ElasticLbVmMapDaoImpl

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");
    }
}
Also used : ElasticLbVmMapVO(com.cloud.network.ElasticLbVmMapVO) ElasticLbVmMapDaoImpl(com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl)

Example 3 with ElasticLbVmMapDaoImpl

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");
    }
}
Also used : LoadBalancerVO(com.cloud.network.LoadBalancerVO) ElasticLbVmMapDaoImpl(com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl)

Aggregations

ElasticLbVmMapDaoImpl (com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl)3 ElasticLbVmMapVO (com.cloud.network.ElasticLbVmMapVO)1 LoadBalancerVO (com.cloud.network.LoadBalancerVO)1 DomainRouterVO (com.cloud.vm.DomainRouterVO)1