Package aQute.remote.plugin
Class LauncherSupervisor
- All Implemented Interfaces:
Supervisor
This is the supervisor on the bnd launcher side. It provides the SHA
repository for the agent and handles the redirection. It also handles the
events.
-
Field Summary
Fields inherited from class aQute.remote.util.AgentSupervisor
exitCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidvoidAn event sent from the agent.intvoidredirect(int shell) voidsetShell(int shellPort) The shell port to use.voidsetStderr(Appendable err) voidsetStdin(InputStream in) voidsetStdout(Appendable out) voidsetStreams(Appendable out, Appendable err) booleanRedirected standard error.booleanRedirected standard outputMethods inherited from class aQute.remote.util.AgentSupervisor
addFile, close, connect, connect, exit, getAgent, getFile, isOpen, join, setAgentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface aQute.remote.api.Supervisor
getFile
-
Constructor Details
-
LauncherSupervisor
public LauncherSupervisor()
-
-
Method Details
-
event
Description copied from interface:SupervisorAn event sent from the agent.- Specified by:
eventin interfaceSupervisor- Parameters:
e- the event- Throws:
Exception
-
stdout
Description copied from interface:SupervisorRedirected standard output- Specified by:
stdoutin interfaceSupervisor- Parameters:
out- the text that was redirected- Returns:
- ignored (to make sync)
- Throws:
Exception
-
stderr
Description copied from interface:SupervisorRedirected standard error.- Specified by:
stderrin interfaceSupervisor- Parameters:
out- the text that was redirected- Returns:
- ignored (to make sync)
- Throws:
Exception
-
setStdout
- Throws:
Exception
-
setStderr
- Throws:
Exception
-
setStdin
- Throws:
Exception
-
setStreams
- Throws:
Exception
-
connect
- Throws:
Exception
-
setShell
public void setShell(int shellPort) The shell port to use.- <0 – Attach to a local Gogo CommandSession
- 0 – Use the standard console
- else – Open a stream to that port
- Parameters:
shellPort-
-
getExitCode
public int getExitCode() -
abort
- Throws:
Exception
-
redirect
- Throws:
Exception
-