blob: 9def335cf5587e8318d9582a35d1dd0973d2d159 [file] [log] [blame]
tom9c94c5b2014-09-17 13:14:42 -07001package org.onlab.onos.openflow.controller.driver;
tom7ef8ff92014-09-17 13:08:06 -07002
tom9c94c5b2014-09-17 13:14:42 -07003import org.onlab.onos.openflow.controller.RoleState;
tom7ef8ff92014-09-17 13:08:06 -07004import 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}