Class OpenSSHLimitsExtensionInfo
- java.lang.Object
-
- org.apache.sshd.sftp.client.extensions.openssh.OpenSSHLimitsExtensionInfo
-
- All Implemented Interfaces:
Cloneable
public class OpenSSHLimitsExtensionInfo extends Object implements Cloneable
Response for the "limits@openssh.com" request- Author:
- Apache MINA SSHD Project
- See Also:
- OpenSSH - section 4.8
-
-
Field Summary
Fields Modifier and Type Field Description longmaxOpenHandlesThe maximum number of active handles that the server allows (e.g.longmaxPacketLengthThe total number of bytes in a single SFTP packet.longmaxReadLengthThe largest length in a SSH_FXP_READ packet.longmaxWriteLengthThe largest length in a SSH_FXP_WRITE packet the server will accept
-
Constructor Summary
Constructors Constructor Description OpenSSHLimitsExtensionInfo()OpenSSHLimitsExtensionInfo(PropertyResolver resolver)OpenSSHLimitsExtensionInfo(org.apache.sshd.common.util.buffer.Buffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenSSHLimitsExtensionInfoclone()static <I extends OpenSSHLimitsExtensionInfo>
Idecode(org.apache.sshd.common.util.buffer.Buffer buffer, I info)<B extends org.apache.sshd.common.util.buffer.Buffer>
Bencode(B buffer)static <B extends org.apache.sshd.common.util.buffer.Buffer>
Bencode(B buffer, OpenSSHLimitsExtensionInfo info)booleanequals(Object obj)static <I extends OpenSSHLimitsExtensionInfo>
Ifill(PropertyResolver resolver, I info)inthashCode()StringtoString()
-
-
-
Field Detail
-
maxPacketLength
public long maxPacketLength
The total number of bytes in a single SFTP packet.
-
maxReadLength
public long maxReadLength
The largest length in a SSH_FXP_READ packet. Even if the client requests a larger size,\ servers will usually respond with a shorter SSH_FXP_DATA packet
-
maxWriteLength
public long maxWriteLength
The largest length in a SSH_FXP_WRITE packet the server will accept
-
maxOpenHandles
public long maxOpenHandles
The maximum number of active handles that the server allows (e.g. handles created by SSH_FXP_OPEN and SSH_FXP_OPENDIR packets). If the server doesn't enforce a specific limit, then the field may be set to 0. This implies the server relies on the OS to enforce limits (e.g. available memory or file handles), and such limits might be dynamic. The client SHOULD take care to not try to exceed reasonable limits.
-
-
Constructor Detail
-
OpenSSHLimitsExtensionInfo
public OpenSSHLimitsExtensionInfo()
-
OpenSSHLimitsExtensionInfo
public OpenSSHLimitsExtensionInfo(org.apache.sshd.common.util.buffer.Buffer buffer)
-
OpenSSHLimitsExtensionInfo
public OpenSSHLimitsExtensionInfo(PropertyResolver resolver)
-
-
Method Detail
-
encode
public <B extends org.apache.sshd.common.util.buffer.Buffer> B encode(B buffer)
-
clone
public OpenSSHLimitsExtensionInfo clone()
-
encode
public static <B extends org.apache.sshd.common.util.buffer.Buffer> B encode(B buffer, OpenSSHLimitsExtensionInfo info)
-
decode
public static <I extends OpenSSHLimitsExtensionInfo> I decode(org.apache.sshd.common.util.buffer.Buffer buffer, I info)
-
fill
public static <I extends OpenSSHLimitsExtensionInfo> I fill(PropertyResolver resolver, I info)
-
-