Small refactoring to support new packet-out API

Change-Id: I33094045b074fc00352ec1ba62e18e690dc3f3ad
diff --git a/src/main/java/net/onrc/onos/core/packetservice/PacketOutNotification.java b/src/main/java/net/onrc/onos/core/packetservice/PacketOutNotification.java
new file mode 100644
index 0000000..30e3986
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/packetservice/PacketOutNotification.java
@@ -0,0 +1,34 @@
+package net.onrc.onos.core.packetservice;
+
+import java.io.Serializable;
+import java.util.Arrays;
+
+/**
+ * A PacketOutNotification contains data sent between ONOS instances that
+ * directs other instances to send a packet out a set of ports. This is an
+ * abstract base class that will be subclassed by specific types of
+ * notifications.
+ */
+public abstract class PacketOutNotification implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private final byte[] packet;
+
+    /**
+     * Class constructor.
+     *
+     * @param packet the packet data to send in the packet-out
+     */
+    public PacketOutNotification() {
+        packet = null;
+    }
+
+    public PacketOutNotification(byte[] packet) {
+        this.packet = Arrays.copyOf(packet, packet.length);
+    }
+
+    public byte[] getPacketData() {
+        return Arrays.copyOf(packet, packet.length);
+    }
+}