Class ArpUtilImpl
- java.lang.Object
-
- org.opendaylight.infrautils.inject.AbstractLifecycle
-
- org.opendaylight.genius.arputil.internal.ArpUtilImpl
-
- All Implemented Interfaces:
java.util.EventListener
,org.opendaylight.infrautils.inject.Lifecycle
,OdlArputilService
,org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
,org.opendaylight.yangtools.yang.binding.NotificationListener
,org.opendaylight.yangtools.yang.binding.RpcService
@Singleton public class ArpUtilImpl extends org.opendaylight.infrautils.inject.AbstractLifecycle implements OdlArputilService, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
-
-
Constructor Summary
Constructors Constructor Description ArpUtilImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService packetProcessingService, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.binding.api.NotificationService notificationService, OdlInterfaceRpcService odlInterfaceRpcService, org.opendaylight.infrautils.metrics.MetricProvider metricProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetMacOutput>>
getMac(GetMacInput input)
Invokeget-mac
RPC.void
onPacketReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetReceived)
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SendArpRequestOutput>>
sendArpRequest(SendArpRequestInput arpReqInput)
Invokesend-arp-request
RPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SendArpResponseOutput>>
sendArpResponse(SendArpResponseInput input)
Invokesend-arp-response
RPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketOutput>>
sendPacketOut(org.opendaylight.yangtools.yang.common.Uint64 dpnId, byte[] payload, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref)
void
start()
void
stop()
-
-
-
Constructor Detail
-
ArpUtilImpl
@Inject public ArpUtilImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService packetProcessingService, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.binding.api.NotificationService notificationService, OdlInterfaceRpcService odlInterfaceRpcService, org.opendaylight.infrautils.metrics.MetricProvider metricProvider)
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in classorg.opendaylight.infrautils.inject.AbstractLifecycle
-
stop
public void stop()
- Specified by:
stop
in classorg.opendaylight.infrautils.inject.AbstractLifecycle
-
getMac
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetMacOutput>> getMac(GetMacInput input)
Description copied from interface:OdlArputilService
Invokeget-mac
RPC.- Specified by:
getMac
in interfaceOdlArputilService
- Parameters:
input
- ofget-mac
- Returns:
- output of
get-mac
-
sendArpRequest
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SendArpRequestOutput>> sendArpRequest(SendArpRequestInput arpReqInput)
Description copied from interface:OdlArputilService
Invokesend-arp-request
RPC.- Specified by:
sendArpRequest
in interfaceOdlArputilService
- Parameters:
arpReqInput
- ofsend-arp-request
- Returns:
- output of
send-arp-request
-
sendPacketOut
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketOutput>> sendPacketOut(org.opendaylight.yangtools.yang.common.Uint64 dpnId, byte[] payload, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref)
-
sendArpResponse
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SendArpResponseOutput>> sendArpResponse(SendArpResponseInput input)
Description copied from interface:OdlArputilService
Invokesend-arp-response
RPC.- Specified by:
sendArpResponse
in interfaceOdlArputilService
- Parameters:
input
- ofsend-arp-response
- Returns:
- output of
send-arp-response
-
onPacketReceived
public void onPacketReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetReceived)
- Specified by:
onPacketReceived
in interfaceorg.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
-
-