X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Fstatistics%2Fservices%2FAllPortStatsService.java;h=b43925b9c39b84cb0dfb726ec983ff3dba5a5e98;hb=ed6fc9dd2e82df8a2e8ba15d72028829cbb07c1c;hp=d2ca4400443c908e06abff59a4053d4ebeee3d70;hpb=9b739fdca6ca96aa84bb12e8eb51381422aa38c6;p=openflowplugin.git diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllPortStatsService.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllPortStatsService.java index d2ca440044..b43925b9c3 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllPortStatsService.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllPortStatsService.java @@ -13,7 +13,8 @@ import org.opendaylight.openflowplugin.api.OFConstants; import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext; import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack; import org.opendaylight.openflowplugin.api.openflow.device.Xid; -import org.opendaylight.openflowplugin.impl.services.RequestInputUtils; +import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils; +import org.opendaylight.openflowplugin.impl.services.util.ServiceException; import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService; import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.NodeConnectorStatisticsToNotificationTransformer; import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId; @@ -51,7 +52,7 @@ final class AllPortStatsService } @Override - protected OfHeader buildRequest(final Xid xid, final GetAllNodeConnectorsStatisticsInput input) { + protected OfHeader buildRequest(final Xid xid, final GetAllNodeConnectorsStatisticsInput input) throws ServiceException { MultipartRequestInputBuilder mprInput = RequestInputUtils .createMultipartHeader(MultipartType.OFPMPPORTSTATS, xid.getValue(), getVersion()); mprInput.setMultipartRequestBody(PORT_STATS_CASE); @@ -65,6 +66,6 @@ final class AllPortStatsService @Override public NodeConnectorStatisticsUpdate transformToNotification(List result, TransactionId emulatedTxId) { - return NodeConnectorStatisticsToNotificationTransformer.transformToNotification(result, getDeviceContext(), getOfVersion(), emulatedTxId); + return NodeConnectorStatisticsToNotificationTransformer.transformToNotification(result, getDeviceInfo(), getOfVersion(), emulatedTxId); } }