blob: 30a6c9cc4a2a0fe02f33bd8f58604887a895e4b2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2006, 2007 Los Alamos National Security, LLC.
* This material was produced under U.S. Government contract DE-AC52-06NA25396
* for Los Alamos National Laboratory (LANL), which is operated by the Los Alamos
* National Security, LLC (LANS) for the U.S. Department of Energy. The U.S. Government has
* rights to use, reproduce, and distribute this software. NEITHER THE
* GOVERNMENT NOR LANS MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR
* ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. If software is modified
* to produce derivative works, such modified software should be clearly marked,
* so as not to confuse it with the version available from LANL.
*
* Additionally, this program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.ptp.core.elements.events;
import java.util.Collection;
import org.eclipse.ptp.core.elements.IPElement;
import org.eclipse.ptp.core.elements.IPProcess;
/**
* This event is generated when one or more new processes are created. It is
* a bulk event that is sent to child listeners on the source element. Since
* processes belong to a job, but can also be associated with a node, the
* source element can be either a job or node.
*
* @see org.eclipse.ptp.core.elements.listeners.IJobChildListener
* @see org.eclipse.ptp.core.elements.listeners.INodeChildListener
*/
public interface INewProcessEvent {
/**
* Get the new processes
*
* @return the new processes
*/
public Collection<IPProcess> getProcesses();
/**
* Get the source of this event. Since a process normally has two parents,
* a job and a node, his will return the source that generated the
* event.
*
* @return the source of the event
*/
public IPElement getSource();
}