summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/implementation.tex10
-rw-r--r--sources/listing_schema.tex17
-rw-r--r--sources/listing_sinks.tex (renamed from sources/listings.tex)0
-rw-r--r--style/style.tex2
4 files changed, 26 insertions, 3 deletions
diff --git a/content/implementation.tex b/content/implementation.tex
index d5dd5c1..e2fd23a 100644
--- a/content/implementation.tex
+++ b/content/implementation.tex
@@ -56,8 +56,14 @@ For a specific overview of advantages of \code{OpenDC} and a thorough comparison
\end{figure}
\section{Data Flow}\label{ss:data_flow}
-\input{sources/listings.tex}
-\ipsum[1-2]
+\input{sources/listing_sinks.tex}
+
+
+\ipsum[1-4]
+\begin{figure}[t]
+ \input{sources/listing_schema.tex}
+\end{figure}
+
diff --git a/sources/listing_schema.tex b/sources/listing_schema.tex
new file mode 100644
index 0000000..c3130d6
--- /dev/null
+++ b/sources/listing_schema.tex
@@ -0,0 +1,17 @@
+\begin{lstlisting}[caption=The Redis and PostgreSQL schema (\texttt{schema.proto} file)., label={lst:protobuf-schema}]
+syntax = "proto3";
+
+package proto;
+
+option java_package = "org.opendc.common";
+option java_outer_classname = "ProtobufMetrics";
+
+message ProtoExport {
+ string timestamp = 1;
+ string host_id = 2;
+ int32 tasksactive = 3;
+ double cpuutilization = 4;
+ double energyusage = 5;
+ double uptime = 6;
+ double downtime = 7;
+}\end{lstlisting}
diff --git a/sources/listings.tex b/sources/listing_sinks.tex
index 89cf05a..89cf05a 100644
--- a/sources/listings.tex
+++ b/sources/listing_sinks.tex
diff --git a/style/style.tex b/style/style.tex
index f1b06a1..915e4a4 100644
--- a/style/style.tex
+++ b/style/style.tex
@@ -52,7 +52,7 @@
showspaces=false,
showstringspaces=false,
showtabs=false,
- tabsize=2
+ tabsize=2,
}
\lstset{style=mystyle}