Class FuseService

All Implemented Interfaces:
CtxEventListener, BinaryMsgIfaceFactory, ContextHandleAware, HandleAware, Ready, ReadyListener

public final class FuseService extends AbstractService implements BinaryMsgIfaceFactory
Service that mounts KAB files into the local filesystem via fuseMounter native program. This only operates on the local node as we don't know what KABs are available on other nodes and we explicitly start the mounter on this node.
Version:
2022-03-18
  • Method Details

    • mount

      public FuseMount mount(KabFile kab)
      Mount a kab file to a directory that is the identifier of the kab. This can only be used on the local node where the kab is accessible.
      Parameters:
      kab - the kab file to mount
    • mount

      public FuseMount mount(KabFile kab, String name)
      Mount a kab file at the specified mount directory. This can only be used on the local node where the kab is accessible.
      Parameters:
      kab - the kab file to mount
      name - the mount directory name
    • mount

      public FuseMount mount(String kabIdentifier)
      Mount a kab file to a directory that is the identifier of the kab. This can only be used on the local node where the kab is accessible.
      Parameters:
      kabIdentifier - the kab identifier to mount
    • mount

      public FuseMount mount(String kabIdentifier, String name)
      Mount a kab file at the specified mount directory. This can only be used on the local node where the kab is accessible.
      Parameters:
      kabIdentifier - the kab identifier to mount
      name - the mount directory name
    • mount

      public FuseMount mount(NodeId nodeId, String kabIdentifier)
      Mount a kab file to a directory that is the identifier of the kab.
      Parameters:
      nodeId - the node to perform the mount on
      kabIdentifier - the identifier of the kab file to mount
    • mount

      public FuseMount mount(NodeId nodeId, String kabIdentifier, String name)
      Mount a kab file at the specified mount directory.
      Parameters:
      nodeId - the node to perform the mount on
      kabIdentifier - the identifier of the kab file to mount
      name - the mount directory name
    • unmount

      public void unmount(FuseMount mount)
      Unmount a previously created mount.
      Parameters:
      mount - the mount to unmount
    • unmountAll

      public void unmountAll(NodeId nodeId)
      Unmount all mounts on the specified node.
    • getIface

      public BinaryMsgIface getIface(String name, BinaryMsgSession session)
      Description copied from interface: BinaryMsgIfaceFactory
      Given the name of an interface from a BinaryMsgSession, return an instance of BinaryMsgIface or null.
      Specified by:
      getIface in interface BinaryMsgIfaceFactory
      Parameters:
      name - the name of the interface
      session - the session to back the interface
      Returns:
      the iface or null