blob: cc3c483329472584bda58d2f1efbc566e27033d7 [file] [log] [blame]
tom7ef8ff92014-09-17 13:08:06 -07001package org.onlab.onos.of.controller.driver;
2
3import org.onlab.onos.of.controller.RoleState;
4import org.projectfloodlight.openflow.types.U64;
5
6/**
7 * Helper class returns role reply information in the format understood
8 * by the controller.
9 */
10public class RoleReplyInfo {
11 private final RoleState role;
12 private final U64 genId;
13 private final long xid;
14
15 public RoleReplyInfo(RoleState role, U64 genId, long xid) {
16 this.role = role;
17 this.genId = genId;
18 this.xid = xid;
19 }
20 public RoleState getRole() { return role; }
21 public U64 getGenId() { return genId; }
22 public long getXid() { return xid; }
23 @Override
24 public String toString() {
25 return "[Role:" + role + " GenId:" + genId + " Xid:" + xid + "]";
26 }
27}