|
|
@ -67,15 +67,15 @@ public class plasmaCrawlRobotsTxt {
|
|
|
|
this.robotsTableFile = robotsTableFile;
|
|
|
|
this.robotsTableFile = robotsTableFile;
|
|
|
|
if (robotsTableFile.exists()) {
|
|
|
|
if (robotsTableFile.exists()) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000));
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000));
|
|
|
|
} catch (kelondroException e) {
|
|
|
|
} catch (kelondroException e) {
|
|
|
|
robotsTableFile.delete();
|
|
|
|
robotsTableFile.delete();
|
|
|
|
robotsTableFile.getParentFile().mkdirs();
|
|
|
|
robotsTableFile.getParentFile().mkdirs();
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000, 256, 512));
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000, 256, 512));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
robotsTableFile.getParentFile().mkdirs();
|
|
|
|
robotsTableFile.getParentFile().mkdirs();
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000, 256, 512));
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000, 256, 512));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -87,7 +87,7 @@ public class plasmaCrawlRobotsTxt {
|
|
|
|
if (!(robotsTableFile.delete())) throw new RuntimeException("cannot delete robots.txt database");
|
|
|
|
if (!(robotsTableFile.delete())) throw new RuntimeException("cannot delete robots.txt database");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
robotsTableFile.getParentFile().mkdirs();
|
|
|
|
robotsTableFile.getParentFile().mkdirs();
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000, 256, 512));
|
|
|
|
robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000, 256, 512));
|
|
|
|
} catch (IOException e){
|
|
|
|
} catch (IOException e){
|
|
|
|
serverLog.logSevere("PLASMA", "robotsTxt.resetDatabase", e);
|
|
|
|
serverLog.logSevere("PLASMA", "robotsTxt.resetDatabase", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|