Class SshClient.FileEntry

java.lang.Object
org.metricshub.ssh.SshClient.FileEntry
Enclosing class:
SshClient

public static class SshClient.FileEntry extends Object
A regular file listed on the remote system
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final long
    Last modification time of the file, in seconds since the epoch
    final String
    Path of the file: the listed directory, a slash and the file name
    final long
    Size of the file, in bytes
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileEntry(String path, long size, long mtime)
    Creates a file entry
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • path

      public final String path
      Path of the file: the listed directory, a slash and the file name
    • size

      public final long size
      Size of the file, in bytes
    • mtime

      public final long mtime
      Last modification time of the file, in seconds since the epoch
  • Constructor Details

    • FileEntry

      public FileEntry(String path, long size, long mtime)
      Creates a file entry
      Parameters:
      path - Path of the file
      size - Size of the file, in bytes
      mtime - Last modification time of the file, in seconds since the epoch