com.sun.sgs.kernel
Interface KernelRunnable


public interface KernelRunnable

This is the base interface used for all tasks that can be submitted to instances of Scheduler.


Method Summary
 String getBaseTaskType()
          Returns the fully qualified type of the base task that is run by this KernelRunnable.
 void run()
          Runs this KernelRunnable.
 

Method Detail

getBaseTaskType

String getBaseTaskType()
Returns the fully qualified type of the base task that is run by this KernelRunnable. Many types of runnables wrap around other instances of KernelRunnable or Task. This method provides the type of the base task that is being wrapped by any number of KernelRunnables, where a given task that wraps another task will return that other task's base type such that any wrapping task can be queried and will return the same base task type.

Returns:
the fully-qualified name of the base task class type

run

void run()
         throws Exception
Runs this KernelRunnable. If this is run by a Scheduler that support re-try logic, and if an Exception is thrown that implements ExceptionRetryStatus then the Scheduler will consult the shouldRetry method of the Exception to see if this task should be re-run.

Throws:
Exception - if any error occurs

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved