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()
GuacamoleSocket
getReader
in interface GuacamoleSocket
public GuacamoleWriter getWriter()
GuacamoleSocket
getWriter
in interface GuacamoleSocket
public void close() throws GuacamoleException
GuacamoleSocket
close
in interface GuacamoleSocket
GuacamoleException
- If an error occurs while releasing resources.public boolean isOpen()
GuacamoleSocket
isOpen
in interface GuacamoleSocket
Copyright © 2017. All rights reserved.