Class OpenSSHLimitsExtensionInfo
java.lang.Object
org.apache.sshd.sftp.client.extensions.openssh.OpenSSHLimitsExtensionInfo
- All Implemented Interfaces:
Cloneable
Response for the "[email protected]" request
- Author:
- Apache MINA SSHD Project
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionlong
The maximum number of active handles that the server allows (e.g. handles created by SSH_FXP_OPEN and SSH_FXP_OPENDIR packets).long
The total number of bytes in a single SFTP packet.long
The largest length in a SSH_FXP_READ packet.long
The largest length in a SSH_FXP_WRITE packet the server will accept -
Constructor Summary
ConstructorDescriptionOpenSSHLimitsExtensionInfo
(PropertyResolver resolver) OpenSSHLimitsExtensionInfo
(org.apache.sshd.common.util.buffer.Buffer buffer) -
Method Summary
Modifier and TypeMethodDescriptionclone()
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) boolean
static <I extends OpenSSHLimitsExtensionInfo>
Ifill
(PropertyResolver resolver, I info) int
hashCode()
toString()
-
Field Details
-
maxPacketLength
public long maxPacketLengthThe total number of bytes in a single SFTP packet. -
maxReadLength
public long maxReadLengthThe 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 maxWriteLengthThe largest length in a SSH_FXP_WRITE packet the server will accept -
maxOpenHandles
public long maxOpenHandlesThe 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 Details
-
OpenSSHLimitsExtensionInfo
public OpenSSHLimitsExtensionInfo() -
OpenSSHLimitsExtensionInfo
public OpenSSHLimitsExtensionInfo(org.apache.sshd.common.util.buffer.Buffer buffer) -
OpenSSHLimitsExtensionInfo
-
-
Method Details
-
encode
public <B extends org.apache.sshd.common.util.buffer.Buffer> B encode(B buffer) -
hashCode
public int hashCode() -
equals
-
clone
-
toString
-
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
-