Search in sources :

Example 1 with SparkStreamingSubjobContainer

use of org.talend.designer.core.ui.editor.subjobcontainer.sparkstreaming.SparkStreamingSubjobContainer in project tdi-studio-se by Talend.

the class ProcessComposite method refreshSubjobContainer.

/*
     * This method is used to clean the Spark Streaming statistics.
     */
public void refreshSubjobContainer() {
    org.talend.core.model.process.IProcess2 process = processContext.getProcess();
    List<? extends ISubjobContainer> subjobContainers = process.getSubjobContainers();
    for (ISubjobContainer subjobContainer : subjobContainers) {
        if (subjobContainer instanceof SparkStreamingSubjobContainer) {
            ((SparkStreamingSubjobContainer) subjobContainer).updateState("UPDATE_SPARKSTREAMING_STATUS", null, 0, 0, "", "", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
            "");
        }
    }
}
Also used : ISubjobContainer(org.talend.core.model.process.ISubjobContainer) SparkStreamingSubjobContainer(org.talend.designer.core.ui.editor.subjobcontainer.sparkstreaming.SparkStreamingSubjobContainer) IProcess2(org.talend.core.model.process.IProcess2)

Aggregations

IProcess2 (org.talend.core.model.process.IProcess2)1 ISubjobContainer (org.talend.core.model.process.ISubjobContainer)1 SparkStreamingSubjobContainer (org.talend.designer.core.ui.editor.subjobcontainer.sparkstreaming.SparkStreamingSubjobContainer)1