net.sf.sasl.common.schedule
Class CallableExecutionStatus

java.lang.Object
  extended by net.sf.sasl.common.schedule.CallableExecutionStatus

public class CallableExecutionStatus
extends Object

This is a helper class for the QuartzServiceAdapter and should not be used outside the package.
Instances of the class will be used as synchronization points to make calls to Future.cancel(boolean) work together with Quartz.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Constructor Summary
CallableExecutionStatus()
          Default constructor, does nothing actually.
 
Method Summary
 boolean isMarkedAsCancelled()
          Returns true if the execution status is marked as cancelled.
 boolean isMarkedAsNotCancellable()
          Returns true if the execution status is marked as not cancellable.
 boolean markAsCancelled()
          Tries to mark the execution status as cancelled, which only works, if the execution was not started in the past.
 boolean markAsNotCancellable()
          Tries to mark the execution status as not cancellable, which means that the job wants now to start its execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallableExecutionStatus

public CallableExecutionStatus()
Default constructor, does nothing actually.

Since:
0.0.1 (sasl-common-aspect-library)
Method Detail

markAsCancelled

public boolean markAsCancelled()
Tries to mark the execution status as cancelled, which only works, if the execution was not started in the past.

Returns:
true if successfully marked as cancelled (or already cancelled in the past), false else.
Since:
0.0.1 (sasl-common-aspect-library)

isMarkedAsCancelled

public boolean isMarkedAsCancelled()
Returns true if the execution status is marked as cancelled. False else.

Returns:
true or false.
Since:
0.0.1 (sasl-common-aspect-library)

markAsNotCancellable

public boolean markAsNotCancellable()
Tries to mark the execution status as not cancellable, which means that the job wants now to start its execution.

Returns:
true if successfully marked as not cancellable (or marked as not cancellable in the past), false if the execution status was already marked as cancelled.
Since:
0.0.1 (sasl-common-aspect-library)

isMarkedAsNotCancellable

public boolean isMarkedAsNotCancellable()
Returns true if the execution status is marked as not cancellable. False else.

Returns:
true or false.
Since:
0.0.1 (sasl-common-aspect-library)


Copyright © 2010. All Rights Reserved.