9929de6a0c99f22f5b4acf13bb940b8a660898f2
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / plugin / StatusWithUuid.java
1 /*
2  * [[ Authors will Fill in the Copyright header ]]
3  *
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
7  *
8  * Authors : Hugo Trippaers
9  */
10 package org.opendaylight.ovsdb.plugin;
11
12 import org.opendaylight.controller.sal.utils.Status;
13 import org.opendaylight.controller.sal.utils.StatusCode;
14 import org.opendaylight.ovsdb.lib.notation.UUID;
15
16 /**
17  * Extends the Status class to allow functions to return a uuid
18  */
19 public class StatusWithUuid extends Status {
20     private static final long serialVersionUID = -5413085099514964003L;
21     private UUID uuid;
22
23     public StatusWithUuid(StatusCode errorCode) {
24         super(errorCode);
25     }
26
27     public StatusWithUuid(StatusCode errorCode, String description) {
28         super(errorCode, description);
29     }
30
31     public StatusWithUuid(StatusCode errorCode, long requestId) {
32         super(errorCode, requestId);
33     }
34
35     public StatusWithUuid(StatusCode errorCode, UUID uuid) {
36         super(errorCode);
37         this.uuid = uuid;
38     }
39
40     public UUID getUuid() {
41         return uuid;
42     }
43
44 }