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_commonKeyValueTypesCOMPLETED, 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, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexportMoML, 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 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 NamedObjattribute - 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 DDPPatternActorclone in class TypedAtomicActorworkspace - 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 DDPPatternActorIllegalActionExceptionpublic java.lang.String getDisplayRedirectDir() throws IllegalActionException
DDPPatternActorgetDisplayRedirectDir 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 getFormatClassName(java.lang.String engineName) throws IllegalActionException
IllegalActionExceptionpublic 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 void preinitialize() throws IllegalActionException
preinitialize in interface Initializablepreinitialize 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.IllegalActionExceptionprotected void _setTypesFromConfiguration(ConfigurationProperty formatProperty) throws IllegalActionException
IllegalActionExceptionprotected void _updateKeyValueTypes()