GitHub PullRequestReviewCommentEvent at 2014-03-21 19:26:30
Repository: Malhar
Actor: davidyan-malhar
Payload: {"comment":{"url":"https://api.github.com/repos/DataTorrent/Malhar/pulls/comments/10850876","id":10850876,"diff_hunk":"@@ -0,0 +1,147 @@\n+/*\n+ * Copyright (c) 2014 DataTorrent, Inc. ALL Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package com.datatorrent.contrib.apachelog;\n+\n+import java.util.Random;\n+\n+import com.datatorrent.api.Context.OperatorContext;\n+import com.datatorrent.api.DefaultOutputPort;\n+import com.datatorrent.api.InputOperator;\n+\n+/**\n+ * This operator simulates the apache logs\n+ * \n+ */\n+public class ApacheLogInputGenerator implements InputOperator\n+{\n+\n+  private static String[] ipAddress = { \"12.226.201.2\", \"173.245.93.28\", \"173.54.98.162\", \"176.31.213.97\", \"199.182.120.18\", \"199.182.120.35\", \"199.182.120.6\", \"199.182.120.7\", \"199.21.99.81\", \"50.56.142.138\", \"50.57.61.5\", \"5.10.83.84\", \"66.249.73.148\", \"66.249.73.189\", \"78.136.44.7\" };\n+  private static String[] agents = { \"\\\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31\\\"\", \"\\\"Apache-HttpClient/4.2.5 (java 1.5)\\\"\", \"\\\"Apache-Maven/3.1.1 (Java 1.6.0_65; Mac OS X 10.9.2)\\\"\", \"\\\"Apache-Maven/3.1.1 (Java 1.7.0_51; Linux 2.6.32-042stab079.5)\\\"\" };\n+  private static String[] url = { \"\\\"GET /maven/content/repositories/thirdparty/com/datatorrent/dt-stram/0.9.4-SNAPSHOT/maven-metadata.xml HTTP/1.1\\\"\", \"\\\"GET /favicon.ico HTTP/1.1\\\"\", \"\\\"GET /favicon.ico HTTP/1.1\\\"\", \"\\\"GET /docs/apidocs/com/datatorrent/lib/multiwindow/class-use/MultiWindowSumKeyVal.html HTTP/1.1\\\"\", \"\\\"GET /maven/content/repositories/releases/com/datatorrent/dt-netlet/0.9.4-SNAPSHOT/maven-metadata.xml HTTP/1.1\\\"\" };","path":"contrib/src/main/java/com/datatorrent/contrib/apachelog/ApacheLogInputGenerator.java","position":33,"original_position":33,"commit_id":"48f390e45276f96af7a0f205f52244adc538556f","original_commit_id":"48f390e45276f96af7a0f205f52244adc538556f","user":{"login":"davidyan-malhar","id":4419148,"avatar_url":"https://avatars.githubusercontent.com/u/4419148?","gravatar_id":"d699664e92f6a51582e60ff040569a49","url":"https://api.github.com/users/davidyan-malhar","html_url":"https://github.com/davidyan-malhar","followers_url":"https://api.github.com/users/davidyan-malhar/followers","following_url":"https://api.github.com/users/davidyan-malhar/following{/other_user}","gists_url":"https://api.github.com/users/davidyan-malhar/gists{/gist_id}","starred_url":"https://api.github.com/users/davidyan-malhar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidyan-malhar/subscriptions","organizations_url":"https://api.github.com/users/davidyan-malhar/orgs","repos_url":"https://api.github.com/users/davidyan-malhar/repos","events_url":"https://api.github.com/users/davidyan-malhar/events{/privacy}","received_events_url":"https://api.github.com/users/davidyan-malhar/received_events","type":"User","site_admin":false},"body":"The URLs and the IP addresses should be a lot more and should be read from a file.  We probably should not use our own URLs either.","created_at":"2014-03-21T19:26:30Z","updated_at":"2014-03-21T19:26:30Z","html_url":"https://github.com/DataTorrent/Malhar/pull/834#discussion_r10850876","pull_request_url":"https://api.github.com/repos/DataTorrent/Malhar/pulls/834","_links":{"self":{"href":"https://api.github.com/repos/DataTorrent/Malhar/pulls/comments/10850876"},"html":{"href":"https://github.com/DataTorrent/Malhar/pull/834#discussion_r10850876"},"pull_request":{"href":"https://api.github.com/repos/DataTorrent/Malhar/pulls/834"}}}}