Topology ProtoBuf refactoring
- Renamed definition and generated file to better explain what it defines.
- RCProtos.java -> Topology.java
- ramcloud.proto -> topology.proto
- Moved generated code to core/datastore/serializers package.
- Add memo about generating Java source from .proto definition.
- Update references
- Updated exclusion rules
Change-Id: I5ae2d70c81987afaa621f10fa4b40a3f314a0ebb
diff --git a/src/main/protobuf/README.md b/src/main/protobuf/README.md
new file mode 100644
index 0000000..fd78944
--- /dev/null
+++ b/src/main/protobuf/README.md
@@ -0,0 +1,20 @@
+
+Generating Java source code after modifing protobuf definition
+--------------------------------------------------------------
+
+1. Check to see you have the correct protoc version
+
+ $ protoc --version
+
+ Confirm that the result version is compatible with the version
+ specified in pom.xml.
+
+2. Generate Java source code.
+
+ $ protoc topology.proto --java_out=${ONOS_HOME}/src/main/java/
+
+ Replace `--java_out` path to root Java source directory.
+ e.g., If you're in the same directory as this file:
+
+ $ protoc topology.proto --java_out=../java/
+
diff --git a/src/main/protobuf/ramcloud.proto b/src/main/protobuf/topology.proto
similarity index 78%
rename from src/main/protobuf/ramcloud.proto
rename to src/main/protobuf/topology.proto
index 35c63d8..191488d 100644
--- a/src/main/protobuf/ramcloud.proto
+++ b/src/main/protobuf/topology.proto
@@ -1,7 +1,7 @@
-package RCProtos;
+package topology;
-option java_package = "net.onrc.onos.core.datastore";
-option java_outer_classname = "RCProtos";
+option java_package = "net.onrc.onos.core.datastore.serializers";
+option java_outer_classname = "Topology";
message SwitchProperty {
required int64 dpid = 1;