| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.floodlightcontroller.staticflowentry.StaticFlowEntries
public class StaticFlowEntries
Represents static flow entries to be maintained by the controller on the switches.
| Field Summary | |
|---|---|
| protected static org.slf4j.Logger | log | 
| Constructor Summary | |
|---|---|
| StaticFlowEntries() | |
| Method Summary | |
|---|---|
| static long | computeEntryCookie(OFFlowMod fm,
                   int userCookie,
                   java.lang.String name)This function generates a random hash for the bottom half of the cookie | 
| static java.util.Map<java.lang.String,java.lang.Object> | flowModToStorageEntry(OFFlowMod fm,
                      java.lang.String sw,
                      java.lang.String name)Parses an OFFlowMod (and it's inner OFMatch) to the storage entry format. | 
| static java.lang.String | getEntryNameFromJson(java.lang.String fmJson)Gets the entry name of a flow mod | 
| static void | initDefaultFlowMod(OFFlowMod fm,
                   java.lang.String entryName)Sets defaults for an OFFlowMod | 
| static java.util.Map<java.lang.String,java.lang.Object> | jsonToStorageEntry(java.lang.String fmJson)Turns a JSON formatted Static Flow Pusher string into a storage entry Expects a string in JSON along the lines of: { "switch": "AA:BB:CC:DD:EE:FF:00:11", "name": "flow-mod-1", "cookie": "0", "priority": "32768", "ingress-port": "1", "actions": "output=2", } | 
| static void | parseActionString(OFFlowMod flowMod,
                  java.lang.String actionstr,
                  org.slf4j.Logger log)Parses OFFlowMod actions from strings. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static org.slf4j.Logger log
| Constructor Detail | 
|---|
public StaticFlowEntries()
| Method Detail | 
|---|
public static long computeEntryCookie(OFFlowMod fm,
                                      int userCookie,
                                      java.lang.String name)
fm - userCookie - name - 
public static void initDefaultFlowMod(OFFlowMod fm,
                                      java.lang.String entryName)
fm - The OFFlowMod to set defaults forentryName - The name of the entry. Used to compute the cookie.
public static java.lang.String getEntryNameFromJson(java.lang.String fmJson)
                                             throws java.io.IOException
fmJson - The OFFlowMod in a JSON representation
java.io.IOException - If there was an error parsing the JSON
public static java.util.Map<java.lang.String,java.lang.Object> flowModToStorageEntry(OFFlowMod fm,
                                                                                     java.lang.String sw,
                                                                                     java.lang.String name)
fm - The FlowMod to parsesw - The switch the FlowMod is going to be installed onname - The name of this static flow entry
public static java.util.Map<java.lang.String,java.lang.Object> jsonToStorageEntry(java.lang.String fmJson)
                                                                           throws java.io.IOException
fmJson - The JSON formatted static flow pusher entry
java.io.IOException - If there was an error parsing the JSON
public static void parseActionString(OFFlowMod flowMod,
                                     java.lang.String actionstr,
                                     org.slf4j.Logger log)
flowMod - The OFFlowMod to set the actions foractionstr - The string containing all the actionslog - A logger to log for errors.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||