Class CatalogAwarenessAgent

  • All Implemented Interfaces:
    IAwarenessService

    public class CatalogAwarenessAgent
    extends java.lang.Object
    implements IAwarenessService
    Passive awareness based on a pre-defined catalog of platforms + addresses. Platforms are specified as URLs as defined in IPlatformCatalogService.
    • Constructor Detail

      • CatalogAwarenessAgent

        public CatalogAwarenessAgent()
        Creates the catalog agent empty.
    • Method Detail

      • init

        public IFuture<java.lang.Void> init()
        Agent start.
        Returns:
        Null, when done.
      • addPlatform

        public IFuture<java.lang.Void> addPlatform​(java.lang.String platformurl)
        Adds a platform to the catalog.
        Parameters:
        platformurl - URL of the platform.
        Returns:
        Null, when done.
      • removePlatform

        public IFuture<java.lang.Void> removePlatform​(java.lang.String name)
        Removes a platform from the catalog.
        Parameters:
        name - Name of the platform.
        Returns:
        Null, when done.
      • parseUrl

        protected TransportAddress parseUrl​(java.lang.String url)
        Parse a platform URL.
        Parameters:
        url - The URL.
        Returns:
        The transport address.