- PerformanceMemory_p.html is valid XHTML again

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3440 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
karlchenofhell 18 years ago
parent 3499a364ef
commit 03c5906ae7

@ -48,8 +48,6 @@
// javac -classpath .:../classes ConfigRobotsTxt_p.java // javac -classpath .:../classes ConfigRobotsTxt_p.java
// if the shell's current path is HTROOT // if the shell's current path is HTROOT
import java.util.regex.Pattern;
import de.anomic.http.httpHeader; import de.anomic.http.httpHeader;
import de.anomic.http.httpdRobotsTxtConfig; import de.anomic.http.httpdRobotsTxtConfig;
import de.anomic.plasma.plasmaSwitchboard; import de.anomic.plasma.plasmaSwitchboard;
@ -60,8 +58,6 @@ import de.anomic.yacy.yacyCore;
public class ConfigRobotsTxt_p { public class ConfigRobotsTxt_p {
public static final Pattern entryBeginPattern = Pattern.compile("# (\\w*) \\((\\d*) entries\\)");
public static servletProperties respond(httpHeader header, serverObjects post, serverSwitch env) { public static servletProperties respond(httpHeader header, serverObjects post, serverSwitch env) {
final servletProperties prop = new servletProperties(); final servletProperties prop = new servletProperties();
@ -82,7 +78,7 @@ public class ConfigRobotsTxt_p {
rbc.setStatusDisallowed(post.containsKey(httpdRobotsTxtConfig.STATUS)); rbc.setStatusDisallowed(post.containsKey(httpdRobotsTxtConfig.STATUS));
rbc.setSurftipsDisallowed(post.containsKey(httpdRobotsTxtConfig.SURFTIPS)); rbc.setSurftipsDisallowed(post.containsKey(httpdRobotsTxtConfig.SURFTIPS));
rbc.setWikiDisallowed(post.containsKey(httpdRobotsTxtConfig.WIKI)); rbc.setWikiDisallowed(post.containsKey(httpdRobotsTxtConfig.WIKI));
((plasmaSwitchboard)env).setConfig(plasmaSwitchboard.ROBOTS_TXT, rbc.toString()); env.setConfig(plasmaSwitchboard.ROBOTS_TXT, rbc.toString());
} }
} }

@ -80,7 +80,7 @@
<dt>Last run duration:</dt><dd>#[lastRun]# ms</dd> <dt>Last run duration:</dt><dd>#[lastRun]# ms</dd>
<dt>Last server response:</dt><dd>#[lastServerResponse]#</dd> <dt>Last server response:</dt><dd>#[lastServerResponse]#</dd>
<dt>Last fetched URLs:</dt><dd>#[lastFetchedURLs]#</dd> <dt>Last fetched URLs:</dt><dd>#[lastFetchedURLs]#</dd>
<dt>Failed URLs:</dt> <dt>Last failed URLs:</dt>
<dd> <dd>
#[error]# #[error]#
<ul>#{error}# <ul>#{error}#

@ -476,6 +476,8 @@ public class CrawlURLFetch_p {
private int stackURLs(String[] urls) throws InterruptedException { private int stackURLs(String[] urls) throws InterruptedException {
this.lastFailed = 0; this.lastFailed = 0;
this.lastFetchedURLs = 0; this.lastFetchedURLs = 0;
this.failed.clear();
if (urls == null) return 0; if (urls == null) return 0;
String reason; String reason;
for (int i=0; i<urls.length && !isInterrupted(); i++) { for (int i=0; i<urls.length && !isInterrupted(); i++) {

@ -58,22 +58,24 @@
</tr> </tr>
</table> </table>
<p><form action="PerformanceMemory_p.html" method="post" enctype="multipart/form-data"> <form action="PerformanceMemory_p.html" method="post" enctype="multipart/form-data">
<fieldset border="0"> <fieldset>
<legend>Memory Settings</legend> <legend>Memory Settings</legend>
<table border="0" cellpadding="2" cellspacing="1" width="60%"> <table border="0" cellpadding="2" cellspacing="1" width="60%">
<colgroup><col width="20%"><col width="40%"></colgroup> <colgroup><col width="20%" /><col width="40%" /></colgroup>
<tr> <tr>
<td class="TableHeader" align="right"><label for="Xmx">Memory reserved for JVM</label>&nbsp;</td> <td class="TableHeader" align="right"><label for="Xmx">Memory reserved for JVM</label>&nbsp;</td>
<td class="TableCellDark" align="right"><input name="Xmx" id="Xmx" type="text" size="4" maxlength="4" value="#[Xmx]#" /> MByte</td> <td class="TableCellDark" align="right"><input name="Xmx" id="Xmx" type="text" size="4" maxlength="4" value="#[Xmx]#" /> MByte</td>
</tr><tr> </tr>
<td #(setStartupCommit)#class="TableCellLight"::class="commit"::class="error"#(/setStartupCommit)# colspan="2" align="right"> <tr>
#(setStartupCommit)#::Accepted change. This will take effect after <strong>restart</strong> of YaCy#(/setStartupCommit)# <td #(setStartupCommit)#class="TableCellLight"::class="commit"::class="error"#(/setStartupCommit)# colspan="2" align="right">
<input type="submit" name="setStartup" value="Set" /></td> #(setStartupCommit)#::Accepted change. This will take effect after <strong>restart</strong> of YaCy#(/setStartupCommit)#
</tr> <input type="submit" name="setStartup" value="Set" />
</td>
</tr>
</table> </table>
</fieldset> </fieldset>
</form></p> </form>
<p><strong>FlexTable RAM Index:</strong></p> <p><strong>FlexTable RAM Index:</strong></p>
<table border="0" cellpadding="2" cellspacing="1"> <table border="0" cellpadding="2" cellspacing="1">
@ -94,7 +96,7 @@
<tr class="TableCellDark"> <tr class="TableCellDark">
<td colspan="4">Total Mem = #[TableIndexTotalMem]# MB</td> <td colspan="4">Total Mem = #[TableIndexTotalMem]# MB</td>
</tr> </tr>
</table></p> </table>
<p><strong>Node Caches:</strong></p> <p><strong>Node Caches:</strong></p>
<table border="0" cellpadding="2" cellspacing="1"> <table border="0" cellpadding="2" cellspacing="1">
@ -127,7 +129,7 @@
<tr class="TableCellDark"> <tr class="TableCellDark">
<td colspan="10">Total Mem = #[nodeCacheTotalMem]# MB; Stop Grow when less than #[nodeCacheStopGrow]# MB available left; Start Shrink when less than #[nodeCacheStartShrink]# MB availabe left</td> <td colspan="10">Total Mem = #[nodeCacheTotalMem]# MB; Stop Grow when less than #[nodeCacheStopGrow]# MB available left; Start Shrink when less than #[nodeCacheStartShrink]# MB availabe left</td>
</tr> </tr>
</table></p> </table>
<p><strong>Object Read Caches:</strong></p> <p><strong>Object Read Caches:</strong></p>
<table border="0" cellpadding="2" cellspacing="1"> <table border="0" cellpadding="2" cellspacing="1">
@ -183,7 +185,7 @@
<tr class="TableCellDark"> <tr class="TableCellDark">
<td colspan="19">Total Mem: #[objectHitCacheTotalMem]# MB (hit), #[objectMissCacheTotalMem]# MB (miss); Stop Grow when less than #[objectCacheStopGrow]# MB available left; Start Shrink when less than #[objectCacheStartShrink]# MB availabe left</td> <td colspan="19">Total Mem: #[objectHitCacheTotalMem]# MB (hit), #[objectMissCacheTotalMem]# MB (miss); Stop Grow when less than #[objectCacheStopGrow]# MB available left; Start Shrink when less than #[objectCacheStartShrink]# MB availabe left</td>
</tr> </tr>
</table></p> </table>
<!-- other cache sizes --> <!-- other cache sizes -->
<p><strong>Other Caching Structures:</strong></p> <p><strong>Other Caching Structures:</strong></p>
@ -204,7 +206,7 @@
<td>HashBlacklistedCache</td> <td>HashBlacklistedCache</td>
<td>#[blacklistcache.size]#</td> <td>#[blacklistcache.size]#</td>
</tr> </tr>
</table></p> </table>
#%env/templates/footer.template%# #%env/templates/footer.template%#
</body> </body>
</html> </html>

@ -66,12 +66,9 @@ public final class Settings_p {
//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString()); //if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString());
String page = (post == null) ? "admin" : post.get("page", "admin"); String page = (post == null) ? "general" : post.get("page", "general");
if (page.equals("admin")) { if (page.equals("general")) {
prop.put("settingsTables", "Settings_Admin.inc");
}
else if (page.equals("general")) {
prop.put("settingsTables", "Settings_General.inc"); prop.put("settingsTables", "Settings_General.inc");
} }
else if (page.equals("ProxyAccess")) { else if (page.equals("ProxyAccess")) {
@ -105,7 +102,7 @@ public final class Settings_p {
prop.put("settingsTables", "Settings_Crawler.inc"); prop.put("settingsTables", "Settings_Crawler.inc");
} }
else { else {
prop.put("settingsTables", "Settings_Admin.inc"); prop.put("settingsTables", "Settings_General.inc");
} }
prop.put("port", env.getConfig("port", "8080")); prop.put("port", env.getConfig("port", "8080"));

@ -127,7 +127,7 @@
Disabled. To enable this you need a FTP account where you can upload files to a web space. If you do that, you become a YaCy root server. Disabled. To enable this you need a FTP account where you can upload files to a web space. If you do that, you become a YaCy root server.
</td> </td>
<td> <td>
<a href="Settings_p.html#seed">[Configure]</a>. <a href="Settings_p.html?page=seed">[Configure]</a>.
:: ::
Enabled: Updating periodically to server #[seedServer]#. Enabled: Updating periodically to server #[seedServer]#.
Last upload: #[lastUpload]# ago. Last upload: #[lastUpload]# ago.

@ -646,7 +646,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
public static final String HTTPC_NAME_CACHE_CACHING_PATTERNS_NO = "httpc.nameCacheNoCachingPatterns"; public static final String HTTPC_NAME_CACHE_CACHING_PATTERNS_NO = "httpc.nameCacheNoCachingPatterns";
public static final String ROBOTS_TXT = "httpd.robots.txt"; public static final String ROBOTS_TXT = "httpd.robots.txt";
public static final String ROBOTS_TXT_DEFAULT = httpdRobotsTxtConfig.LOCKED + " " + httpdRobotsTxtConfig.DIRS; public static final String ROBOTS_TXT_DEFAULT = httpdRobotsTxtConfig.LOCKED + "," + httpdRobotsTxtConfig.DIRS;
////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////
// Lists // Lists

Loading…
Cancel
Save