public class FailoverGuacamoleSocket extends Object implements GuacamoleSocket
| Constructor and Description |
|---|
FailoverGuacamoleSocket(GuacamoleSocket socket)
Creates a new FailoverGuacamoleSocket which reads Guacamole instructions
from the given socket, searching for errors from the upstream remote
desktop.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources in use by the connection represented by this
GuacamoleSocket.
|
GuacamoleReader |
getReader()
Returns a GuacamoleReader which can be used to read from the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
GuacamoleWriter |
getWriter()
Returns a GuacamoleWriter which can be used to write to the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
boolean |
isOpen()
Returns whether this GuacamoleSocket is open and can be used for reading
and writing.
|
public FailoverGuacamoleSocket(GuacamoleSocket socket) throws GuacamoleException, GuacamoleUpstreamException
socket - The GuacamoleSocket of the Guacamole connection this
FailoverGuacamoleSocket should handle.GuacamoleException - If an error occurs while reading data from the provided socket.GuacamoleUpstreamException - If the connection to guacd succeeded, but an error occurred while
connecting to the remote desktop.public GuacamoleReader getReader()
GuacamoleSocketgetReader in interface GuacamoleSocketpublic GuacamoleWriter getWriter()
GuacamoleSocketgetWriter in interface GuacamoleSocketpublic void close()
throws GuacamoleException
GuacamoleSocketclose in interface GuacamoleSocketGuacamoleException - If an error occurs while releasing resources.public boolean isOpen()
GuacamoleSocketisOpen in interface GuacamoleSocketCopyright © 2018. All rights reserved.