Interface OpenFlowSession
-
public interface OpenFlowSessionRepresents to OpenFlow session.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddClassifier(OpenFlowClassifier classifier)Add classifier to runtime store of classifiers.voidcloseSession()Requests to close this OpenFlow session.booleanisActive()Returns session state.voidremoveClassifier(OpenFlowClassifier classifier)Remove classifier from runtime store of classifiers.booleansendMsg(java.lang.Iterable<org.projectfloodlight.openflow.protocol.OFMessage> msgs)Sends messages over this session.default booleansendMsg(org.projectfloodlight.openflow.protocol.OFMessage msg)Sends message over this session.java.lang.CharSequencesessionInfo()Returns debug information about this session.
-
-
-
Method Detail
-
isActive
boolean isActive()
Returns session state.- Returns:
- true if active.
-
closeSession
void closeSession()
Requests to close this OpenFlow session.
-
sendMsg
boolean sendMsg(java.lang.Iterable<org.projectfloodlight.openflow.protocol.OFMessage> msgs)
Sends messages over this session.- Parameters:
msgs- to send- Returns:
- true is messages were sent
-
sendMsg
default boolean sendMsg(org.projectfloodlight.openflow.protocol.OFMessage msg)
Sends message over this session.- Parameters:
msg- to send- Returns:
- true is messages were sent
-
sessionInfo
java.lang.CharSequence sessionInfo()
Returns debug information about this session.- Returns:
- debug information
-
addClassifier
void addClassifier(OpenFlowClassifier classifier)
Add classifier to runtime store of classifiers.- Parameters:
classifier- the OpenFlow classifier to add
-
removeClassifier
void removeClassifier(OpenFlowClassifier classifier)
Remove classifier from runtime store of classifiers.- Parameters:
classifier- the OpenFlow classifier to remove
-
-