Class LocalHostAwarenessAgent

  • All Implemented Interfaces:
    IAwarenessService

    public class LocalHostAwarenessAgent
    extends java.lang.Object
    implements IAwarenessService
    Uses the filesystem to find other platforms on the same host.
    • Field Detail

      • DISCOVERY_DIR

        protected static final java.io.File DISCOVERY_DIR
        The discovery directory.
      • lastpostedfile

        protected java.io.File lastpostedfile
        The last awareness file that has been posted.
      • watchservice

        protected java.nio.file.WatchService watchservice
        The directory watch service.
      • doscan

        protected boolean doscan
        Do scan flag.
    • Constructor Detail

      • LocalHostAwarenessAgent

        public LocalHostAwarenessAgent()
        Creates the agent empty.
    • Method Detail

      • start

        public void start()
        Implements the start.
      • end

        public IFuture<java.lang.Void> end​(java.lang.Exception e)
        Implements the start.
      • postInfo

        protected void postInfo()
        Post awareness info via file system.
      • scan

        protected void scan()
        Scans for new local awareness infos.