|
||||||||||
| 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,
WorkflowPersistorVersion200.LoadVersion version)
Creates persistor for both load and save. |
|
| 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,
WorkflowPersistorVersion200.LoadVersion version)
sncPersistor - The corresponding SNC persistor.version - The version string, see
getLoadVersion() for details| Method Detail |
|---|
static String createDataFileDirName(int index)
static String createModelFileName(int index)
protected NodeLogger getLogger()
public WorkflowPersistorVersion200.LoadVersion getLoadVersion()
protected boolean loadIsExecuted(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected boolean loadHasContent(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected boolean loadIsInactive(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected String loadWarningMessage(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored
InvalidSettingsException - Not actually thrown
protected boolean loadIsConfigured(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsExceptionstatic ReferencedFile getNodeInternDirectory(ReferencedFile nodeDir)
protected ReferencedFile loadNodeInternDirectory(NodeSettingsRO settings,
ReferencedFile nodeDir)
throws InvalidSettingsException
settings - Ignored (but allows sub-classing)nodeDir - Node directory.
InvalidSettingsException - If that fails for any reason.
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
node - Ignored.execMon - Ignored.settings - Ignored.loadTblRep - Ignored.tblRep - Ignored.
IOException - Not actually thrown.
InvalidSettingsException - Not actually thrown.
CanceledExecutionException - Not actually thrown.protected SingleNodeContainerPersistorVersion1xx getSingleNodeContainerPersistor()
protected WorkflowLoadHelper getLoadHelper()
public boolean isConfigured()
isConfigured in interface NodePersistorpublic boolean isExecuted()
isExecuted in interface NodePersistorpublic boolean hasContent()
hasContent in interface NodeContentPersistorprotected boolean isInactive()
public boolean needsResetAfterLoad()
needsResetAfterLoad in interface NodeContentPersistorpublic void setNeedsResetAfterLoad()
setNeedsResetAfterLoad in interface NodeContentPersistorpublic void setDirtyAfterLoad()
NodeContentPersistor.setNeedsResetAfterLoad() is called.
setDirtyAfterLoad in interface NodePersistorpublic boolean isDirtyAfterLoad()
NodePersistor.setDirtyAfterLoad() has been set to true or
NodeContentPersistor.needsResetAfterLoad() returns true.
isDirtyAfterLoad in interface NodePersistorpublic boolean mustWarnOnDataLoadError()
mustWarnOnDataLoadError in interface NodeContentPersistor
public void load(Node node,
ReferencedFile configFileRef,
WorkflowPersistor parentPersistor,
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.parentPersistor - workflow persistor for decryptionexec - 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 NodePersistorprotected ReferencedFile getNodeDirectory()
public ReferencedFile getNodeInternDirectory()
getNodeInternDirectory in interface NodeContentPersistorpublic NodeSettingsRO getSettings()
getSettings in interface NodePersistorpublic String getWarningMessage()
getWarningMessage in interface NodeContentPersistorpublic 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 NodeContentPersistorpublic 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 | |||||||||