%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/home/waritko/yacy/source/net/yacy/document/importer/
Upload File :
Create Path :
Current File : //proc/thread-self/root/home/waritko/yacy/source/net/yacy/document/importer/Importer.java

/**
 *  Importer
 *  Copyright 2009 by Michael Peter Christen
 *  First released 29.04.2010 at http://yacy.net
 *  
 *  This is a part of YaCy, a peer-to-peer based web search engine
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *  
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program in the file lgpl21.txt
 *  If not, see <http://www.gnu.org/licenses/>.
 */

package net.yacy.document.importer;

public interface Importer extends Runnable {

    /**
     * @return the import source information (URL or file name)
     */
    public String source();
    
    /**
     * @return the total number of processed articles
     */
    public int count();
    
    /**
     * @return the number of articles per second
     */
    public int speed();
    
    /**
     * @return the time this import is already running
     */
    public long runningTime();
    
    
    /**
     * @return the remaining seconds for the completion of all records in milliseconds
     */
    public long remainingTime();

    public String status();
    
    /**
     * @return true when the import thread is alive
     */
    public boolean isAlive();
    
    public void start();
    
    /**
     * the run method from runnable
     */
    @Override
    public void run();
    
}

Zerion Mini Shell 1.0