blob: f6fcf51bca3deb6884c74fd006c3cc525786cc24 [file] [log] [blame]
Madan Jampani08822c42014-11-04 17:17:46 -08001package org.onlab.onos.store.service.impl;
2
3import org.onlab.onos.store.service.ReadResult;
4
5public class InternalReadResult {
6
7 public enum Status {
8 OK,
9 NO_SUCH_TABLE
10 }
11
12 private final Status status;
13 private final ReadResult result;
14
15 public InternalReadResult(Status status, ReadResult result) {
16 this.status = status;
17 this.result = result;
18 }
19
20 public Status status() {
21 return status;
22 }
23
24 public ReadResult result() {
25 return result;
26 }
27
28 @Override
29 public String toString() {
30 return "InternalReadResult [status=" + status + ", result=" + result
31 + "]";
32 }
33}