Clean up and move unused code into a separate package

This commit is contained in:
Jan Philipp Timme 2016-12-05 16:44:07 +01:00
parent 5caac97db1
commit a895d8741e
Signed by untrusted user: JPT
GPG Key ID: 5F2C85EC6F3754B7
6 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ import org.pcap4j.core.PcapNativeException;
import com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx;
import de.hsh.inform.orientdb_project.netdata.AbstractNetdataImportService;
import de.hsh.inform.orientdb_project.orientdb.HighPerformanceKappaOrientDbNetdataImportService;
import de.hsh.inform.orientdb_project.orientdb.NodeBasedImportService;
import de.hsh.inform.orientdb_project.orientdb.OrientDbHelperService;
public class Main {
@ -28,7 +28,7 @@ public class Main {
//AbstractNetdataImportService importService = new DummyImportService(filename);
//AbstractNetdataImportService importService = new LowPerformanceOrientDbNetdataImportService(filename, ogf);
AbstractNetdataImportService importService = new HighPerformanceKappaOrientDbNetdataImportService(filename, ogf);
AbstractNetdataImportService importService = new NodeBasedImportService(filename, ogf);
// Go go gadget import service!
try {

View File

@ -1,4 +1,4 @@
package de.hsh.inform.orientdb_project.orientdb;
package de.hsh.inform.orientdb_project.UNUSED;
import java.util.HashMap;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package de.hsh.inform.orientdb_project;
package de.hsh.inform.orientdb_project.UNUSED;
import org.pcap4j.packet.ArpPacket;
import org.pcap4j.packet.EthernetPacket;

View File

@ -1,4 +1,4 @@
package de.hsh.inform.orientdb_project.orientdb;
package de.hsh.inform.orientdb_project.UNUSED;
import org.pcap4j.packet.ArpPacket;
import org.pcap4j.packet.EthernetPacket;
@ -17,11 +17,11 @@ import de.hsh.inform.orientdb_project.netdata.AbstractNetdataImportService;
/**
* This service is incomplete! DO NOT USE!
*/
public class LowPerformanceOrientDbNetdataImportService extends AbstractNetdataImportService {
public class ExampleImportService extends AbstractNetdataImportService {
private OrientGraphNoTx og;
public LowPerformanceOrientDbNetdataImportService(String filename, OrientGraphNoTx orientGraph) {
public ExampleImportService(String filename, OrientGraphNoTx orientGraph) {
super(filename);
this.og = orientGraph;
}

View File

@ -1,4 +1,4 @@
package de.hsh.inform.orientdb_project.orientdb;
package de.hsh.inform.orientdb_project.UNUSED;
import org.pcap4j.packet.ArpPacket;
import org.pcap4j.packet.EthernetPacket;

View File

@ -25,7 +25,7 @@ import de.hsh.inform.orientdb_project.model.TcpPacketModel;
import de.hsh.inform.orientdb_project.model.UdpPacketModel;
import de.hsh.inform.orientdb_project.netdata.AbstractNetdataImportService;
public class HighPerformanceKappaOrientDbNetdataImportService extends AbstractNetdataImportService {
public class NodeBasedImportService extends AbstractNetdataImportService {
private OrientGraphNoTx og;
@ -51,7 +51,7 @@ public class HighPerformanceKappaOrientDbNetdataImportService extends AbstractNe
private Vertex tcpPacketVertex;
private Vertex icmpPacketVertex;
public HighPerformanceKappaOrientDbNetdataImportService(String filename, OrientGraphNoTx orientGraph) {
public NodeBasedImportService(String filename, OrientGraphNoTx orientGraph) {
super(filename);
this.og = orientGraph;
this.knownHosts = new HashMap<String, Vertex>();