public class RoleManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RoleManager.Role |
Constructor and Description |
---|
RoleManager() |
Modifier and Type | Method and Description |
---|---|
void |
addController(org.jboss.netty.channel.Channel chan) |
boolean |
canReceive(org.jboss.netty.channel.Channel channel,
OFMessage m) |
boolean |
canSend(org.jboss.netty.channel.Channel channel,
OFMessage m) |
RoleManager.Role |
getRole(org.jboss.netty.channel.Channel channel) |
void |
removeChannel(org.jboss.netty.channel.Channel channel) |
void |
sendMsg(OFMessage msg,
org.jboss.netty.channel.Channel c) |
void |
setRole(org.jboss.netty.channel.Channel channel,
RoleManager.Role role) |
void |
shutDown() |
String |
toString() |
public void addController(org.jboss.netty.channel.Channel chan)
public void setRole(org.jboss.netty.channel.Channel channel, RoleManager.Role role) throws IllegalArgumentException, UnknownRoleException
public boolean canSend(org.jboss.netty.channel.Channel channel, OFMessage m)
public boolean canReceive(org.jboss.netty.channel.Channel channel, OFMessage m)
public RoleManager.Role getRole(org.jboss.netty.channel.Channel channel)
public void sendMsg(OFMessage msg, org.jboss.netty.channel.Channel c)
public void removeChannel(org.jboss.netty.channel.Channel channel)
public void shutDown()
Copyright © 2015. All rights reserved.