Interface ProcessHandleManager
public interface ProcessHandleManager
ProcessHandleManager allows to create new processes and access existing ones
-
Method Summary
Modifier and TypeMethodDescriptioncreateNew(ApplicationUser managingUser, ProcessDisplayParameters displayParameters) Creates new processvoiddelete(long id) Deletes the process with the given idgetFeedback(Long id) getUIController(Long id)
-
Method Details
-
createNew
@NotNull ProcessHandle createNew(@Nullable ApplicationUser managingUser, @Nullable ProcessDisplayParameters displayParameters) Creates new process- Parameters:
managingUser- User that will be allowed to manage the processdisplayParameters- Display parameters of the process- Returns:
- ProcessHandle object to read and update process state
-
getInfo
- Parameters:
id- ID of the process- Returns:
- ProcessInfo object to read process state. Null if there is no such process
-
getFeedback
- Parameters:
id- ID of the process- Returns:
- ProcessFeedback object to update process state. Null if there is no such process
-
getUIController
- Parameters:
id- ID of the process- Returns:
- ProcessUIController object to update UI. Null if there is no such process
-
delete
void delete(long id) Deletes the process with the given id- Parameters:
id- ID of the process
-