From 648ef7deef94d46132b375e937ef2ad331963b5f Mon Sep 17 00:00:00 2001 From: gojomo Date: Mon, 26 Oct 2009 11:29:58 +0000 Subject: [PATCH] Fix issues with surt-source, surt-dump file paths * ConfigPathConfigurer, PathFixupListener notify beans when paths fixed * SurtPrefixedDecideRule.java only read source prefixes after path fixup; dump after read or any batch of seeds * SeedModule.java, TextSeedModule.java, SeedListener.java new concludedSeedBatch event * AbstractFrontier.java, StatisticsTracker.java ignore new concluded-batch event * AlertThreadGroup.java, JobResource.java new mechanism for threads not part of AlertThreadGroup to temporarily redirect their logging to provided (job) logger --- .../org/archive/spring/PathFixupListener.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 commons/src/main/java/org/archive/spring/PathFixupListener.java diff --git a/commons/src/main/java/org/archive/spring/PathFixupListener.java b/commons/src/main/java/org/archive/spring/PathFixupListener.java new file mode 100644 index 00000000..861e5dbf --- /dev/null +++ b/commons/src/main/java/org/archive/spring/PathFixupListener.java @@ -0,0 +1,28 @@ +/* + * This file is part of the Heritrix web crawler (crawler.archive.org). + * + * Licensed to the Internet Archive (IA) by one or more individual + * contributors. + * + * The IA licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.archive.spring; + +/** + * Interface for notifying a bean that its ConfigPath relative paths + * have been fixed-up. + */ +public interface PathFixupListener { + public void pathsFixedUp(); +}