Clean up and move unused code into a separate package
This commit is contained in:
parent
5caac97db1
commit
a895d8741e
|
@ -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 {
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
|
@ -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>();
|
Loading…
Reference in New Issue