public class SingleInputPatternActor extends TypedCompositeActor implements DDPPatternActor
CompositeEntity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_executionClassName
The execution class name.
|
protected java.lang.String |
_executionCodeType
The execution code type.
|
Parameter |
degreeOfParallelism
The number of parallel instances to execute.
|
StringParameter |
displayRedirectDir
The directory where the display related actors in DDP pattern sub-workflows will save their outputs.
|
StringParameter |
executionClass
The name of the execution class.
|
StringParameter |
executionCode
The type of the execution code.
|
TypedIOPort |
in
Data input.
|
StringParameter |
inKeyValueTypes
The input key value types.
|
StringParameter |
jars
A comma-separated list of jars to use with this actor.
|
TypedIOPort |
out
Data output.
|
StringParameter |
outKeyValueTypes
The output key value types.
|
Parameter |
printExeSummary
If true, print an execution summary to the log file each time the
sub-workflow executes in the Hadoop or Stratosphere job.
|
Parameter |
runWorkflowLifecyclePerInput
If true, the full lifecycle of the sub-workflow will be executed
for each input.
|
_actorFiringListeners, _causalityInterface, _derivedPiggybacks, _initializables, _notifyingActorFiring, _piggybacks, _publishedPorts, _publisherRelations, _stopRequested, _subscribedPorts_levelCrossingLinks_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS_commonKeyValueTypesCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
SingleInputPatternActor(CompositeEntity container,
java.lang.String name)
Construct a new SingleInputPatternActor in a container with a given name.
|
SingleInputPatternActor(Workspace workspace)
Construct a new SingleInputPatternActor for a workspace.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attributeChanged(Attribute attribute)
React to a change in an attribute.
|
java.util.List<?> |
deepEntityList()
List the opaque entities that are directly or indirectly contained by this entity.
|
java.util.List<?> |
entityList()
List the opaque entities that are directly or indirectly contained by this entity.
|
int |
getDegreeOfParallelism()
Get the number of parallel instances to execute.
|
java.lang.String |
getDisplayRedirectDir()
Get the dir to redirect display related actors.
|
java.lang.String |
getExecutionClassName()
Get the name of the execution class.
|
java.lang.String |
getExecutionCode()
Get the execution code.
|
java.lang.String |
getExecutionCodeType()
Get the execution code type.
|
java.lang.String |
getJars()
Get a comma-separated list of jars to use with this actor.
|
java.util.Map<java.lang.String,java.lang.String> |
getParaImplNames(java.lang.String engineName)
Get a set of (kepler name, implementation name) pairs of input/output format parameters for the execution engine.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Get a set of name-value pairs of input/output format parameters for the execution engine.
|
boolean |
getPrintExeInfo()
Get whether print execution summary when running workflow inside of Hadoop/Stratosphere job.
|
boolean |
getRunWorkflowLifecyclePerInput()
Check if the full lifecycle of the sub-workflow should be executed for each input.
|
void |
preinitialize()
Override the parent class to check that parameter values are correctly set.
|
_addEntity, _addPort, _addRelation, _checkTypesFromTo, _destinationTypeConstraints, attributeTypeChanged, isBackwardTypeInferenceEnabled, newPort, newRelation, resolveTypes, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _finishedAddEntity, _setDirector, _transferPortParameterInputs, addActorFiringListener, addInitializable, addPiggyback, clone, connectionsChanged, createReceivers, createSchedule, fire, getCausalityInterface, getDirector, getExecutiveDirector, getManager, getPublishedPort, getPublishedPortChannel, getPublishedPorts, getSubscribedPortChannel, inferringWidths, inferWidths, initialize, inputPortList, isFireFunctional, isOpaque, isPublishedPort, isStrict, iterate, linkToPublishedPort, linkToPublishedPort, linkToPublishedPort, linkToPublishedPort, needsWidthInference, newInsideReceiver, newReceiver, notifyConnectivityChange, outputPortList, postfire, prefire, recordFiring, registerPublisherPort, registerPublisherPort, removeActorFiringListener, removeInitializable, removePiggyback, requestChange, setContainer, setDirector, setManager, stop, stopFire, terminate, unlinkToPublishedPort, unlinkToPublishedPort, unlinkToPublishedPort, unlinkToPublishedPort, unregisterPublisherPort, unregisterPublisherPort, wrapup_adjustDeferrals, _containedDecorators, _deepOpaqueEntityList, _description, _exportMoMLContents, _removeEntity, _removeRelation, _validateSettables, allAtomicEntityList, allowLevelCrossingConnect, classDefinitionList, connect, connect, containedObjectsIterator, deepCompositeEntityList, deepGetEntities, deepNamedObjList, deepOpaqueEntityList, deepRelationSet, entityList, exportLinks, exportMoML, getAttribute, getEntities, getEntity, getPort, getRelation, getRelations, isAtomic, lazyAllAtomicEntityList, lazyAllCompositeEntityList, lazyAllCompositeTransparentAndOpaqueEntityList, lazyClassDefinitionList, lazyDeepEntityList, lazyEntityList, lazyRelationList, numberOfEntities, numberOfRelations, numEntities, numRelations, relationList, removeAllEntities, removeAllRelations, setClassDefinition, statistics, uniqueName_checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName_removePort, connectedPortList, connectedPorts, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts_setParent, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, clone, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, exportMoML, getAttribute, getPort, isOpaque, portListcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListfire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminateaddInitializable, initialize, removeInitializable, wrapupdescription, getContainer, getDisplayName, getFullName, getName, getName, setNamegetDerivedLevel, getDerivedList, propagateValuepublic TypedIOPort in
public TypedIOPort out
public Parameter degreeOfParallelism
public StringParameter executionClass
public StringParameter displayRedirectDir
public StringParameter inKeyValueTypes
public StringParameter outKeyValueTypes
public StringParameter jars
public Parameter printExeSummary
public Parameter runWorkflowLifecyclePerInput
public StringParameter executionCode
protected java.lang.String _executionClassName
protected java.lang.String _executionCodeType
public SingleInputPatternActor(Workspace workspace)
public SingleInputPatternActor(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged in class TypedCompositeActorattribute - The attribute that changed.IllegalActionException - Not thrown in this base class.
Derived classes can throw this exception if type change is not allowed.public java.util.List<?> deepEntityList()
deepEntityList in class CompositeEntityCompositeEntity.classDefinitionList(),
CompositeEntity.allAtomicEntityList()public java.util.List<?> entityList()
entityList in class CompositeEntityCompositeEntity.classDefinitionList()public int getDegreeOfParallelism() throws IllegalActionException
getDegreeOfParallelism in interface DDPPatternActorIllegalActionExceptionpublic java.lang.String getDisplayRedirectDir() throws IllegalActionException
getDisplayRedirectDir in interface DDPPatternActorIllegalActionExceptionpublic java.lang.String getExecutionClassName()
getExecutionClassName in interface DDPPatternActorpublic java.lang.String getExecutionCodeType() throws IllegalActionException
getExecutionCodeType in interface DDPPatternActorIllegalActionExceptionpublic java.lang.String getExecutionCode() throws IllegalActionException
getExecutionCode in interface DDPPatternActorIllegalActionExceptionpublic java.lang.String getJars() throws IllegalActionException
getJars in interface DDPPatternActorIllegalActionExceptionpublic boolean getPrintExeInfo() throws IllegalActionException
getPrintExeInfo in interface DDPPatternActorIllegalActionExceptionpublic java.util.Map<java.lang.String,java.lang.String> getParameters() throws IllegalActionException
getParameters in interface DDPPatternActorIllegalActionExceptionpublic java.util.Map<java.lang.String,java.lang.String> getParaImplNames(java.lang.String engineName) throws IllegalActionException
getParaImplNames in interface DDPPatternActorIllegalActionExceptionpublic boolean getRunWorkflowLifecyclePerInput() throws IllegalActionException
IllegalActionExceptionpublic void preinitialize() throws IllegalActionException
preinitialize in interface Initializablepreinitialize in class CompositeActorIllegalActionException - If there is no director, or if
the director's preinitialize() method throws it, or if this actor
is not opaque.