summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntanas Uršulis <antanas.ursulis@gmail.com>2013-07-29 19:02:17 +0300
committerAntanas Uršulis <antanas.ursulis@gmail.com>2013-07-29 19:02:17 +0300
commit8dfea24b40c34292f20ab60975d3585094b70cb0 (patch)
treef80a5ff51470fcfc6ac8ff24412efda785ee5582 /submission.proto
parentPort simple_client to urllib2, so that we can set Content-Type (diff)
downloadlog-analysis-8dfea24b40c34292f20ab60975d3585094b70cb0.tar.gz
log-analysis-8dfea24b40c34292f20ab60975d3585094b70cb0.tar.bz2
log-analysis-8dfea24b40c34292f20ab60975d3585094b70cb0.zip
Introduce processors and PortageProcessor.
A processor is initialised with a database and storage provider. It should implement the process(request, source) method, where request is a protobuf Submission message. process() should analyse the received files, perform any required transformations and should usually store the files and create appropriate database entries. Processors are multiplexed through the 'provider' variable in the protobuf Submission message. This allows to process/analyse various types of logs differently.
Diffstat (limited to 'submission.proto')
-rw-r--r--submission.proto3
1 files changed, 2 insertions, 1 deletions
diff --git a/submission.proto b/submission.proto
index b06310f..42cf97c 100644
--- a/submission.proto
+++ b/submission.proto
@@ -4,5 +4,6 @@ message Submission {
required bytes data = 2;
}
- repeated File files = 1;
+ required string provider = 1;
+ repeated File files = 2;
}