package com.example;

import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;

import org.exist.storage.BrokerPool;

public class MyJob extends UserJavaJob {

    private static final AtomicInteger COUNTER = new AtomicInteger();
    private String jobName = "MyJob";
    
	public void execute(final BrokerPool brokerpool, final Map<String, ?> params) throws JobException {

		System.out.println("****** My Job count=" + COUNTER.incrementAndGet());

	}

	public String getName() {
		return jobName;
	}

    public void setName(final String name) {
        this.jobName = name;
    }
}