瀏覽代碼

first commit

master
우인혜 6 年之前
當前提交
819ebe08c9

+ 44
- 0
.classpath 查看文件

@@ -0,0 +1,44 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
+		<attributes>
5
+			<attribute name="optional" value="true"/>
6
+			<attribute name="maven.pomderived" value="true"/>
7
+		</attributes>
8
+	</classpathentry>
9
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10
+		<attributes>
11
+			<attribute name="optional" value="true"/>
12
+			<attribute name="maven.pomderived" value="true"/>
13
+			<attribute name="test" value="true"/>
14
+		</attributes>
15
+	</classpathentry>
16
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
17
+		<attributes>
18
+			<attribute name="maven.pomderived" value="true"/>
19
+		</attributes>
20
+	</classpathentry>
21
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
22
+		<attributes>
23
+			<attribute name="maven.pomderived" value="true"/>
24
+		</attributes>
25
+	</classpathentry>
26
+	<classpathentry kind="src" path="target/generated-sources/annotations">
27
+		<attributes>
28
+			<attribute name="optional" value="true"/>
29
+			<attribute name="maven.pomderived" value="true"/>
30
+			<attribute name="ignore_optional_problems" value="true"/>
31
+			<attribute name="m2e-apt" value="true"/>
32
+		</attributes>
33
+	</classpathentry>
34
+	<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
35
+		<attributes>
36
+			<attribute name="optional" value="true"/>
37
+			<attribute name="maven.pomderived" value="true"/>
38
+			<attribute name="ignore_optional_problems" value="true"/>
39
+			<attribute name="m2e-apt" value="true"/>
40
+			<attribute name="test" value="true"/>
41
+		</attributes>
42
+	</classpathentry>
43
+	<classpathentry kind="output" path="target/classes"/>
44
+</classpath>

+ 23
- 0
.project 查看文件

@@ -0,0 +1,23 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>my-app</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.jdt.core.javabuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+		<buildCommand>
14
+			<name>org.eclipse.m2e.core.maven2Builder</name>
15
+			<arguments>
16
+			</arguments>
17
+		</buildCommand>
18
+	</buildSpec>
19
+	<natures>
20
+		<nature>org.eclipse.jdt.core.javanature</nature>
21
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
22
+	</natures>
23
+</projectDescription>

+ 4
- 0
.settings/org.eclipse.core.resources.prefs 查看文件

@@ -0,0 +1,4 @@
1
+eclipse.preferences.version=1
2
+encoding//src/main/java=UTF-8
3
+encoding//src/test/java=UTF-8
4
+encoding/<project>=UTF-8

+ 2
- 0
.settings/org.eclipse.jdt.apt.core.prefs 查看文件

@@ -0,0 +1,2 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.apt.aptEnabled=false

+ 9
- 0
.settings/org.eclipse.jdt.core.prefs 查看文件

@@ -0,0 +1,9 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3
+org.eclipse.jdt.core.compiler.compliance=1.7
4
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
6
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
8
+org.eclipse.jdt.core.compiler.release=disabled
9
+org.eclipse.jdt.core.compiler.source=1.7

+ 4
- 0
.settings/org.eclipse.m2e.core.prefs 查看文件

@@ -0,0 +1,4 @@
1
+activeProfiles=
2
+eclipse.preferences.version=1
3
+resolveWorkspaceProjects=true
4
+version=1

+ 11
- 0
.vscode/launch.json 查看文件

@@ -0,0 +1,11 @@
1
+{
2
+    "configurations": [
3
+        {
4
+            "type": "java",
5
+            "name": "CodeLens (Launch) - App",
6
+            "request": "launch",
7
+            "mainClass": "com.mycompany.app.App",
8
+            "projectName": "my-app"
9
+        }
10
+    ]
11
+}

+ 3
- 0
.vscode/settings.json 查看文件

@@ -0,0 +1,3 @@
1
+{
2
+    "java.configuration.updateBuildConfiguration": "interactive"
3
+}

+ 19
- 0
2016_05_05_05.txt 查看文件

@@ -0,0 +1,19 @@
1
+{"svType":"flw_12", "lid":"1565429429882548858", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.21", "nport":37657, "eport":2181, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":9072, "in_pkt":0, "out_pkt":124, "url":""}
2
+{"svType":"flw_12", "lid":"1565429429882539122", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.22", "nport":46375, "eport":5015, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":220, "in_pkt":0, "out_pkt":2, "url":""}
3
+{"svType":"flw_12", "lid":"1565429429882539114", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.22", "nport":57345, "eport":5015, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":244, "in_pkt":0, "out_pkt":2, "url":""}
4
+{"svType":"flw_12", "lid":"1565429429864235024", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.8", "eip":"192.168.0.4", "nport":40456, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
5
+{"svType":"flw_12", "lid":"1565429429864235023", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.5", "eip":"192.168.0.4", "nport":49698, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
6
+{"svType":"flw_12", "lid":"1565429429864235025", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.7", "eip":"192.168.0.4", "nport":55663, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
7
+{"svType":"flw_12", "lid":"1565429429864235043", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.7", "eip":"192.168.0.4", "nport":34895, "eport":9000, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":23002, "in_pkt":0, "out_pkt":88, "url":""}
8
+{"svType":"flw_12", "lid":"1565429429864235041", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.8", "eip":"192.168.0.4", "nport":47798, "eport":9000, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":23002, "in_pkt":0, "out_pkt":88, "url":""}
9
+{"svType":"flw_12", "lid":"1565429429882548683", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.22", "nport":37782, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2164, "in_pkt":0, "out_pkt":8, "url":""}
10
+{"svType":"flw_12", "lid":"1565429429882548929", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.22", "eip":"192.168.0.23", "nport":38375, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2228, "in_pkt":0, "out_pkt":8, "url":""}
11
+{"svType":"flw_12", "lid":"1565429429882548862", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.22", "nport":40900, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8160, "in_pkt":0, "out_pkt":40, "url":""}
12
+{"svType":"flw_12", "lid":"1565429429882548658", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.22", "nport":42355, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2296, "in_pkt":0, "out_pkt":10, "url":""}
13
+{"svType":"flw_12", "lid":"1565429429882548927", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.23", "nport":43175, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2228, "in_pkt":0, "out_pkt":8, "url":""}
14
+{"svType":"flw_12", "lid":"1565429429882548933", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.23", "nport":47072, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8800, "in_pkt":0, "out_pkt":40, "url":""}
15
+{"svType":"flw_12", "lid":"1565429429882548652", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.22", "eip":"192.168.0.21", "nport":49297, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2424, "in_pkt":0, "out_pkt":10, "url":""}
16
+{"svType":"flw_12", "lid":"1565429429882548864", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.21", "nport":50316, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8800, "in_pkt":0, "out_pkt":40, "url":""}
17
+{"svType":"flw_12", "lid":"1565429429882548685", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.21", "nport":53035, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2292, "in_pkt":0, "out_pkt":8, "url":""}
18
+{"svType":"flw_12", "lid":"1565429429864235044", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.7", "nport":9000, "eport":34895, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":218, "in_pkt":0, "out_pkt":2, "url":""}
19
+{"svType":"flw_12", "lid":"1565429429882548859", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.4", "nport":2181, "eport":37657, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":172, "in_pkt":0, "out_pkt":2, "url":""}

+ 81
- 0
pom.xml 查看文件

@@ -0,0 +1,81 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+  <modelVersion>4.0.0</modelVersion>
6
+
7
+  <groupId>com.mycompany.app</groupId>
8
+  <artifactId>my-app</artifactId>
9
+  <version>1.0-SNAPSHOT</version>
10
+
11
+  <name>my-app</name>
12
+  <!-- FIXME change it to the project's website -->
13
+  <url>http://www.example.com</url>
14
+
15
+  <properties>
16
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
+    <maven.compiler.source>1.7</maven.compiler.source>
18
+    <maven.compiler.target>1.7</maven.compiler.target>
19
+  </properties>
20
+
21
+  <dependencies>
22
+    <dependency>
23
+      <groupId>junit</groupId>
24
+      <artifactId>junit</artifactId>
25
+      <version>4.11</version>
26
+      <scope>test</scope>
27
+    </dependency>
28
+    <dependency>
29
+      <groupId>com.googlecode.json-simple</groupId>
30
+      <artifactId>json-simple</artifactId>
31
+      <version>1.1</version>
32
+    </dependency>
33
+  </dependencies>
34
+
35
+
36
+  <build>
37
+    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
38
+      <plugins>
39
+        <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
40
+        <plugin>
41
+          <artifactId>maven-clean-plugin</artifactId>
42
+          <version>3.1.0</version>
43
+        </plugin>
44
+        <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
45
+        <plugin>
46
+          <artifactId>maven-resources-plugin</artifactId>
47
+          <version>3.0.2</version>
48
+        </plugin>
49
+        <plugin>
50
+          <artifactId>maven-compiler-plugin</artifactId>
51
+          <version>3.8.0</version>
52
+        </plugin>
53
+        <plugin>
54
+          <artifactId>maven-surefire-plugin</artifactId>
55
+          <version>2.22.1</version>
56
+        </plugin>
57
+        <plugin>
58
+          <artifactId>maven-jar-plugin</artifactId>
59
+          <version>3.0.2</version>
60
+        </plugin>
61
+        <plugin>
62
+          <artifactId>maven-install-plugin</artifactId>
63
+          <version>2.5.2</version>
64
+        </plugin>
65
+        <plugin>
66
+          <artifactId>maven-deploy-plugin</artifactId>
67
+          <version>2.8.2</version>
68
+        </plugin>
69
+        <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
70
+        <plugin>
71
+          <artifactId>maven-site-plugin</artifactId>
72
+          <version>3.7.1</version>
73
+        </plugin>
74
+        <plugin>
75
+          <artifactId>maven-project-info-reports-plugin</artifactId>
76
+          <version>3.0.0</version>
77
+        </plugin>
78
+      </plugins>
79
+    </pluginManagement>
80
+  </build>
81
+</project>

+ 19
- 0
src/main/java/com/mycompany/app/2016_05_05_05.txt 查看文件

@@ -0,0 +1,19 @@
1
+{"svType":"flw_12", "lid":"1565429429882548858", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.21", "nport":37657, "eport":2181, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":9072, "in_pkt":0, "out_pkt":124, "url":""}
2
+{"svType":"flw_12", "lid":"1565429429882539122", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.22", "nport":46375, "eport":5015, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":220, "in_pkt":0, "out_pkt":2, "url":""}
3
+{"svType":"flw_12", "lid":"1565429429882539114", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.22", "nport":57345, "eport":5015, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":244, "in_pkt":0, "out_pkt":2, "url":""}
4
+{"svType":"flw_12", "lid":"1565429429864235024", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.8", "eip":"192.168.0.4", "nport":40456, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
5
+{"svType":"flw_12", "lid":"1565429429864235023", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.5", "eip":"192.168.0.4", "nport":49698, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
6
+{"svType":"flw_12", "lid":"1565429429864235025", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.7", "eip":"192.168.0.4", "nport":55663, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
7
+{"svType":"flw_12", "lid":"1565429429864235043", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.7", "eip":"192.168.0.4", "nport":34895, "eport":9000, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":23002, "in_pkt":0, "out_pkt":88, "url":""}
8
+{"svType":"flw_12", "lid":"1565429429864235041", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.8", "eip":"192.168.0.4", "nport":47798, "eport":9000, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":23002, "in_pkt":0, "out_pkt":88, "url":""}
9
+{"svType":"flw_12", "lid":"1565429429882548683", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.22", "nport":37782, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2164, "in_pkt":0, "out_pkt":8, "url":""}
10
+{"svType":"flw_12", "lid":"1565429429882548929", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.22", "eip":"192.168.0.23", "nport":38375, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2228, "in_pkt":0, "out_pkt":8, "url":""}
11
+{"svType":"flw_12", "lid":"1565429429882548862", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.22", "nport":40900, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8160, "in_pkt":0, "out_pkt":40, "url":""}
12
+{"svType":"flw_12", "lid":"1565429429882548658", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.22", "nport":42355, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2296, "in_pkt":0, "out_pkt":10, "url":""}
13
+{"svType":"flw_12", "lid":"1565429429882548927", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.23", "nport":43175, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2228, "in_pkt":0, "out_pkt":8, "url":""}
14
+{"svType":"flw_12", "lid":"1565429429882548933", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.23", "nport":47072, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8800, "in_pkt":0, "out_pkt":40, "url":""}
15
+{"svType":"flw_12", "lid":"1565429429882548652", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.22", "eip":"192.168.0.21", "nport":49297, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2424, "in_pkt":0, "out_pkt":10, "url":""}
16
+{"svType":"flw_12", "lid":"1565429429882548864", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.21", "nport":50316, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8800, "in_pkt":0, "out_pkt":40, "url":""}
17
+{"svType":"flw_12", "lid":"1565429429882548685", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.21", "nport":53035, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2292, "in_pkt":0, "out_pkt":8, "url":""}
18
+{"svType":"flw_12", "lid":"1565429429864235044", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.7", "nport":9000, "eport":34895, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":218, "in_pkt":0, "out_pkt":2, "url":""}
19
+{"svType":"flw_12", "lid":"1565429429882548859", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.4", "nport":2181, "eport":37657, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":172, "in_pkt":0, "out_pkt":2, "url":""}

+ 59
- 0
src/main/java/com/mycompany/app/App.java 查看文件

@@ -0,0 +1,59 @@
1
+package com.mycompany.app;
2
+import java.io.BufferedReader;
3
+import java.io.File;
4
+import java.io.FileNotFoundException;
5
+import java.io.FileReader;
6
+import java.io.IOException;
7
+import java.util.Vector;
8
+
9
+//import org.json.simple.JSONArray;
10
+import org.json.simple.JSONObject;
11
+import org.json.simple.parser.JSONParser;
12
+import org.json.simple.parser.ParseException;
13
+
14
+/**
15
+ * Hello world!
16
+ *
17
+ */
18
+public class App 
19
+{
20
+    public static void main(String[] args) {        
21
+        File file = new File("2016_05_05_05.txt");   // 파일 변수 file을 만든다
22
+        Vector<String> IP = new Vector<String>(10);
23
+        try {
24
+            // BufferedReader 변수에 file을 넣는다
25
+            BufferedReader reader = new BufferedReader(new FileReader(file));
26
+            // 파일을 한줄씩 읽어 넣기 위한 변수 line
27
+            String line = null;
28
+            // 한 줄씩 읽어서 line에 넣은 후 null이 아니면 실행
29
+            while( (line = reader.readLine()) != null ) {
30
+                JSONParser jsonParser = new JSONParser();
31
+                JSONObject jsonObject = new JSONObject();
32
+                try {
33
+                    jsonObject = (JSONObject) jsonParser.parse(line);
34
+                } catch (ParseException e) {
35
+                    // TODO Auto-generated catch block
36
+                    e.printStackTrace();
37
+                }
38
+
39
+                System.out.println("eip:"+jsonObject.get("eip"));
40
+                if(!IP.contains(jsonObject.get("eip"))){
41
+                    IP.addElement((String)jsonObject.get("eip"));
42
+                    try {
43
+                        Class<?> clasis = Class.forName("Node");
44
+                        //Node server = (Node) clasis.newInstance();
45
+                    } catch (ClassNotFoundException e) {
46
+                    } catch (InstantiationException e) {
47
+                    } catch (IllegalAccessException e) {
48
+                    }
49
+                }
50
+    
51
+            }
52
+            reader.close();
53
+        } catch (FileNotFoundException fnf) {
54
+            fnf.printStackTrace();
55
+        } catch( IOException e) {
56
+            e.printStackTrace();
57
+        }
58
+    }
59
+}

+ 16
- 0
src/main/java/com/mycompany/app/Node.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.mycompany.app;
2
+
3
+class Node {
4
+    String eip; //  ip
5
+
6
+    double vulnerability;   //  inbound value
7
+    double aggression;      //  outbound value
8
+    double co_efficient;
9
+
10
+    long Nips[];    //  inbound ip
11
+    long Eips[];    //  outbound ip
12
+
13
+    long total_pkt;
14
+    long total_bytes;
15
+    Integer total_port_counts;
16
+}

+ 20
- 0
src/test/java/com/mycompany/app/AppTest.java 查看文件

@@ -0,0 +1,20 @@
1
+package com.mycompany.app;
2
+
3
+import static org.junit.Assert.assertTrue;
4
+
5
+import org.junit.Test;
6
+
7
+/**
8
+ * Unit test for simple App.
9
+ */
10
+public class AppTest 
11
+{
12
+    /**
13
+     * Rigorous Test :-)
14
+     */
15
+    @Test
16
+    public void shouldAnswerWithTrue()
17
+    {
18
+        assertTrue( true );
19
+    }
20
+}

+ 19
- 0
target/classes/com/mycompany/app/2016_05_05_05.txt 查看文件

@@ -0,0 +1,19 @@
1
+{"svType":"flw_12", "lid":"1565429429882548858", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.21", "nport":37657, "eport":2181, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":9072, "in_pkt":0, "out_pkt":124, "url":""}
2
+{"svType":"flw_12", "lid":"1565429429882539122", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.22", "nport":46375, "eport":5015, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":220, "in_pkt":0, "out_pkt":2, "url":""}
3
+{"svType":"flw_12", "lid":"1565429429882539114", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.22", "nport":57345, "eport":5015, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":244, "in_pkt":0, "out_pkt":2, "url":""}
4
+{"svType":"flw_12", "lid":"1565429429864235024", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.8", "eip":"192.168.0.4", "nport":40456, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
5
+{"svType":"flw_12", "lid":"1565429429864235023", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.5", "eip":"192.168.0.4", "nport":49698, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
6
+{"svType":"flw_12", "lid":"1565429429864235025", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.7", "eip":"192.168.0.4", "nport":55663, "eport":8025, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":37200, "in_pkt":0, "out_pkt":240, "url":""}
7
+{"svType":"flw_12", "lid":"1565429429864235043", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.7", "eip":"192.168.0.4", "nport":34895, "eport":9000, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":23002, "in_pkt":0, "out_pkt":88, "url":""}
8
+{"svType":"flw_12", "lid":"1565429429864235041", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.8", "eip":"192.168.0.4", "nport":47798, "eport":9000, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":23002, "in_pkt":0, "out_pkt":88, "url":""}
9
+{"svType":"flw_12", "lid":"1565429429882548683", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.22", "nport":37782, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2164, "in_pkt":0, "out_pkt":8, "url":""}
10
+{"svType":"flw_12", "lid":"1565429429882548929", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.22", "eip":"192.168.0.23", "nport":38375, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2228, "in_pkt":0, "out_pkt":8, "url":""}
11
+{"svType":"flw_12", "lid":"1565429429882548862", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.22", "nport":40900, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8160, "in_pkt":0, "out_pkt":40, "url":""}
12
+{"svType":"flw_12", "lid":"1565429429882548658", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.22", "nport":42355, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2296, "in_pkt":0, "out_pkt":10, "url":""}
13
+{"svType":"flw_12", "lid":"1565429429882548927", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.23", "nport":43175, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2228, "in_pkt":0, "out_pkt":8, "url":""}
14
+{"svType":"flw_12", "lid":"1565429429882548933", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.23", "nport":47072, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8800, "in_pkt":0, "out_pkt":40, "url":""}
15
+{"svType":"flw_12", "lid":"1565429429882548652", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.22", "eip":"192.168.0.21", "nport":49297, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2424, "in_pkt":0, "out_pkt":10, "url":""}
16
+{"svType":"flw_12", "lid":"1565429429882548864", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.21", "nport":50316, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":8800, "in_pkt":0, "out_pkt":40, "url":""}
17
+{"svType":"flw_12", "lid":"1565429429882548685", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.23", "eip":"192.168.0.21", "nport":53035, "eport":9092, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":2292, "in_pkt":0, "out_pkt":8, "url":""}
18
+{"svType":"flw_12", "lid":"1565429429864235044", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.4", "eip":"192.168.0.7", "nport":9000, "eport":34895, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":218, "in_pkt":0, "out_pkt":2, "url":""}
19
+{"svType":"flw_12", "lid":"1565429429882548859", "s_date":"2016/05/05 05:52:59", "e_date":"2016/05/05 05:52:59", "norg":2, "eorg":999, "nip":"192.168.0.21", "eip":"192.168.0.4", "nport":2181, "eport":37657, "proto":6, "app_grp":0, "app":0, "in_byte":0, "out_byte":172, "in_pkt":0, "out_pkt":2, "url":""}

二進制
target/classes/com/mycompany/app/App.class 查看文件


二進制
target/classes/com/mycompany/app/Node.class 查看文件


二進制
target/test-classes/com/mycompany/app/AppTest.class 查看文件


Loading…
取消
儲存