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

CommandsPool (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Class CommandsPool

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

Deprecated. Use CommandProcessor instead. This class is kept just for compatibility reasons. It delegates it's work to CommandProcessor.

public class CommandsPool
extends Object

This class was used as a container of all external commands which are either running or finished. Currently it's reimplemented as a bridge between the old internal "API" and the new VCS APIs.


Field Summary
static int PREPROCESS_CANCELLED
          Deprecated. The preprocessing of the command was cancelled.
static int PREPROCESS_DONE
          Deprecated. The preprocessing is done.
static int PREPROCESS_NEXT_FILE
          Deprecated. When there are more files selected, the preprocessing needs to be done for next files again.
 
Method Summary
 void cleanup()
          Deprecated. Destroy the FS node under VCS Commands node on the Runtime tab.
protected  void finalize()
          Deprecated.  
 long getCommandID(VcsCommandExecutor vce)
          Deprecated. Get the command's ID.
static CommandsPool getInstance()
          Deprecated.  
 boolean isRunning(VcsCommandExecutor vce)
          Deprecated. Tells whether the executor is still running.
 boolean isWaiting(VcsCommandExecutor vce)
          Deprecated. Tells whether the executor is waiting.
 void kill(VcsCommandExecutor vce)
          Deprecated. Kill the executor if it is running.
 int preprocessCommand(VcsCommandExecutor vce, Hashtable vars, VcsFileSystem fileSystem)
          Deprecated. Perform preprocessing of a new command.
 void startExecutor(VcsCommandExecutor vce)
          Deprecated. Start the executor.
 void startExecutor(VcsCommandExecutor vce, VcsFileSystem fileSystem)
          Deprecated. Start the executor.
 void waitToFinish(VcsCommandExecutor vce)
          Deprecated. Wait to finish the executor.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREPROCESS_CANCELLED

public static final int PREPROCESS_CANCELLED
Deprecated. 
The preprocessing of the command was cancelled. The command will not be executed.

See Also:
Constant Field Values

PREPROCESS_NEXT_FILE

public static final int PREPROCESS_NEXT_FILE
Deprecated. 
When there are more files selected, the preprocessing needs to be done for next files again. The command will run on the first file, preprocessing will be done for the rest.

See Also:
Constant Field Values

PREPROCESS_DONE

public static final int PREPROCESS_DONE
Deprecated. 
The preprocessing is done. When more files are selected, the command will not be preprocessed for the rest of them.

See Also:
Constant Field Values
Method Detail

getInstance

public static CommandsPool getInstance()
Deprecated. 

finalize

protected void finalize()
Deprecated. 

cleanup

public void cleanup()
Deprecated. 
Destroy the FS node under VCS Commands node on the Runtime tab. This also stops the execution starter loop. You will not be able to execute any command by CommandsPool after this method finishes !


getCommandID

public long getCommandID(VcsCommandExecutor vce)
Deprecated. 
Get the command's ID. It's a unique command identification number.

Parameters:
vce - the command's executor
Returns:
the ID or -1 if the command does not have one.

preprocessCommand

public int preprocessCommand(VcsCommandExecutor vce,
                             Hashtable vars,
                             VcsFileSystem fileSystem)
Deprecated. 
Perform preprocessing of a new command. It will perform any needed input and update the execution string.

Parameters:
vce - the command to preprocess
Returns:
the preprocessing status, one of CommandExecutorSupport.PREPROCESS_* constants

startExecutor

public void startExecutor(VcsCommandExecutor vce)
Deprecated. 
Start the executor. The method starts the executor in a separate thread.

Parameters:
vce - the executor

startExecutor

public void startExecutor(VcsCommandExecutor vce,
                          VcsFileSystem fileSystem)
Deprecated. 
Start the executor. The method starts the executor in a separate thread.

Parameters:
vce - the executor
fileSystem - the file system associated with the command. Can be null.

isWaiting

public boolean isWaiting(VcsCommandExecutor vce)
Deprecated. 
Tells whether the executor is waiting. It can either wait till preprocessing finishes or till other commands which can not run in parallel with it finish.

Parameters:
vce - the executor

isRunning

public boolean isRunning(VcsCommandExecutor vce)
Deprecated. 
Tells whether the executor is still running.

Parameters:
vce - the executor

waitToFinish

public void waitToFinish(VcsCommandExecutor vce)
                  throws InterruptedException
Deprecated. 
Wait to finish the executor. This methods blocks the current thread untill the executor finishes. This method ignores interrupts.

Parameters:
vce - the executor
Throws:
InterruptedException

kill

public void kill(VcsCommandExecutor vce)
Deprecated. 
Kill the executor if it is running. It tries to interrupt it, it is up to executor implementation if it will terminate or not.


 

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