Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core.utility.command
Class CombinedExtendedCommandExecutor.Default

java.lang.Object
  extended by org.eclipse.jpt.common.core.utility.command.CombinedExtendedCommandExecutor.Default
All Implemented Interfaces:
Serializable, CombinedCommandExecutor, CombinedExtendedCommandExecutor, ExtendedJobCommandExecutor, JobCommandExecutor, CommandExecutor, ExtendedCommandExecutor
Enclosing interface:
CombinedExtendedCommandExecutor

public static final class CombinedExtendedCommandExecutor.Default
extends Object
implements CombinedExtendedCommandExecutor, Serializable

Singleton implementation of the command executor interface that simply executes the command without any sort of enhancement.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.command.CombinedExtendedCommandExecutor
CombinedExtendedCommandExecutor.Default, CombinedExtendedCommandExecutor.Inactive
 
Field Summary
static CombinedExtendedCommandExecutor INSTANCE
           
 
Method Summary
 void execute(Command command)
          Execute the specified command, synchronously or asynchronously.
 void execute(JobCommand command)
          Execute the specified command, synchronously or asynchronously.
 void execute(JobCommand command, String jobName)
          Execute the specified command, synchronously or asynchronously.
 void execute(JobCommand command, String jobName, ISchedulingRule schedulingRule)
          Execute the specified command, synchronously or asynchronously.
static CombinedExtendedCommandExecutor instance()
           
 String toString()
           
 void waitToExecute(Command command)
          Suspend the current thread until the specified command is executed.
 boolean waitToExecute(Command command, long timeout)
          Suspend the current thread until the specified command is executed or the specified time-out occurs.
 void waitToExecute(JobCommand command)
          Suspend the current thread until the specified command is executed.
 boolean waitToExecute(JobCommand command, long timeout)
          Suspend the current thread until the specified command is executed or the specified time-out occurs.
 void waitToExecute(JobCommand command, String jobName)
          Suspend the current thread until the specified command is executed.
 void waitToExecute(JobCommand command, String jobName, ISchedulingRule schedulingRule)
          Suspend the current thread until the specified command is executed.
 boolean waitToExecute(JobCommand command, String jobName, ISchedulingRule schedulingRule, long timeout)
          Suspend the current thread until the specified command is executed or the specified time-out occurs.
 boolean waitToExecute(JobCommand command, String jobName, long timeout)
          Suspend the current thread until the specified command is executed or the specified time-out occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final CombinedExtendedCommandExecutor INSTANCE
Method Detail

instance

public static CombinedExtendedCommandExecutor instance()

execute

public void execute(Command command)
Description copied from interface: CommandExecutor
Execute the specified command, synchronously or asynchronously. The commands themselves must be executed in the order in which they are passed to the command executor (at least when passed from clients executing on the same thread).

Specified by:
execute in interface CommandExecutor

waitToExecute

public void waitToExecute(Command command)
Description copied from interface: ExtendedCommandExecutor
Suspend the current thread until the specified command is executed. The command itself must be executed after any other commands previously passed to the command executor (at least when passed from clients executing on the same thread).

Specified by:
waitToExecute in interface ExtendedCommandExecutor
See Also:
CommandExecutor.execute(Command)

waitToExecute

public boolean waitToExecute(Command command,
                             long timeout)
Description copied from interface: ExtendedCommandExecutor
Suspend the current thread until the specified command is executed or the specified time-out occurs. The time-out is specified in milliseconds. Return true if the command was executed in the allotted time; return false if a time-out occurred and the command was not executed. If the time-out is zero, wait indefinitely.

The command itself must be executed after any other commands previously passed to the command executor (at least when passed from clients executing on the same thread).

Specified by:
waitToExecute in interface ExtendedCommandExecutor
See Also:
CommandExecutor.execute(Command)

execute

public void execute(JobCommand command)
Description copied from interface: JobCommandExecutor
Execute the specified command, synchronously or asynchronously. Commands with the same scheduling rule must be executed in the order in which they are passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
execute in interface JobCommandExecutor

execute

public void execute(JobCommand command,
                    String jobName)
Description copied from interface: JobCommandExecutor
Execute the specified command, synchronously or asynchronously. Commands with the same scheduling rule must be executed in the order in which they are passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
execute in interface JobCommandExecutor

execute

public void execute(JobCommand command,
                    String jobName,
                    ISchedulingRule schedulingRule)
Description copied from interface: JobCommandExecutor
Execute the specified command, synchronously or asynchronously. Commands with the same scheduling rule must be executed in the order in which they are passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
execute in interface JobCommandExecutor

waitToExecute

public void waitToExecute(JobCommand command)
Description copied from interface: ExtendedJobCommandExecutor
Suspend the current thread until the specified command is executed. The command itself must be executed after any other commands previously passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
waitToExecute in interface ExtendedJobCommandExecutor
See Also:
JobCommandExecutor.execute(JobCommand)

waitToExecute

public boolean waitToExecute(JobCommand command,
                             long timeout)
Description copied from interface: ExtendedJobCommandExecutor
Suspend the current thread until the specified command is executed or the specified time-out occurs. The time-out is specified in milliseconds. Return true if the command was executed in the allotted time; return false if a time-out occurred and the command was not executed. If the time-out is zero, wait indefinitely.

The command itself must be executed after any other commands previously passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
waitToExecute in interface ExtendedJobCommandExecutor
See Also:
JobCommandExecutor.execute(JobCommand)

waitToExecute

public void waitToExecute(JobCommand command,
                          String jobName)
Description copied from interface: ExtendedJobCommandExecutor
Suspend the current thread until the specified command is executed. The command itself must be executed after any other commands previously passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
waitToExecute in interface ExtendedJobCommandExecutor
See Also:
JobCommandExecutor.execute(JobCommand, String)

waitToExecute

public boolean waitToExecute(JobCommand command,
                             String jobName,
                             long timeout)
Description copied from interface: ExtendedJobCommandExecutor
Suspend the current thread until the specified command is executed or the specified time-out occurs. The time-out is specified in milliseconds. Return true if the command was executed in the allotted time; return false if a time-out occurred and the command was not executed. If the time-out is zero, wait indefinitely.

The command itself must be executed after any other commands previously passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
waitToExecute in interface ExtendedJobCommandExecutor
See Also:
JobCommandExecutor.execute(JobCommand, String)

waitToExecute

public void waitToExecute(JobCommand command,
                          String jobName,
                          ISchedulingRule schedulingRule)
Description copied from interface: ExtendedJobCommandExecutor
Suspend the current thread until the specified command is executed. The command itself must be executed after any other commands previously passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
waitToExecute in interface ExtendedJobCommandExecutor
See Also:
JobCommandExecutor.execute(JobCommand, String, ISchedulingRule)

waitToExecute

public boolean waitToExecute(JobCommand command,
                             String jobName,
                             ISchedulingRule schedulingRule,
                             long timeout)
Description copied from interface: ExtendedJobCommandExecutor
Suspend the current thread until the specified command is executed or the specified time-out occurs. The time-out is specified in milliseconds. Return true if the command was executed in the allotted time; return false if a time-out occurred and the command was not executed. If the time-out is zero, wait indefinitely.

The command itself must be executed after any other commands previously passed to the command executor. The command may or may not be assigned to a Job for execution.

Specified by:
waitToExecute in interface ExtendedJobCommandExecutor
See Also:
JobCommandExecutor.execute(JobCommand, String, ISchedulingRule)

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.