1 2 /* $Id: CrawlJobBase.java 4073 2005-12-21 19:16:33Z dbernstein $ 3 * 4 * Created on Dec 12, 2005 5 * 6 * Copyright (C) 2005 Internet Archive. 7 * 8 * This file is part of the Heritrix Cluster Controller (crawler.archive.org). 9 * 10 * HCC is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU Lesser Public License as published by 12 * the Free Software Foundation; either version 2.1 of the License, or 13 * any later version. 14 * 15 * Heritrix is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser Public License 21 * along with Heritrix; if not, write to the Free Software 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 */ 24 package org.archive.hcc.client; 25 26 import javax.management.MBeanServerConnection; 27 28 abstract public class CrawlJobBase implements CrawlJob { 29 30 protected CrawlerImpl mother; 31 32 protected MBeanServerConnection connection; 33 34 protected Long uid; 35 36 protected String jobName; 37 38 public CrawlJobBase( 39 Long uid, 40 String jobName, 41 CrawlerImpl mother, 42 MBeanServerConnection connection) { 43 this.uid = uid; 44 this.connection = connection; 45 this.mother = mother; 46 this.jobName = jobName; 47 } 48 49 public Long getUid() { 50 return uid; 51 } 52 53 public String getJobName(){ 54 return this.jobName; 55 } 56 57 58 public Crawler getMother() { 59 return mother; 60 } 61 62 63 }