/*
 * Copyright (C) 2016 SignalFx, Inc. All rights reserved.
 */
package com.signalfx.signalflow;

import java.util.Map;

/**
 * Interface for transports to the SignalFlow API
 *
 * @author dgriff
 */
public interface SignalFlowTransport {

    /**
     * Default host for signalflow
     */
    public static final String DEFAULT_HOST = "stream.signalfx.com";

    /**
     * Attach to an existing SignalFlow computation.
     *
     * @param handle
     *            computation id
     * @param parameters
     *            computation parameters
     * @return An open channel attached to the given computation.
     */
    public Channel attach(String handle, Map<String, String> parameters);

    /**
     * Execute the given SignalFlow program and stream the output back.
     *
     * @param program
     *            computation written in signalflow language
     * @param parameters
     *            computation parameters
     * @return An open channel attached to the newly started computation.
     */
    public Channel execute(String program, Map<String, String> parameters);

    /**
     * Execute a preflight of the given SignalFlow program and stream the output back.
     *
       * @param program
     *            computation written in signalflow language
     * @param parameters
     * @return
     */
    public Channel preflight(String program, Map<String, String> parameters);

    /**
     * Start executing the given SignalFlow program without being attached to the output of the
     * computation.
     *
     * @param program
     *            computation written in signalflow language
     * @param parameters
     *            computation parameters
     */
    public void start(String program, Map<String, String> parameters);

    /**
     * Stop a SignalFlow computation.
     *
     * @param handle
     *            computation id
     * @param parameters
     *            computation parameter
     */
    public void stop(String handle, Map<String, String> parameters);

    /**
     * Close this SignalFlow transport.
     *
     * @param code
     *            numeric error id
     * @param reason
     *            Optional description of why closing
     */
    public void close(int code, String reason);

    /**
     * Keepalive a SignalFlow computation.
     *
     * @param handle
     *            computation id
     */
    public void keepalive(String handle);
}

@@ -17,16 +17,21 @@
 (C) 2016
+-2018
  SignalF
@@ -298,28 +298,8 @@
     
-public static final 
 Stri
@@ -598,39 +598,32 @@
 on.%0A     */%0A    
-public 
 Channel attach(S
@@ -984,39 +984,32 @@
 on.%0A     */%0A    
-public 
 Channel execute(
@@ -1165,18 +1165,16 @@
  *%0A     
-  
 * @param
@@ -1279,34 +1279,137 @@
   * 
-@return%0A     */%0A    public
+           computation parameters%0A     * @return An open channel attached to the newly started preflight computation.%0A     */%0A   
  Cha
@@ -1761,31 +1761,24 @@
      */%0A    
-public 
 void start(S
@@ -2006,31 +2006,24 @@
      */%0A    
-public 
 void stop(St
@@ -2261,31 +2261,24 @@
      */%0A    
-public 
 void close(i
@@ -2322,16 +2322,17 @@
   * Keep
+-
 alive a 
@@ -2428,23 +2428,16 @@
  */%0A    
-public 
 void kee

Fix Javadoc errors in SignalFlowTransport