Package aQute.remote.api
Interface Supervisor
public interface Supervisor
A Supervisor handles the initiating side of a session with a remote agent.
The methods defined in this interface are intended to be called by the remote
agent, not the initiator. I.e. this is not the interface the initiator will
use to control the session.
-
Method Summary
-
Method Details
-
event
An event sent from the agent.- Parameters:
e- the event- Throws:
Exception
-
stdout
Redirected standard output- Parameters:
out- the text that was redirected- Returns:
- ignored (to make sync)
- Throws:
Exception
-
stderr
Redirected standard error.- Parameters:
out- the text that was redirected- Returns:
- ignored (to make sync)
- Throws:
Exception
-
getFile
Return the contents of the file that has the given SHA-1. The initiator of the connection should in general register the files it refers to in the communication to the agent. The agent then calls this method to retrieve the contents if it does not have it in its local cache.- Parameters:
sha- the SHA-1- Returns:
- the contents of that file or null if no such file exists.
- Throws:
Exception
-