@Test public void testAddOpenFlowEntry() throws Exception { }
public void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry) throws Exception { try { assertConnectorNotNull(); StringBuilder urlPrefix = constructFlowUrlPrefix(nodeId, flowEntryLabel); connector.putToController(urlPrefix.toString(), flowEntry); } catch (Throwable e) { String msg = "Excepted trying to addOpenFlowEntry for " + nodeId + " " + flowEntryLabel + " " + flowEntry; log.error(msg, e); throw new Exception(msg, e); } }
FlowEntryMgr { public void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry) throws Exception { try { assertConnectorNotNull(); StringBuilder urlPrefix = constructFlowUrlPrefix(nodeId, flowEntryLabel); connector.putToController(urlPrefix.toString(), flowEntry); } catch (Throwable e) { String msg = "Excepted trying to addOpenFlowEntry for " + nodeId + " " + flowEntryLabel + " " + flowEntry; log.error(msg, e); throw new Exception(msg, e); } } }
FlowEntryMgr { public void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry) throws Exception { try { assertConnectorNotNull(); StringBuilder urlPrefix = constructFlowUrlPrefix(nodeId, flowEntryLabel); connector.putToController(urlPrefix.toString(), flowEntry); } catch (Throwable e) { String msg = "Excepted trying to addOpenFlowEntry for " + nodeId + " " + flowEntryLabel + " " + flowEntry; log.error(msg, e); throw new Exception(msg, e); } } FlowEntryMgr(); }
FlowEntryMgr { public void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry) throws Exception { try { assertConnectorNotNull(); StringBuilder urlPrefix = constructFlowUrlPrefix(nodeId, flowEntryLabel); connector.putToController(urlPrefix.toString(), flowEntry); } catch (Throwable e) { String msg = "Excepted trying to addOpenFlowEntry for " + nodeId + " " + flowEntryLabel + " " + flowEntry; log.error(msg, e); throw new Exception(msg, e); } } FlowEntryMgr(); void setOdl(Odl odl); ReceivedFlowConfig getOpenFlowEntry(String nodeId, String flowEntryLabel); void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry); void toggleOpenFlowEntry(String nodeId, String flowEntryLabel); void deleteOpenFlowEntry(String nodeId, String flowEntryLabel); FlowStatistics getOpenFlowStats(String nodeId); Nodes getNodes(); void reset(); }
FlowEntryMgr { public void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry) throws Exception { try { assertConnectorNotNull(); StringBuilder urlPrefix = constructFlowUrlPrefix(nodeId, flowEntryLabel); connector.putToController(urlPrefix.toString(), flowEntry); } catch (Throwable e) { String msg = "Excepted trying to addOpenFlowEntry for " + nodeId + " " + flowEntryLabel + " " + flowEntry; log.error(msg, e); throw new Exception(msg, e); } } FlowEntryMgr(); void setOdl(Odl odl); ReceivedFlowConfig getOpenFlowEntry(String nodeId, String flowEntryLabel); void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry); void toggleOpenFlowEntry(String nodeId, String flowEntryLabel); void deleteOpenFlowEntry(String nodeId, String flowEntryLabel); FlowStatistics getOpenFlowStats(String nodeId); Nodes getNodes(); void reset(); public Connector connector; public Odl odl; }