public interface RoleHandler
| Modifier and Type | Method and Description |
|---|---|
RoleRecvStatus |
deliverError(org.projectfloodlight.openflow.protocol.OFErrorMsg error)
Called if we receive an error message.
|
RoleRecvStatus |
deliverRoleReply(RoleReplyInfo rri)
Deliver a received role reply.
|
RoleState |
extractNiciraRoleReply(org.projectfloodlight.openflow.protocol.OFExperimenter experimenterMsg)
Extract the role from an OFVendor message.
|
RoleReplyInfo |
extractOFRoleReply(org.projectfloodlight.openflow.protocol.OFRoleReply rrmsg)
Extract the role information from an OF1.3 Role Reply Message.
|
boolean |
sendRoleRequest(RoleState role,
RoleRecvStatus exp)
Send a role request with the given role to the switch and update
the pending request and timestamp.
|
RoleState extractNiciraRoleReply(org.projectfloodlight.openflow.protocol.OFExperimenter experimenterMsg) throws SwitchStateException
experimenterMsg - The vendor message to parse.SwitchStateException - If the message is a Nicira role reply
but the numeric role value is unknown.boolean sendRoleRequest(RoleState role, RoleRecvStatus exp) throws IOException
role - role to requestexp - expectationIOException - when I/O exception of some sort has occurredRoleReplyInfo extractOFRoleReply(org.projectfloodlight.openflow.protocol.OFRoleReply rrmsg) throws SwitchStateException
rrmsg - role reply messageSwitchStateException - If unknown role encounteredRoleRecvStatus deliverRoleReply(RoleReplyInfo rri) throws SwitchStateException
rri - information about role-reply in format that
controller can understand.SwitchStateException - if no request is pendingRoleRecvStatus deliverError(org.projectfloodlight.openflow.protocol.OFErrorMsg error) throws SwitchStateException
error - error messageSwitchStateException - if switch did not support requested role