public class RemoteCommandSession extends Object
CommandSession
interface when it comes to session management.
Once implementations are mature enough to not assume environmental behavior this class will become obsolete.
Constructor and Description |
---|
RemoteCommandSession(org.apache.felix.service.command.CommandSession delegate) |
Modifier and Type | Method and Description |
---|---|
org.apache.felix.service.command.CommandSession |
attach(InputStream in,
PrintStream out,
PrintStream err)
Attached the specified streams to the delegate of this instance and
returns the modified delegate.
|
void |
detach()
Detaches all previously attached streams and hence, ensures that there
are no stale references left.
|
String |
getId()
Get the identifier for this session, which is a UUID of type 4.
|
public RemoteCommandSession(org.apache.felix.service.command.CommandSession delegate)
public String getId()
public org.apache.felix.service.command.CommandSession attach(InputStream in, PrintStream out, PrintStream err)
in
- The "stdin" stream for the sessionout
- The "stdout" stream for the sessionerr
- The "stderr" stream for the sessionCommandSession
delegatedetach()
public void detach()
Copyright © 2018. All rights reserved.