-
- @Override
- public List<DataObject> translate(SwitchConnectionDistinguisher cookie,
- SessionContext sc, OfHeader msg) {
-
-
- if(msg instanceof MultipartReply && ((MultipartReply) msg).getType() == MultipartType.OFPMPTABLEFEATURES) {
- LOG.info("MultipartReply Being translated to TableUpdated " );
- MultipartReplyMessage mpReply = (MultipartReplyMessage)msg;
-
- List<DataObject> listDataObject = new CopyOnWriteArrayList<DataObject>();
-
- TableUpdatedBuilder message = new TableUpdatedBuilder() ;
+ private final ConvertorExecutor convertorExecutor;
+
+ public MultipartReplyTableFeaturesToTableUpdatedTranslator(ConvertorExecutor convertorExecutor) {
+ this.convertorExecutor = convertorExecutor;
+ }
+
+ @Override
+ public List<DataObject> translate(SwitchConnectionDistinguisher cookie, SessionContext sc, OfHeader msg) {
+ if (msg instanceof MultipartReply && ((MultipartReply) msg).getType() == MultipartType.OFPMPTABLEFEATURES) {
+ LOG.debug("MultipartReply Being translated to TableUpdated ");
+ MultipartReplyMessage mpReply = (MultipartReplyMessage) msg;
+
+ List<DataObject> listDataObject = new CopyOnWriteArrayList<>();
+
+ TableUpdatedBuilder message = new TableUpdatedBuilder();