Search in sources :

Example 1 with ThreadNodeExecutionJobManager

use of org.knime.core.node.exec.ThreadNodeExecutionJobManager in project knime-core by knime.

the class NativeNodeContainer method performStateTransitionEXECUTING.

/**
 * {@inheritDoc}
 */
@Override
void performStateTransitionEXECUTING() {
    synchronized (m_nodeMutex) {
        switch(getInternalState()) {
            case PREEXECUTE:
                this.getNode().clearLoopContext();
                if (findJobManager() instanceof ThreadNodeExecutionJobManager) {
                    setInternalState(InternalNodeContainerState.EXECUTING);
                } else {
                    setInternalState(InternalNodeContainerState.EXECUTINGREMOTELY);
                }
                IWriteFileStoreHandler fsh = initFileStore(getParent().getFileStoreHandlerRepository());
                m_node.setFileStoreHandler(fsh);
                break;
            default:
                throwIllegalStateException();
        }
    }
}
Also used : IWriteFileStoreHandler(org.knime.core.data.filestore.internal.IWriteFileStoreHandler) ThreadNodeExecutionJobManager(org.knime.core.node.exec.ThreadNodeExecutionJobManager)

Aggregations

IWriteFileStoreHandler (org.knime.core.data.filestore.internal.IWriteFileStoreHandler)1 ThreadNodeExecutionJobManager (org.knime.core.node.exec.ThreadNodeExecutionJobManager)1