Madan Jampani | 08822c4 | 2014-11-04 17:17:46 -0800 | [diff] [blame] | 1 | package org.onlab.onos.store.service.impl; |
| 2 | |
| 3 | import org.onlab.onos.store.service.ReadResult; |
| 4 | |
| 5 | public 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 | } |