Make sure invokeOperation is set once
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / core / PeerBandwidth.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.sal.core;
11
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlRootElement;
15
16 /**
17  * @file   PeerBandWidth.java
18  *
19  * @brief  Class representing peer bandwidth
20  *
21  * Describes peer Bandwidth of peer element. It's intended in multiple of
22  *  bits per seconds.
23  */
24 @XmlRootElement
25 @XmlAccessorType(XmlAccessType.NONE)
26 @Deprecated
27 public class PeerBandwidth extends Bandwidth {
28         private static final long serialVersionUID = 1L;
29
30         public static final String PeerBandwidthPropName = "peerBandwidth";
31
32         public PeerBandwidth(long value) {
33                 super(PeerBandwidthPropName);
34                 this.bandwidthValue = value;
35         }
36
37         /*
38      * Private constructor used for JAXB mapping
39      */
40     private PeerBandwidth() {
41         super(PeerBandwidthPropName);
42                 this.bandwidthValue = 0;
43     }
44
45         public PeerBandwidth clone() {
46                 return new PeerBandwidth(this.bandwidthValue);
47     }
48
49
50     @Override
51     public String toString() {
52         StringBuffer sb = new StringBuffer();
53         sb.append("PeerBandWidth[");
54         sb.append(super.toString());
55         sb.append("]");
56         return sb.toString();
57     }
58 }