com.signalfx.signalflow.SignalFlowTransport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfx-codahale Show documentation
Show all versions of signalfx-codahale Show documentation
Dropwizard Codahale metrics plugin for signalfx
The newest version!
/*
* Copyright (C) 2016-2018 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
*/
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.
*/
Channel attach(String handle, Map 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.
*/
Channel execute(String program, Map parameters);
/**
* Execute a preflight of 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 preflight computation.
*/
Channel preflight(String program, Map 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
*/
void start(String program, Map parameters);
/**
* Stop a SignalFlow computation.
*
* @param handle
* computation id
* @param parameters
* computation parameter
*/
void stop(String handle, Map parameters);
/**
* Close this SignalFlow transport.
*
* @param code
* numeric error id
* @param reason
* Optional description of why closing
*/
void close(int code, String reason);
/**
* Keep-alive a SignalFlow computation.
*
* @param handle
* computation id
*/
void keepalive(String handle);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy