|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.NodePersistorVersion1xx
public class NodePersistorVersion1xx
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.NodePersistor |
---|
NodePersistor.LoadNodeModelSettingsFailPolicy |
Field Summary | |
---|---|
static List<String> |
OLD_AUTOEXECUTABLE_NODEFACTORIES
List of factories (only the simple class name), which were auto-executable in 1.3.x and need to be restored as configured only. |
Fields inherited from interface org.knime.core.node.NodePersistor |
---|
CFG_DATA_FILE, CFG_DATA_FILE_DIR, CFG_HAS_SPEC_FILE, CFG_ISCONFIGURED, CFG_ISEXECUTED, CFG_MEMORY_POLICY, CFG_MODEL_FILES, CFG_NAME, CFG_NODE_MESSAGE, CFG_OUTPUT_PREFIX, CFG_SPEC_FILES, DATA_FILE_DIR, DATA_FILE_PREFIX, INTERN_FILE_DIR, MODEL_FILE_PREFIX, SETTINGS_FILE_NAME |
Constructor Summary | |
---|---|
NodePersistorVersion1xx(SingleNodeContainerPersistorVersion1xx sncPersistor)
Constructor that should be used when node is saved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final List<String> OLD_AUTOEXECUTABLE_NODEFACTORIES
Constructor Detail |
---|
public NodePersistorVersion1xx(SingleNodeContainerPersistorVersion1xx sncPersistor)
Method Detail |
---|
static String createDataFileDirName(int index)
static String createModelFileName(int index)
protected NodeLogger getLogger()
protected boolean loadIsExecuted(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected boolean loadHasContent(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected String loadWarningMessage(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected boolean loadIsConfigured(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
static ReferencedFile getNodeInternDirectory(ReferencedFile nodeDir)
protected ReferencedFile loadNodeInternDirectory(NodeSettingsRO settings, ReferencedFile nodeDir) throws InvalidSettingsException
InvalidSettingsException
protected void loadPorts(Node node, ExecutionMonitor execMon, NodeSettingsRO settings, Map<Integer,BufferedDataTable> loadTblRep, HashMap<Integer,ContainerTable> tblRep) throws IOException, InvalidSettingsException, CanceledExecutionException
IOException
InvalidSettingsException
CanceledExecutionException
protected void loadInternalHeldTables(Node node, ExecutionMonitor execMon, NodeSettingsRO settings, Map<Integer,BufferedDataTable> loadTblRep, HashMap<Integer,ContainerTable> tblRep) throws IOException, InvalidSettingsException, CanceledExecutionException
IOException
InvalidSettingsException
CanceledExecutionException
public SingleNodeContainerPersistorVersion1xx getSingleNodeContainerPersistor()
public boolean isConfigured()
isConfigured
in interface NodePersistor
public boolean isExecuted()
isExecuted
in interface NodePersistor
public boolean hasContent()
hasContent
in interface NodeContentPersistor
public boolean needsResetAfterLoad()
needsResetAfterLoad
in interface NodeContentPersistor
public void setNeedsResetAfterLoad()
setNeedsResetAfterLoad
in interface NodeContentPersistor
public void setDirtyAfterLoad()
NodeContentPersistor.setNeedsResetAfterLoad()
is called.
setDirtyAfterLoad
in interface NodePersistor
public boolean isDirtyAfterLoad()
NodePersistor.setDirtyAfterLoad()
has been set to true or
NodeContentPersistor.needsResetAfterLoad()
returns true.
isDirtyAfterLoad
in interface NodePersistor
public boolean mustWarnOnDataLoadError()
mustWarnOnDataLoadError
in interface NodeContentPersistor
public void load(Node node, ReferencedFile configFileRef, ExecutionMonitor exec, Map<Integer,BufferedDataTable> loadTblRep, HashMap<Integer,ContainerTable> tblRep, WorkflowPersistor.LoadResult loadResult) throws IOException, CanceledExecutionException
node
- The target node, used for meta info (#ports, e.g) and to
invoke the
Node#load(NodePersistor, ExecutionMonitor, LoadResult)
onconfigFileRef
- The configuration file for the node.exec
- For progress/cancelationloadTblRep
- The table repository used during loadtblRep
- The table repository for blob handlingloadResult
- where to add errors to
IOException
- If files can't be read
CanceledExecutionException
- If canceledpublic NodePersistor.LoadNodeModelSettingsFailPolicy getModelSettingsFailPolicy()
getModelSettingsFailPolicy
in interface NodePersistor
public ReferencedFile getNodeDirectory()
public ReferencedFile getNodeInternDirectory()
getNodeInternDirectory
in interface NodeContentPersistor
public NodeSettingsRO getSettings()
getSettings
in interface NodePersistor
public String getWarningMessage()
getWarningMessage
in interface NodeContentPersistor
public PortObject getPortObject(int outportIndex)
getPortObject
in interface NodeContentPersistor
public void setPortObject(int idx, PortObject portObject)
idx
- The outport index.portObject
- the portObjects to setpublic PortObjectSpec getPortObjectSpec(int outportIndex)
getPortObjectSpec
in interface NodeContentPersistor
public void setPortObjectSpec(int idx, PortObjectSpec portObjectSpec)
idx
- The outport index.portObjectSpec
- the portObjects to setpublic String getPortObjectSummary(int outportIndex)
getPortObjectSummary
in interface NodeContentPersistor
public void setPortObjectSummary(int idx, String portObjectSummary)
idx
- port for which to set summaryportObjectSummary
- the portObjectSummary to setpublic BufferedDataTable[] getInternalHeldTables()
getInternalHeldTables
in interface NodeContentPersistor
public void setInternalHeldTables(BufferedDataTable[] internalHeldTables)
internalHeldTables
- the internalHeldTables to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |