public class FailoverGuacamoleSocket extends DelegatingGuacamoleSocket
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 until a maximum of 128KB of instruction data has been queued.
|
FailoverGuacamoleSocket(GuacamoleSocket socket,
int instructionQueueLimit)
Creates a new FailoverGuacamoleSocket which reads Guacamole instructions
from the given socket, searching for errors from the upstream remote
desktop until the given instruction queue limit is reached.
|
Modifier and Type | Method and Description |
---|---|
GuacamoleReader |
getReader()
Returns a GuacamoleReader which can be used to read from the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
close, getDelegateSocket, getProtocol, getWriter, isOpen
public FailoverGuacamoleSocket(GuacamoleSocket socket, int instructionQueueLimit) throws GuacamoleException, GuacamoleUpstreamException
socket
- The GuacamoleSocket of the Guacamole connection this
FailoverGuacamoleSocket should handle.instructionQueueLimit
- The maximum number of characters of Guacamole instruction data to
store within the instruction queue while searching for errors. Once
this limit is exceeded, the connection is assumed to be successful.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 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
getReader
in class DelegatingGuacamoleSocket
Copyright © 2020. All rights reserved.