public class WisitSession extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.felix.service.command.CommandSession |
shellSession
Gogo shell session.
|
| Constructor and Description |
|---|
WisitSession(org.apache.felix.service.command.CommandProcessor processor,
org.wisdom.api.http.websockets.Publisher publisher,
String topic)
Create a new WisitSession.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the session.
|
CommandResult |
exec(String commandLine)
Execute a command on the gogo shell.
|
private String |
format(Object o)
Format the given object as a String.
|
private final org.apache.felix.service.command.CommandSession shellSession
public WisitSession(org.apache.felix.service.command.CommandProcessor processor,
org.wisdom.api.http.websockets.Publisher publisher,
String topic)
processor - The CommandProcessor used in order to create the commandSession.publisher - The websocket publisher on which the asynchronous commandResult will be broadcast.topic - The websocket topic.public void close()
public CommandResult exec(String commandLine)
commandLine - The command to be executed.Copyright © 2013–2015 Wisdom Framework. All rights reserved.