|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.NodePersistorVersion1xx
org.knime.core.node.NodePersistorVersion200
public class NodePersistorVersion200
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.core.node.NodePersistor |
|---|
NodePersistor.LoadNodeModelSettingsFailPolicy |
| Field Summary | |
|---|---|
static String |
INTERNAL_TABLE_FOLDER_PREFIX
Prefix of associated port folders. |
static String |
PORT_FOLDER_PREFIX
Prefix of associated port folders. |
| Fields inherited from class org.knime.core.node.NodePersistorVersion1xx |
|---|
OLD_AUTOEXECUTABLE_NODEFACTORIES |
| 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 | |
|---|---|
NodePersistorVersion200(SingleNodeContainerPersistorVersion200 sncPersistor,
WorkflowPersistorVersion200.LoadVersion loadVersion)
Invokes super constructor. |
|
| Method Summary | |
|---|---|
NodePersistor.LoadNodeModelSettingsFailPolicy |
getModelSettingsFailPolicy()
|
protected boolean |
loadHasContent(NodeSettingsRO settings)
|
protected void |
loadInternalHeldTables(Node node,
ExecutionMonitor execMon,
NodeSettingsRO settings,
Map<Integer,BufferedDataTable> loadTblRep,
HashMap<Integer,ContainerTable> tblRep)
Sub class hook to read internal tables. |
protected boolean |
loadIsConfigured(NodeSettingsRO settings)
|
protected boolean |
loadIsExecuted(NodeSettingsRO settings)
|
protected boolean |
loadIsInactive(NodeSettingsRO settings)
|
protected void |
loadPort(Node node,
ReferencedFile portDir,
NodeSettingsRO settings,
ExecutionMonitor exec,
int portIdx,
Map<Integer,BufferedDataTable> loadTblRep,
HashMap<Integer,ContainerTable> tblRep)
|
protected int |
loadPortIndex(NodeSettingsRO singlePortSetting)
|
protected void |
loadPorts(Node node,
ExecutionMonitor exec,
NodeSettingsRO settings,
Map<Integer,BufferedDataTable> loadTblRep,
HashMap<Integer,ContainerTable> tblRep)
|
protected String |
loadWarningMessage(NodeSettingsRO settings)
Sub class hook to read warning message. |
static void |
save(SingleNodeContainer snc,
ReferencedFile nodeFile,
ExecutionMonitor execMon,
boolean isSaveData)
Saves the node, node settings, and all internal structures, spec, data, and models, to the given node directory (located at the node file). |
protected static void |
saveCustomName(Node node,
NodeSettingsWO settings)
|
protected static void |
saveHasContent(Node node,
NodeSettingsWO settings)
|
protected static void |
saveInternalHeldTables(Node node,
ReferencedFile nodeDirRef,
NodeSettingsWO settings,
ExecutionMonitor exec,
boolean saveData)
|
protected static void |
saveIsInactive(Node node,
NodeSettingsWO settings)
|
protected static void |
saveNodeInternDirectory(Node node,
File nodeInternDir,
NodeSettingsWO settings,
ExecutionMonitor exec)
Sub-class hook to save location of internal directory. |
protected static void |
savePort(Node node,
File portDir,
NodeSettingsWO settings,
ExecutionMonitor exec,
int portIdx,
boolean saveData)
|
protected static void |
savePorts(Node node,
ReferencedFile nodeDirRef,
NodeSettingsWO settings,
ExecutionMonitor exec,
boolean saveData)
|
protected static void |
saveWarningMessage(Node node,
NodeSettingsWO settings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PORT_FOLDER_PREFIX
public static final String INTERNAL_TABLE_FOLDER_PREFIX
| Constructor Detail |
|---|
public NodePersistorVersion200(SingleNodeContainerPersistorVersion200 sncPersistor,
WorkflowPersistorVersion200.LoadVersion loadVersion)
sncPersistor - Forwarded.loadVersion - Version, must not be null.| Method Detail |
|---|
public static void save(SingleNodeContainer snc,
ReferencedFile nodeFile,
ExecutionMonitor execMon,
boolean isSaveData)
throws IOException,
CanceledExecutionException
nodeFile - To write node settings to.execMon - Used to report progress during saving.
IOException - If the node file can't be found or read.
CanceledExecutionException - If the saving has been canceled.
protected static void savePorts(Node node,
ReferencedFile nodeDirRef,
NodeSettingsWO settings,
ExecutionMonitor exec,
boolean saveData)
throws IOException,
CanceledExecutionException
IOException
CanceledExecutionException
protected static void saveInternalHeldTables(Node node,
ReferencedFile nodeDirRef,
NodeSettingsWO settings,
ExecutionMonitor exec,
boolean saveData)
throws IOException,
CanceledExecutionException
IOException
CanceledExecutionException
protected static void savePort(Node node,
File portDir,
NodeSettingsWO settings,
ExecutionMonitor exec,
int portIdx,
boolean saveData)
throws IOException,
CanceledExecutionException
IOException
CanceledExecutionException
protected static void saveHasContent(Node node,
NodeSettingsWO settings)
protected static void saveIsInactive(Node node,
NodeSettingsWO settings)
protected static void saveWarningMessage(Node node,
NodeSettingsWO settings)
protected static void saveNodeInternDirectory(Node node,
File nodeInternDir,
NodeSettingsWO settings,
ExecutionMonitor exec)
throws CanceledExecutionException
node - NodenodeInternDir - Directorysettings - Ignored (possibly not in sub-classes)exec - exec mon.
CanceledExecutionException - If canceled.
protected static void saveCustomName(Node node,
NodeSettingsWO settings)
protected boolean loadIsExecuted(NodeSettingsRO settings)
throws InvalidSettingsException
loadIsExecuted in class NodePersistorVersion1xxInvalidSettingsException
protected String loadWarningMessage(NodeSettingsRO settings)
throws InvalidSettingsException
loadWarningMessage in class NodePersistorVersion1xxsettings - Ignored
InvalidSettingsException - Not actually thrownpublic NodePersistor.LoadNodeModelSettingsFailPolicy getModelSettingsFailPolicy()
getModelSettingsFailPolicy in interface NodePersistorgetModelSettingsFailPolicy in class NodePersistorVersion1xx
protected boolean loadHasContent(NodeSettingsRO settings)
throws InvalidSettingsException
loadHasContent in class NodePersistorVersion1xxInvalidSettingsException
protected boolean loadIsInactive(NodeSettingsRO settings)
throws InvalidSettingsException
loadIsInactive in class NodePersistorVersion1xxInvalidSettingsException
protected boolean loadIsConfigured(NodeSettingsRO settings)
throws InvalidSettingsException
loadIsConfigured in class NodePersistorVersion1xxInvalidSettingsException
protected void loadInternalHeldTables(Node node,
ExecutionMonitor execMon,
NodeSettingsRO settings,
Map<Integer,BufferedDataTable> loadTblRep,
HashMap<Integer,ContainerTable> tblRep)
throws IOException,
InvalidSettingsException,
CanceledExecutionException
loadInternalHeldTables in class NodePersistorVersion1xxnode - Ignored.execMon - Ignored.settings - Ignored.loadTblRep - Ignored.tblRep - Ignored.
IOException - Not actually thrown.
InvalidSettingsException - Not actually thrown.
CanceledExecutionException - Not actually thrown.
protected void loadPorts(Node node,
ExecutionMonitor exec,
NodeSettingsRO settings,
Map<Integer,BufferedDataTable> loadTblRep,
HashMap<Integer,ContainerTable> tblRep)
throws IOException,
InvalidSettingsException,
CanceledExecutionException
loadPorts in class NodePersistorVersion1xxIOException
InvalidSettingsException
CanceledExecutionException
protected int loadPortIndex(NodeSettingsRO singlePortSetting)
throws InvalidSettingsException
InvalidSettingsException
protected void loadPort(Node node,
ReferencedFile portDir,
NodeSettingsRO settings,
ExecutionMonitor exec,
int portIdx,
Map<Integer,BufferedDataTable> loadTblRep,
HashMap<Integer,ContainerTable> tblRep)
throws IOException,
InvalidSettingsException,
CanceledExecutionException
IOException
InvalidSettingsException
CanceledExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||