KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > search > LoggingIndexer


1 /*
2  * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/search/LoggingIndexer.java,v 1.2 2004/07/28 09:35:11 ib Exp $
3  * $Revision: 1.2 $
4  * $Date: 2004/07/28 09:35:11 $
5  *
6  * ====================================================================
7  *
8  * Copyright 2004 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23
24 package org.apache.slide.search;
25
26 import org.apache.slide.common.Domain;
27 import org.apache.slide.common.Uri;
28 import org.apache.slide.util.logger.Logger;
29 import org.apache.slide.content.NodeRevisionDescriptor;
30 import org.apache.slide.content.NodeRevisionContent;
31 import org.apache.slide.content.NodeRevisionNumber;
32
33 /**
34  * @version $Revision: 1.2 $
35  */

36
37 public class LoggingIndexer implements Indexer {
38     protected static final String JavaDoc LOG_CHANNEL = LoggingIndexer.class.getName();
39
40     public void dropIndex(Uri uri, NodeRevisionNumber number) throws IndexException {
41         Domain.log("Drop index for Uri="+uri, LOG_CHANNEL, Logger.INFO);
42     }
43
44     public void createIndex(Uri uri, NodeRevisionDescriptor revisionDescriptor, NodeRevisionContent revisionContent) throws IndexException {
45         Domain.log("Create index for Uri="+uri, LOG_CHANNEL, Logger.INFO);
46     }
47
48     public void updateIndex(Uri uri, NodeRevisionDescriptor revisionDescriptor, NodeRevisionContent revisionContent) throws IndexException {
49         Domain.log("Update index for Uri="+uri, LOG_CHANNEL, Logger.INFO);
50     }
51 }
Popular Tags