Package ej.rcommand.serversocket
Class SocketRemoteConnection
- java.lang.Object
-
- ej.rcommand.impl.StreamRemoteConnection
-
- ej.rcommand.serversocket.SocketRemoteConnection
-
- All Implemented Interfaces:
CommandReader,CommandSender,RemoteConnection
public class SocketRemoteConnection extends StreamRemoteConnection
The connection with a remote socket that uses buffered streams. The size of the buffers used is 8192 by default and can be modified by setting the propertyrcommand.serversocket.buffer.size.
-
-
Constructor Summary
Constructors Constructor Description SocketRemoteConnection(Socket socket, RemoteCommandServer adminServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the connection.-
Methods inherited from class ej.rcommand.impl.StreamRemoteConnection
flushCommand, getInputStream, getOutputStream, readBoolean, readByteArray, readByteArrayAsInputStream, readCommand, readDouble, readFloat, readInputStream, readInt, readLong, readObject, readParameters, readString, releaseLock, sendBoolean, sendByteArray, sendByteArray, sendByteArrayAsInputStream, sendDouble, sendFloat, sendInputStream, sendInt, sendLong, sendParams, sendString, skipParameters, startCommand, takeLock
-
-
-
-
Constructor Detail
-
SocketRemoteConnection
public SocketRemoteConnection(Socket socket, RemoteCommandServer adminServer) throws IOException
- Parameters:
socket-adminServer-- Throws:
IOException
-
-
Method Detail
-
close
public void close()
Description copied from interface:RemoteConnectionCloses the connection.- Specified by:
closein interfaceRemoteConnection- Overrides:
closein classStreamRemoteConnection
-
-