2 * Copyright IBM Corporation, 2013. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.samples.loadbalancer.northbound;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
17 import org.opendaylight.controller.samples.loadbalancer.entities.Pool;
20 @XmlAccessorType(XmlAccessType.NONE)
22 * JAX-RS resource for handling details of all the available pools
23 * in response to respective REST API requests.
28 @XmlElement (name="pool")
29 Set<Pool> loadBalancerPools;
34 public Pools (Set<Pool> loadBalancerPools) {
35 this.loadBalancerPools = loadBalancerPools;
39 * @return the loadBalancerPools
41 public Set<Pool> getLoadBalancerPools() {
42 return loadBalancerPools;
46 * @param loadBalancerPools the loadBalancerPools to set
48 public void setLoadBalancerPools(Set<Pool> loadBalancerPools) {
49 this.loadBalancerPools = loadBalancerPools;