public class StratosphereEngine extends DDPEngine
NOTE: Only DDP pattern and I/O actors may be present in the workflow. Other actors must placed inside the composite pattern actors or in a different sub-workflow.
_additionalJars, _classLoader, _configDirStr, _CONNECT_TIMEOUT, _container, _degreeOfParallelism, _director, _displayRedirectDir, _engineName, _jobArgumentsMap, _jobDir, _jobLock, _sameJVM, _serverStartStopLock, _subWorkflows, _writeSubWorkflowsToFiles
Constructor and Description |
---|
StratosphereEngine(DDPDirector director)
Create a new StratosphereEngine.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_addSubModelToContract(SingleInputPatternActor pactor,
eu.stratosphere.api.common.operators.Operator contract)
Write the sub-workflow of a SingleInputPatternActor either to a parameter
in the PACT plan configuration or to a file.
|
protected void |
_executeDDPJob()
Execute the engine.
|
protected eu.stratosphere.api.common.Plan |
_getModelPlan()
Constructs a PACT Plan from the model.
|
java.lang.Object |
clone(Workspace workspace)
Clone the StratosphereEngine into the specified workspace.
|
void |
preinitialize()
Initialize the engine.
|
static void |
shutdownServer()
Shutdown the Stratosphere server if one was started.
|
void |
stop()
Stop any running Stratosphere jobs.
|
void |
wrapup()
Free resources.
|
_addParameters, _checkConfigDir, _checkFilesBeforeStartingServer, _checkModel, _checkModelForNonDDPActors, _checkServer, _copyParameters, _createJobDirectory, _getJarList, _getParametersInHierarchy, _parseOutputFromStartingServer, _removeParameters, _setPortTypes, attributeChanged, clone, closeAllEffigies, createEffigy, fire, getDisplayRedirectDir, getModel, getName, getServerTypes, postfire
public StratosphereEngine(DDPDirector director) throws IllegalActionException, NameDuplicationException
director
- The director containing this engine.IllegalActionException
NameDuplicationException
public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
protected void _executeDDPJob() throws IllegalActionException
_executeDDPJob
in class DDPEngine
IllegalActionException
public void preinitialize() throws IllegalActionException
preinitialize
in class DDPEngine
IllegalActionException
public void stop() throws IllegalActionException
stop
in class DDPEngine
IllegalActionException
public static void shutdownServer() throws IllegalActionException
IllegalActionException
public void wrapup() throws IllegalActionException
wrapup
in class DDPEngine
IllegalActionException
protected void _addSubModelToContract(SingleInputPatternActor pactor, eu.stratosphere.api.common.operators.Operator contract) throws IllegalActionException
IllegalActionException
protected eu.stratosphere.api.common.Plan _getModelPlan() throws IllegalActionException
IllegalActionException