站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

CommandTaskInfo (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Class CommandTaskInfo

java.lang.Object
  extended byorg.netbeans.modules.vcscore.commands.CommandTaskInfo

public abstract class CommandTaskInfo
extends Object

Info, that is used to submit a task into CommandProcessor.


Constructor Summary
CommandTaskInfo()
           
 
Method Summary
protected abstract  void cancel()
           
abstract  boolean canRun()
          Whether the task can be executed right now.
 long getCommandID()
           
 long getExecutionTime()
           
 long getFinishTime()
           
 Exception getOrigin()
          In debug mode returns allocation stack trace.
 long getStartTime()
           
abstract  CommandTask getTask()
          Get the associated task.
 boolean isInterrupted()
           
 void register()
          Register this task info in CommandProcessor.
abstract  void run()
          Execute the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandTaskInfo

public CommandTaskInfo()
Method Detail

canRun

public abstract boolean canRun()
Whether the task can be executed right now.


run

public abstract void run()
Execute the task.


getTask

public abstract CommandTask getTask()
Get the associated task.

Returns:
The command task.

register

public final void register()
Register this task info in CommandProcessor.


getCommandID

public final long getCommandID()

isInterrupted

public boolean isInterrupted()

cancel

protected abstract void cancel()

getStartTime

public final long getStartTime()

getFinishTime

public final long getFinishTime()

getExecutionTime

public final long getExecutionTime()

getOrigin

public final Exception getOrigin()
In debug mode returns allocation stack trace.


 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.