blob: cae6a7df7643c1c6d3ba3053479355fef99e675d [file] [log] [blame]
TeruU3c049c42014-04-15 10:13:25 -07001package net.onrc.onos.apps.proxyarp;
2
3
4/**
5 * Inter-instance notification that an ARP Cache status has been changed.
6 */
7public class ArpCacheNotification {
8
9 private byte[] targetAddress;
10 private byte[] targetMacAddress;
11
12 private ArpCacheNotification() {
13 targetAddress = null;
14 targetMacAddress = null;
15 }
16
17 /**
18 * Class constructor.
19 *
20 * @param targetAddress IP address
21 * @param targetMacAddress MAC address
22 */
23 public ArpCacheNotification(byte[] targetAddress,
24 byte[] targetMacAddress) {
Ray Milkey149693c2014-05-20 14:58:53 -070025 this.targetAddress = targetAddress.clone();
26 this.targetMacAddress = targetMacAddress.clone();
TeruU3c049c42014-04-15 10:13:25 -070027 }
28
29 /**
30 * Returns the IP address.
31 *
32 * @return the IP address
33 */
34 public byte[] getTargetAddress() {
Ray Milkey149693c2014-05-20 14:58:53 -070035 return targetAddress.clone();
TeruU3c049c42014-04-15 10:13:25 -070036 }
37
38 /**
39 * Returns the MAC address.
40 *
41 * @return the MAC address
42 */
43 public byte[] getTargetMacAddress() {
Ray Milkey149693c2014-05-20 14:58:53 -070044 return targetMacAddress.clone();
TeruU3c049c42014-04-15 10:13:25 -070045 }
46
47}