Package aQute.remote.agent
Class GogoRedirector
java.lang.Object
aQute.remote.agent.GogoRedirector
- All Implemented Interfaces:
Redirector,Closeable,AutoCloseable
Create a new Gogo Shell Command Session if there is a Gogo Command Processor
service present. If no Command Processor is present we will idle (a service
tracker is used that will handle multiple and switches).
There is a bit of a class space problem since the agent can be started on the framework side of the class path. For this reason, we carry a copy of the Gogo API classes and we will use proxies to use them. This leaves the Gogo API unconstrained.
-
Constructor Summary
ConstructorsConstructorDescriptionGogoRedirector(AgentServer agentServer, org.osgi.framework.BundleContext context) Create a redirector -
Method Summary
-
Constructor Details
-
GogoRedirector
Create a redirector- Parameters:
agentServer- the servercontext- the context, needed to get the
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getPort
public int getPort()Description copied from interface:RedirectorThe port (or pseudo port) this one is connected to- Specified by:
getPortin interfaceRedirector- Returns:
- the port
-
stdin
Description copied from interface:RedirectorProvide input- Specified by:
stdinin interfaceRedirector- Parameters:
s- the input- Throws:
Exception
-
getOut
Description copied from interface:RedirectorGet the output stream- Specified by:
getOutin interfaceRedirector- Throws:
Exception
-