|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.virtual.ParallelizedChunkContentMaster
public class ParallelizedChunkContentMaster
Represents all parallel chunks (@see{ParallelChunkContext}) together and also encapsulating metanode.
| Field Summary | |
|---|---|
(package private) ParallelizedChunkContent[] |
m_chunks
individual chunks |
(package private) LoopEndParallelizeNode |
m_endNode
end node waiting for chunks |
(package private) WorkflowManager |
m_manager
metanode container for all chunks |
| Constructor Summary | |
|---|---|
ParallelizedChunkContentMaster(WorkflowManager wfm,
LoopEndParallelizeNode endNode,
int chunkCount)
Create new chunk object master - also knows Workflowmanager the chunks are located in. |
|
| Method Summary | |
|---|---|
void |
addParallelChunk(int index,
ParallelizedChunkContent pcc)
Add a new chunk to the list. |
void |
cancelChunkExecution()
Trigger cancelation of chunk execution |
void |
cleanupChunks()
Clean up chunks (and containing WFM). |
void |
executeChunks()
Start execution of all chunks. |
ParallelizedChunkContent |
getChunk(int i)
|
int |
nrChunks()
|
int |
nrExecutedChunks()
|
int |
nrExecutingChunks()
|
int |
nrFailedChunks()
|
void |
stateChanged(NodeStateEvent state)
Callback from node, indicating that the given node has changed its state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
ParallelizedChunkContent[] m_chunks
WorkflowManager m_manager
LoopEndParallelizeNode m_endNode
| Constructor Detail |
|---|
public ParallelizedChunkContentMaster(WorkflowManager wfm,
LoopEndParallelizeNode endNode,
int chunkCount)
wfm - the workflowmanager holding the chunksendNode - corresponding end node of the loopchunkCount - the number of chunks.| Method Detail |
|---|
public void addParallelChunk(int index,
ParallelizedChunkContent pcc)
index - of chunkpcc - content of chunkpublic int nrChunks()
public ParallelizedChunkContent getChunk(int i)
i - index
public void executeChunks()
public int nrExecutedChunks()
public int nrExecutingChunks()
public int nrFailedChunks()
public void cancelChunkExecution()
public void cleanupChunks()
public void stateChanged(NodeStateEvent state)
stateChanged in interface NodeStateChangeListenerstate - Indicates the change of this node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||