public class AtomicPatternActor extends TypedAtomicActor implements DDPPatternActor
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_FORMAT_TYPE_CATEGORY
The configuration property name for the format type.
|
protected java.util.List<ConfigurationProperty> |
_formatProperties
A list of properties of format types from the config file.
|
protected java.lang.String |
_formatTypeStr
The string value of the format type.
|
protected Type |
_keyType
The key type.
|
protected Type |
_valueType
The value type.
|
Parameter |
degreeOfParallelism
The number of parallel instances to execute.
|
StringParameter |
formatType
The name of the data format or a fully-qualified class name to
parse the data.
|
StringParameter |
jars
A comma-separated list of jars to use with this actor.
|
StringParameter |
keyValueTypes
The key value types of the atomic patter actor.
|
_typesValid
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
_commonKeyValueTypes
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
AtomicPatternActor(CompositeEntity container,
java.lang.String name)
Construct a new AtomicPatternActor in a container with a given name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_addFormats(java.lang.String inputOutputName)
Add the formats in the configuration file as choices to formatType.
|
protected void |
_setFormat(java.lang.String newFormatTypeStr)
Set the format, and add any associated parameters.
|
protected void |
_setTypesFromConfiguration(ConfigurationProperty formatProperty)
Set the key and value types from the types in the configuration property.
|
protected void |
_updateKeyValueTypes()
Update the key and value types.
|
void |
attributeChanged(Attribute attribute)
See if the formatType parameter changed.
|
java.lang.Object |
clone(Workspace workspace)
Clone this actor into the specified workspace.
|
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 |
getFormatClassName(java.lang.String engineName)
Get the name of the class that provides the format type implementation
for a specific engine.
|
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.
|
void |
preinitialize()
Update the port types based on the format type.
|
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints
_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, fire, getCausalityInterface, getDirector, getExecutiveDirector, getManager, initialize, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, prefire, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate, wrapup
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName
_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, 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, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exportMoML, getAttribute, getPort, isOpaque, portList
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
fire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate
addInitializable, initialize, removeInitializable, wrapup
description, getContainer, getDisplayName, getFullName, getName, getName, setName
getDerivedLevel, getDerivedList, propagateValue
public Parameter degreeOfParallelism
public StringParameter formatType
public StringParameter jars
public StringParameter keyValueTypes
protected Type _valueType
protected java.lang.String _formatTypeStr
protected java.util.List<ConfigurationProperty> _formatProperties
protected java.lang.String _FORMAT_TYPE_CATEGORY
public AtomicPatternActor(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class NamedObj
attribute
- The attribute that changed.IllegalActionException
- If the change is not acceptable
to this container (not thrown in this base class).public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in interface DDPPatternActor
clone
in class TypedAtomicActor
workspace
- The workspace for the new object.java.lang.CloneNotSupportedException
- If a derived class contains
an attribute that cannot be cloned.NamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public int getDegreeOfParallelism() throws IllegalActionException
getDegreeOfParallelism
in interface DDPPatternActor
IllegalActionException
public java.lang.String getDisplayRedirectDir() throws IllegalActionException
DDPPatternActor
getDisplayRedirectDir
in interface DDPPatternActor
IllegalActionException
public java.lang.String getExecutionClassName()
getExecutionClassName
in interface DDPPatternActor
public java.lang.String getExecutionCodeType() throws IllegalActionException
getExecutionCodeType
in interface DDPPatternActor
IllegalActionException
public java.lang.String getExecutionCode() throws IllegalActionException
getExecutionCode
in interface DDPPatternActor
IllegalActionException
public java.lang.String getFormatClassName(java.lang.String engineName) throws IllegalActionException
IllegalActionException
public java.lang.String getJars() throws IllegalActionException
getJars
in interface DDPPatternActor
IllegalActionException
public boolean getPrintExeInfo() throws IllegalActionException
getPrintExeInfo
in interface DDPPatternActor
IllegalActionException
public java.util.Map<java.lang.String,java.lang.String> getParameters() throws IllegalActionException
getParameters
in interface DDPPatternActor
IllegalActionException
public java.util.Map<java.lang.String,java.lang.String> getParaImplNames(java.lang.String engineName) throws IllegalActionException
getParaImplNames
in interface DDPPatternActor
IllegalActionException
public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
preinitialize
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.protected void _addFormats(java.lang.String inputOutputName)
protected void _setFormat(java.lang.String newFormatTypeStr) throws IllegalActionException
newFormatTypeStr
- the format name or a class name.IllegalActionException
protected void _setTypesFromConfiguration(ConfigurationProperty formatProperty) throws IllegalActionException
IllegalActionException
protected void _updateKeyValueTypes()