Class FsAgent

java.lang.Object
org.jrd.backend.communication.FsAgent
All Implemented Interfaces:
DelegatingJrdAgent, JrdAgent

public final class FsAgent extends Object implements DelegatingJrdAgent
This class is doing agent-like based operations on filesystem
  • Field Details

    • AGENTS

      private static final Map<VmInfo,FsAgent> AGENTS
    • cp

      private final List<File> cp
    • suffix

      private final String suffix
    • delegationCandidates

      private final DelegatingJrdAgent.DelegatingHelper delegationCandidates
    • originals

      private final Map<String,String> originals
      This is exact oposite of how remote agent does this. Remote agent keeps all overrides, because when new class defintion is laoded original is plled, and is modifed (overvritten) by new deffnitio.

      On contrary, in FS, the class is after writing immediately overriden in file FileSystem. So we keep original, saved during first override. If we keep original, we know class was overwritten. The removal of of override == restore of original (and remvoal of original from map

      In addition, insted of byte[] we store base64 encoded String

  • Constructor Details

  • Method Details