Commit f6a9ad88 authored by MartinFIT's avatar MartinFIT

ProducerDemo - handling empty directory, changed ipv6 criteria to tcpAndPort criteria

parent 9abc6765
......@@ -28,12 +28,9 @@
<file leaf-file-name="StorePcapHandler.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/distributedrepository/communication/consumer/handler/StorePcapHandler.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="136">
<state relative-caret-position="0">
<caret line="8" column="26" lean-forward="false" selection-start-line="8" selection-start-column="26" selection-end-line="8" selection-end-column="26" />
<folding>
<element signature="e#4172#4363#0" expanded="true" />
<element signature="e#4362#4363#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -41,8 +38,8 @@
<file leaf-file-name="LoadPcapHandler.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/distributedrepository/communication/consumer/handler/LoadPcapHandler.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="383">
<caret line="130" column="37" lean-forward="true" selection-start-line="130" selection-start-column="37" selection-end-line="130" selection-end-column="37" />
<state relative-caret-position="264">
<caret line="130" column="37" lean-forward="false" selection-start-line="130" selection-start-column="37" selection-end-line="130" selection-end-column="37" />
<folding />
</state>
</provider>
......@@ -216,10 +213,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scratches" />
<pane id="AndroidView" />
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -341,6 +336,8 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -768,11 +765,12 @@
<workItem from="1523603376999" duration="1785000" />
<workItem from="1523625762384" duration="4693000" />
<workItem from="1524757641552" duration="4635000" />
<workItem from="1524936324643" duration="42000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="395779000" />
<option name="totallyTimeSpent" value="395821000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
......@@ -785,6 +783,7 @@
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="754" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Tool Output" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
......@@ -806,12 +805,11 @@
<window_info id="Java Enterprise" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="14" side_tool="false" content_ui="tabs" />
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Run Dashboard" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4074074" sideWeight="0.49167928" order="15" side_tool="false" content_ui="combo" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.46859902" sideWeight="0.48940998" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
<window_info id="Spring" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="14" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="12" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20499243" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3252818" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20801815" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
......@@ -820,6 +818,7 @@
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3252818" sideWeight="0.49394855" order="15" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3252818" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
......@@ -977,7 +976,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="17" lean-forward="false" selection-start-line="3" selection-start-column="17" selection-end-line="3" selection-end-column="17" />
<folding />
</state>
</provider>
</entry>
......@@ -993,7 +991,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="15" column="8" lean-forward="true" selection-start-line="15" selection-start-column="8" selection-end-line="15" selection-end-column="8" />
<folding />
</state>
</provider>
</entry>
......@@ -1067,7 +1064,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="238">
<caret line="14" column="13" lean-forward="false" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
......@@ -1075,7 +1071,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="31" lean-forward="false" selection-start-line="3" selection-start-column="31" selection-end-line="3" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
......@@ -1083,7 +1078,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="31" lean-forward="false" selection-start-line="3" selection-start-column="31" selection-end-line="3" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
......@@ -1091,7 +1085,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="10">
<caret line="2" column="73" lean-forward="false" selection-start-line="2" selection-start-column="73" selection-end-line="2" selection-end-column="73" />
<folding />
</state>
</provider>
</entry>
......@@ -1099,7 +1092,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="31" lean-forward="false" selection-start-line="3" selection-start-column="31" selection-end-line="3" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
......@@ -1115,23 +1107,14 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="197">
<caret line="183" column="64" lean-forward="true" selection-start-line="183" selection-start-column="64" selection-end-line="183" selection-end-column="64" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/TestDatabaseSpringBoot.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="196">
<caret line="30" column="0" lean-forward="true" selection-start-line="30" selection-start-column="0" selection-end-line="30" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/TestDatabaseSpringBoot.java" />
<entry file="jar://$MAVEN_REPOSITORY$/io/projectreactor/reactor-core/3.1.2.RELEASE/reactor-core-3.1.2.RELEASE.jar!/reactor/core/publisher/BlockingSingleSubscriber.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="367">
<caret line="64" column="26" lean-forward="true" selection-start-line="64" selection-start-column="26" selection-end-line="64" selection-end-column="26" />
<folding />
</state>
</provider>
</entry>
......@@ -1139,15 +1122,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248">
<caret line="306" column="34" lean-forward="false" selection-start-line="306" selection-start-column="34" selection-end-line="306" selection-end-column="34" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/TestPcap4J.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="37" column="49" lean-forward="true" selection-start-line="37" selection-start-column="49" selection-end-line="37" selection-end-column="49" />
<folding />
</state>
</provider>
</entry>
......@@ -1163,7 +1137,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190">
<caret line="380" column="18" lean-forward="false" selection-start-line="380" selection-start-column="18" selection-end-line="380" selection-end-column="18" />
<folding />
</state>
</provider>
</entry>
......@@ -1195,7 +1168,6 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="372">
<caret line="26" column="34" lean-forward="true" selection-start-line="26" selection-start-column="34" selection-end-line="26" selection-end-column="34" />
<folding />
</state>
</provider>
</entry>
......@@ -1209,19 +1181,24 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/distributedrepository/communication/consumer/handler/StorePcapHandler.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="136">
<state relative-caret-position="0">
<caret line="8" column="26" lean-forward="false" selection-start-line="8" selection-start-column="26" selection-end-line="8" selection-end-column="26" />
<folding>
<element signature="e#4172#4363#0" expanded="true" />
<element signature="e#4362#4363#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/TestPcap4J.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="629">
<caret line="37" column="49" lean-forward="true" selection-start-line="37" selection-start-column="49" selection-end-line="37" selection-end-column="49" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/distributedrepository/communication/consumer/handler/LoadPcapHandler.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="383">
<caret line="130" column="37" lean-forward="true" selection-start-line="130" selection-start-column="37" selection-end-line="130" selection-end-column="37" />
<state relative-caret-position="264">
<caret line="130" column="37" lean-forward="false" selection-start-line="130" selection-start-column="37" selection-end-line="130" selection-end-column="37" />
<folding />
</state>
</provider>
......
......@@ -27,28 +27,18 @@
<file leaf-file-name="LoadPcapProducerDemo.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/LoadPcapProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="47" column="11" lean-forward="false" selection-start-line="47" selection-start-column="11" selection-end-line="47" selection-end-column="11" />
<state relative-caret-position="216">
<caret line="65" column="5" lean-forward="true" selection-start-line="65" selection-start-column="5" selection-end-line="65" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-586">
<caret line="79" column="21" lean-forward="false" selection-start-line="79" selection-start-column="21" selection-end-line="79" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="StorePcapProducerDemo.java" pinned="false" current-in-tab="false">
<file leaf-file-name="StorePcapProducerDemo.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/StorePcapProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="208">
<caret line="27" column="17" lean-forward="false" selection-start-line="27" selection-start-column="17" selection-end-line="27" selection-end-column="17" />
<state relative-caret-position="275">
<caret line="33" column="57" lean-forward="false" selection-start-line="33" selection-start-column="57" selection-end-line="33" selection-end-column="57" />
<folding />
</state>
</provider>
......@@ -150,14 +140,12 @@
<option value="$PROJECT_DIR$/run.sh" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/producerdemo/demo/StorePcapProducerDemo.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/communication/producer/KafkaProducer.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/StorePcapProducerDemo.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/ErrorConsumer.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/communication/consumer/handler/beans/HandlerBeans.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/InetAddressTest.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/PcapProducerDemoLauncher.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/BaseProducerDemo.java" />
<option value="$PROJECT_DIR$/src/main/resources/application.properties" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/LoadPcapProducerDemo.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/CompareTest.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/communication/consumer/handler/ErrorConsumerHandler.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/communication/consumer/handler/AcknowledgementConsumerHandler.java" />
......@@ -166,6 +154,8 @@
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/beans/HandlerManagerBeans.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/ErrorConsumer.java" />
<option value="$PROJECT_DIR$/pom.xml" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/StorePcapProducerDemo.java" />
<option value="$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/LoadPcapProducerDemo.java" />
</list>
</option>
</component>
......@@ -191,7 +181,7 @@
<select />
</treeState>
</component>
<component name="ProjectFrameBounds" extendedState="7">
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="-3" />
<option name="width" value="1378" />
<option name="height" value="780" />
......@@ -211,8 +201,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scratches" />
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -271,7 +261,7 @@
</subPane>
</pane>
<pane id="AndroidView" />
<pane id="Scope" />
<pane id="Scratches" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -591,19 +581,20 @@
<workItem from="1523625664040" duration="11000" />
<workItem from="1524752778950" duration="1219000" />
<workItem from="1524758787042" duration="1794000" />
<workItem from="1524936370975" duration="393000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="150394000" />
<option name="totallyTimeSpent" value="150787000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="754" extended-state="7" />
<frame x="-8" y="-8" width="1382" height="754" extended-state="6" />
<layout>
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Tool Output" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.28180355" sideWeight="0.5060514" order="9" side_tool="true" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.12102874" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.12254161" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Statistic" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
......@@ -685,13 +676,6 @@
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk-9/lib/src.zip!/java.base/java/io/File.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190">
<caret line="1125" column="20" lean-forward="false" selection-start-line="1125" selection-start-column="20" selection-end-line="1125" selection-end-column="20" />
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk-9/lib/src.zip!/java.base/java/lang/annotation/Target.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="457">
......@@ -844,14 +828,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/PcapProducerDemoLauncher.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="587">
<caret line="35" column="12" lean-forward="false" selection-start-line="35" selection-start-column="12" selection-end-line="35" selection-end-column="12" />
<folding />
</state>
</provider>
</entry>
<entry file="jar://$MAVEN_REPOSITORY$/cz/vutbr/fit/communication/1.0/communication-1.0.jar!/cz/vutbr/fit/communication/command/DataSourceStorage.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="68">
......@@ -859,13 +835,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/BaseProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1258">
<caret line="74" column="58" lean-forward="false" selection-start-line="74" selection-start-column="58" selection-end-line="74" selection-end-column="58" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="408">
......@@ -912,14 +881,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/LoadPcapProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="47" column="11" lean-forward="false" selection-start-line="47" selection-start-column="11" selection-end-line="47" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/service/handler/AcknowledgementConsumerHandler.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="139">
......@@ -936,14 +897,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/StorePcapProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="208">
<caret line="27" column="17" lean-forward="false" selection-start-line="27" selection-start-column="17" selection-end-line="27" selection-end-column="17" />
<folding />
</state>
</provider>
</entry>
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/maven/lib/maven.jar!/schemas/maven-4.0.0.xsd">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="197">
......@@ -970,12 +923,52 @@
</entry>
<entry file="file://$PROJECT_DIR$/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-586">
<state relative-caret-position="17">
<caret line="79" column="21" lean-forward="false" selection-start-line="79" selection-start-column="21" selection-end-line="79" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/PcapProducerDemoLauncher.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="304">
<caret line="35" column="44" lean-forward="false" selection-start-line="35" selection-start-column="44" selection-end-line="35" selection-end-column="44" />
<folding />
</state>
</provider>
</entry>
<entry file="jar://C:/Program Files/Java/jdk-9/lib/src.zip!/java.base/java/io/File.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="197">
<caret line="273" column="26" lean-forward="false" selection-start-line="273" selection-start-column="26" selection-end-line="273" selection-end-column="26" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/BaseProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="265">
<caret line="82" column="37" lean-forward="false" selection-start-line="82" selection-start-column="26" selection-end-line="82" selection-end-column="37" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/LoadPcapProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="216">
<caret line="65" column="5" lean-forward="true" selection-start-line="65" selection-start-column="5" selection-end-line="65" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/cz/vutbr/fit/producerdemo/demo/StorePcapProducerDemo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="33" column="57" lean-forward="false" selection-start-line="33" selection-start-column="57" selection-end-line="33" selection-end-column="57" />
<folding />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
......
......@@ -31,7 +31,7 @@ public class LoadPcapProducerDemo extends BaseProducerDemo {
UUID requestId = UUID.randomUUID();
DataSource dataSource = createDataSource(dataSourceStorage, requestId.toString(), Boolean.FALSE);
KafkaRequest request = buildKafkaRequestWithCriterias(dataSource, Command.LOAD_PCAP, requestId, ipv6Criteria());
KafkaRequest request = buildKafkaRequestWithCriterias(dataSource, Command.LOAD_PCAP, requestId, tcpAndPortCriteria());
byte[] payload = null;
producer.produce(inputTopic, request, payload,
......@@ -43,14 +43,6 @@ public class LoadPcapProducerDemo extends BaseProducerDemo {
}
}
private List<KafkaCriteria> onlyOneByRefId() {
List<KafkaCriteria> criteria = new ArrayList<>();
UUID refId = UUID.fromString("8659c8f5-313c-11e8-b0c6-77a556ade544");
KafkaCriteria refIdCriteria = new KafkaCriteria.Builder().field("refId").operation(MetadataOperation.EQ).value(refId).build();
criteria.add(refIdCriteria);
return criteria;
}
private List<KafkaCriteria> ipv6Criteria() {
List<KafkaCriteria> criteria = new ArrayList<>();
KafkaCriteria ipVersionName = new KafkaCriteria.Builder()
......@@ -65,8 +57,8 @@ public class LoadPcapProducerDemo extends BaseProducerDemo {
.operation(MetadataOperation.EQ)
.value(InetAddress.getByName("ff02:0:0:0:0:0:0:c").getHostAddress())
.build();
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (UnknownHostException exception) {
handleError(exception);
}
criteria.add(ipVersionName);
criteria.add(dstIpAddress);
......
......@@ -9,7 +9,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import java.io.File;
import java.util.Arrays;
......@@ -29,7 +28,12 @@ public class StorePcapProducerDemo extends BaseProducerDemo {
public void runMultipleProducer(String directoryName) {
File directory = new File(directoryName);
Assert.notNull(directory, "Directory doesn't exist");
if (!directory.isDirectory() || directory.listFiles().length == 0) {
LOGGER.warn(String.format("%s is not a directory or is empty.", directoryName));
LOGGER.warn("Stopping StorePcap UseCase...");
return;
}
// TODO: Will be removed
initStatsForDirectory(directory);
......
......@@ -989,7 +989,7 @@ Je ale potřeba mít dostatečnou velikost paměti RAM k~načtení aktivních p
Většina konfigurací, kde je Kafka nasazena, nevyžaduje značný výkon procesoru. Výjimkou je však případ, kdy je zapnuto \texttt{SSL}, požadavky na výkon CPU potom mohou vzrůst. Je doporučeno zvolit moderní procesor s~více jádry, běžný Kafka cluster využije 24 jader. Větší počet jader má větší význam než vyšší frekvence procesoru.
Je také doporučeno nainstalovat více disků pro získání optimální propustnosti a~nesdílet tyto disky s~jinými aplikacemi nebo aktivitami operačního systému, aby byla zaručena nízká latence \cite{kafkaBestPractises}. Jisté výhody mají i~SSD disky, případně zapojení disků v~\texttt{RAID}.
\noindent Je také doporučeno nainstalovat více disků pro získání optimální propustnosti a~nesdílet tyto disky s~jinými aplikacemi nebo aktivitami operačního systému, aby byla zaručena nízká latence \cite{kafkaBestPractises}. Jisté výhody mají i~SSD disky, případně zapojení disků v~\texttt{RAID}.
Důležitou součástí distribuovaného systému je rychlá a~spolehlivá síť. Nízká latence zajišťuje, aby mohly uzly jednoduše komunikovat. Moderní ethernetová připojení s~rychlostí 1 Gb/s, či 10 Gb/s jsou dostatečná. Nedoporučuje se provozovat clustery, jejichž uzly se nachází v~geograficky vzdálených lokacích.
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment