Interface IDaemonService


  • public interface IDaemonService
    • Field Detail

      • ADDED

        static final java.lang.String ADDED
        Event for an added platform.
        See Also:
        Constant Field Values
      • REMOVED

        static final java.lang.String REMOVED
        Event for a removed platform.
        See Also:
        Constant Field Values
    • Method Detail

      • startPlatform

        IFuture<java.lang.Void> startPlatform​(StartOptions options)
        Start a platform using a configuration. Performs no checking if the new platform runs.
        Parameters:
        options - The start arguments.
      • startPlatform

        IFuture<java.lang.Void> startPlatform​(StartOptions options,
                                              long wait)
        Start a platform using a configuration. Wait for some time to check if the platform doesn't fail. Only detects, if the new platform process exits during that time.
        Parameters:
        options - The start arguments.
      • startPlatformAndWait

        IFuture<IComponentIdentifier> startPlatformAndWait​(StartOptions options)
        Start a platform using a configuration. Wait for successful handshake and return the component identifier of the new platform. Successful handshake means that the init phase of the new platform, including starting of initial components, has completed successfully.
        Parameters:
        options - The start arguments.
      • shutdownPlatform

        IFuture<java.lang.Void> shutdownPlatform​(IComponentIdentifier cid)
        Shutdown a platform.
        Parameters:
        cid - The platform id.
      • getPlatforms

        IFuture<java.util.Set<IComponentIdentifier>> getPlatforms()
        Get the component identifiers of all (managed) platforms.
        Returns:
        Collection of platform ids.