/*
 * Copyright (C) 2006-2008  exedio GmbH (www.exedio.com)
 *
 * 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 library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package com.exedio.cronjob.example;

import com.exedio.cronjob.Interrupter;
import com.exedio.cronjob.Job;

public class AbstractJob implements Job
{
	protected final String name;
	protected final int minutesBetweenExecutions;
	protected final int initialDelay;
	
	AbstractJob(final String name, final int minutesBetweenExecutions, final int initialDelay)
	{
		this.name = name;
		this.minutesBetweenExecutions = minutesBetweenExecutions;
		this.initialDelay = initialDelay;
	}
	
	public String getName()
	{
		System.out.println(name + ".getName");
		return name;
	}

	public void execute(Interrupter interrupter) throws Exception
	{
		System.out.println(name + ".execute");
	}

	public int getMinutesBetweenExecutions()
	{
		System.out.println(name + ".getMinutesBetweenExecutions");
		return minutesBetweenExecutions;
	}
	
	public int getInitialDelayInMilliSeconds()
	{
		System.out.println(name + ".getInitialDelayInMilliSeconds"+initialDelay);
		return initialDelay;
	}
}

@@ -1299,32 +1299,34 @@
  getName()%0A%09%7B%0A%09%09
+//
 System.out.print
@@ -1517,32 +1517,34 @@
 ecutions()%0A%09%7B%0A%09%09
+//
 System.out.print
@@ -1671,24 +1671,26 @@
 onds()%0A%09%7B%0A%09%09
+//
 System.out.p

disable a few System.out not usually needed