public class VirtualProcess extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(VirtualProcess process) |
void |
destroy() |
VirtualProcess |
findProcess(long pid) |
Collection<VirtualProcess> |
getChildren() |
ShellCommand |
getCommand() |
Connection |
getConnection() |
Console |
getConsole() |
SshContext |
getContext() |
AbstractFile |
getCurrentDirectory() |
Environment |
getEnvironment() |
AbstractFileFactory<? extends AbstractFile> |
getFileFactory() |
Msh |
getMsh() |
VirtualProcess |
getParent() |
int |
getPID() |
VirtualProcessFactory |
getProcessFactory() |
VirtualProcess |
getRootProcess() |
SessionChannel |
getSessionChannel() |
TerminalOutput |
getTerminal() |
Thread |
getThread() |
boolean |
killProcess(long pid) |
protected void |
removeChild(VirtualProcess process) |
void |
setCommand(ShellCommand command) |
void |
setCurrentDirectory(AbstractFile workingDirectory) |
void |
setCurrentDirectory(String workingDirectory) |
void |
setEnvironment(Environment environment) |
void |
setParent(VirtualProcess parent) |
void |
setThread(Thread thread) |
public VirtualProcessFactory getProcessFactory()
public TerminalOutput getTerminal()
public Connection getConnection()
public SshContext getContext()
public SessionChannel getSessionChannel()
public Console getConsole()
public Msh getMsh()
public boolean killProcess(long pid)
public VirtualProcess getRootProcess()
public void destroy()
protected void removeChild(VirtualProcess process)
protected void addChild(VirtualProcess process)
public VirtualProcess getParent()
public void setParent(VirtualProcess parent)
public Environment getEnvironment()
public void setEnvironment(Environment environment)
public Thread getThread()
public void setThread(Thread thread)
public ShellCommand getCommand()
public void setCommand(ShellCommand command)
public AbstractFile getCurrentDirectory()
public AbstractFileFactory<? extends AbstractFile> getFileFactory()
public void setCurrentDirectory(String workingDirectory) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public void setCurrentDirectory(AbstractFile workingDirectory) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public Collection<VirtualProcess> getChildren()
public VirtualProcess findProcess(long pid)
public int getPID()
Copyright © 2024. All rights reserved.