Class FuseMount

java.lang.Object
com.tccc.kos.core.service.fuse.FuseMount

public class FuseMount extends Object
A mount object returned from FuseService when a mount is successful.
Version:
2022-08-02
  • Constructor Details

    • FuseMount

      public FuseMount()
  • Method Details

    • getNodeId

      public NodeId getNodeId()
      Get the nodeId the mount is on.
    • getRootDir

      public File getRootDir()
      Return the root directory of the mount. This will return null if the mounted flag is false.
    • getName

      public String getName()
      Return the name of the mount point. This is the directory that was used to mount the kab file.
    • getKabFile

      public KabFile getKabFile()
      Return the kabFile if the mount is for a local kab.
    • getKabIdentifier

      public String getKabIdentifier()
      Return the kab file identifier associated with this mount.
    • getFile

      public File getFile(String path)
      Return a file relative to the mount directory of the kab on the target node. This will return null if the mounted flag is false.
      Parameters:
      path - the path relative to the root
    • isMounted

      public boolean isMounted()
      Return true if the kab is currently mounted. This may be false if the mount is created before the node is up or the fuseMounter is running. This can also become false while the node is rebooting.
    • toString

      public String toString()
      Overrides:
      toString in class Object