TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.automation.client.strategies
Class AbstractExecutionStrategy.Factory

java.lang.Object
  extended by org.eclipse.hyades.automation.client.strategies.AbstractExecutionStrategy.Factory
Enclosing class:
AbstractExecutionStrategy

public static final class AbstractExecutionStrategy.Factory
extends java.lang.Object

The execution strategy factory, creates the requested strategy as well as providing a default


Method Summary
 Service.Executable createDefaultStrategy()
          Create the default strategy, this strategy will definitely work whereas other strategies might be unsupported
 Service.Executable createInProcessStrategy()
          Create an in-process strategy, to launch the automation command within the same process as the requestor
 Service.Executable createKeepAliveOutOfProcessStrategy()
          Create an out-of-process keep-alive strategy, one that ensures an Eclipse instance is first started ready for remote invocations and then communicates through this channel until the connection times out
 Service.Executable createOutOfProcessStrategy()
          Create an out-of-process strategy, to launch the automation command within its own process
 Service.Executable createVoidStrategy()
          Creates a void strategy, basically does nothing but implements the service executable interface
static AbstractExecutionStrategy.Factory getInstance()
          Singleton static access point
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final AbstractExecutionStrategy.Factory getInstance()
Singleton static access point

Returns:
the singleton instance of the factory

createDefaultStrategy

public Service.Executable createDefaultStrategy()
Create the default strategy, this strategy will definitely work whereas other strategies might be unsupported

Returns:
the default strategy

createInProcessStrategy

public Service.Executable createInProcessStrategy()
Create an in-process strategy, to launch the automation command within the same process as the requestor

Returns:
the in-process strategy is returned

createKeepAliveOutOfProcessStrategy

public Service.Executable createKeepAliveOutOfProcessStrategy()
Create an out-of-process keep-alive strategy, one that ensures an Eclipse instance is first started ready for remote invocations and then communicates through this channel until the connection times out

Returns:
the out-of-process keep-alive strategy is returned

createOutOfProcessStrategy

public Service.Executable createOutOfProcessStrategy()
Create an out-of-process strategy, to launch the automation command within its own process

Returns:
the out-of-process strategy is returned

createVoidStrategy

public Service.Executable createVoidStrategy()
Creates a void strategy, basically does nothing but implements the service executable interface

Returns:
the void strategy is returned, good for testing

TPTP 4.5.0 Platform Project
Public API Specification