[jboss-cvs] JBossAS SVN: r98272 - projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jca-api/src/main/javax/resource/spi/work.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 22 11:52:21 EST 2009


Author: jaikiran
Date: 2009-12-22 11:52:21 -0500 (Tue, 22 Dec 2009)
New Revision: 98272

Removed:
   projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jca-api/src/main/javax/resource/spi/work/WorkEvent.java
Log:
Autoversioning commit:  a non-deltaV client made a change to
/projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jca-api/src/main/javax/resource/spi/work/WorkEvent.java

Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jca-api/src/main/javax/resource/spi/work/WorkEvent.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jca-api/src/main/javax/resource/spi/work/WorkEvent.java	2009-12-22 16:52:14 UTC (rev 98271)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jca-api/src/main/javax/resource/spi/work/WorkEvent.java	2009-12-22 16:52:21 UTC (rev 98272)
@@ -1,158 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This 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 software 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 software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package javax.resource.spi.work;
-
-import java.lang.Object;
-import java.lang.Runnable;
-import java.lang.Exception;
-import java.lang.Throwable;
-import java.util.EventObject;
-
-/**
- * This class models the various events that occur during the processing of
- * a <code>Work</code> instance.
- *
- * @version 1.0
- * @author  Ram Jeyaraman
- */
-public class WorkEvent extends EventObject {
-
-    /**
-     * Indicates <code>Work</code> instance has been accepted.
-     */
-    public static final int WORK_ACCEPTED = 1;
-
-    /**
-     * Indicates <code>Work</code> instance has been rejected.
-     */
-    public static final int WORK_REJECTED = 2;
-
-    /**
-     * Indicates <code>Work</code> instance has started execution.
-     */
-    public static final int WORK_STARTED = 3;
-
-    /**
-     * Indicates <code>Work</code> instance has completed execution.
-     */
-    public static final int WORK_COMPLETED = 4;
-
-    /**
-     * The event type.
-     */
-    private int type;
-
-    /**
-     * The <code>Work</code> object on which the event occured.
-     */
-    private Work work;
-
-    /**
-     * The exception that occured during <code>Work</code> processing.
-     */
-    private WorkException exc;
-
-    /**
-     * The start delay duration (in milliseconds).
-     */
-    private long startDuration = WorkManager.UNKNOWN;
-
-    /**
-     * Constructor.
-     *
-     * @param source The object on which the event initially 
-     * occurred.
-     *
-     * @param type The event type.
-     *
-     * @param work The <code>Work</code> object on which 
-     * the event occured.
-     *
-     * @param exc The exception that occured during 
-     * <code>Work</code> processing.
-
-    */
-    public WorkEvent(Object source, int type, Work work, WorkException exc) {
-	super(source);
-	this.type = type;
-	this.work =  work;
-	this.exc = exc;
-    }
-
-    /**
-     * Constructor.
-     *
-     * @param source The object on which the event initially 
-     * occurred.
-     *
-     * @param type The event type.
-     *
-     * @param work The <code>Work</code> object on which 
-     * the event occured.
-     *
-     * @param exc The exception that occured during 
-     * <code>Work</code> processing.
-     *
-     * @param startDuration The start delay duration 
-     * (in milliseconds).
-     */
-    public WorkEvent(Object source, int type, Work work, WorkException exc,
-            long startDuration) {
-	this(source, type, work, exc);
-	this.startDuration = startDuration;
-    }
-
-    /**
-     * Return the type of this event.
-     *
-     * @return the event type.
-     */
-    public int getType() { return this.type; }
-
-    /**
-     * Return the <code>Work</code> instance which is the cause of the event.
-     *
-     * @return the <code>Work</code> instance.
-     */
-    public Work getWork() { return this.work; }
-
-    /**
-     * Return the start interval duration.
-     *
-     * @return the time elapsed (in milliseconds) since the <code>Work</code>
-     * was accepted, until the <code>Work</code> execution started. Note, 
-     * this does not offer real-time guarantees. It is valid to return -1, if
-     * the actual start interval duration is unknown.
-     */
-    public long getStartDuration() { return this.startDuration; }
-
-    /**
-     * Return the <code>WorkException</code>. The actual 
-     * <code>WorkException</code> subtype returned depends on the type of the
-     * event.
-     *
-     * @return a <code>WorkRejectedException</code> or a 
-     * <code>WorkCompletedException</code>, if any.
-     */
-    public WorkException getException() { return this.exc; }
-}




More information about the jboss-cvs-commits mailing list