All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.continual.flowcontrol.controlapi.FlowControlDeployment Maven / Gradle / Ivy

There is a newer version: 0.3.23
Show newest version
package io.continual.flowcontrol.controlapi;

import java.util.List;
import java.util.Set;

public interface FlowControlDeployment
{
	enum Status
	{
		PENDING,
		RUNNING,
		STOPPING,
		STOPPED,
		FAILED,
		UNKNOWN
	}

	/**
	 * Get the deployment ID
	 * @return a deployment ID
	 */
	String getId ();

	/**
	 * Get the job this deployment is running
	 * @return a job ID
	 */
	String getJobId ();

	/**
	 * Get the status of the given deployment
	 * @return a status
	 */
	Status getStatus () throws FlowControlDeploymentService.ServiceException;

	/**
	 * Get the deployment's instance count
	 * @return an instance count
	 */
	int instanceCount ();
	
	/**
	 * Get the instance names in this deployment
	 * @return a set of instance names
	 */
	Set instances ();

	/**
	 * Get a log listing for a given instance
	 * @param instanceId
	 * @param sinceRfc3339Time a time to use as "since", can be null
	 * @return a list of text entries
	 */
	List getLog ( String instanceId, String sinceRfc3339Time ) throws FlowControlDeploymentService.ServiceException, FlowControlDeploymentService.RequestException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy