
net.anotheria.moskito.webui.journey.api.JourneyAPI Maven / Gradle / Ivy
package net.anotheria.moskito.webui.journey.api;
import net.anotheria.anoplass.api.API;
import net.anotheria.anoplass.api.APIException;
import net.anotheria.anoprise.metafactory.Service;
import net.anotheria.moskito.core.stats.TimeUnit;
import org.distributeme.annotation.DistributeMe;
import org.distributeme.annotation.FailBy;
import org.distributeme.annotation.SupportService;
import org.distributeme.core.failing.RetryCallOnce;
import java.util.List;
/**
* API for journeys.
*
* @author lrosenberg
* @since 14.02.13 10:00
*/
@DistributeMe(agentsSupport = false)
@SupportService
@FailBy(strategyClass=RetryCallOnce.class)
public interface JourneyAPI extends API, Service {
/**
* Returns list of available journeys.
* @return
* @throws APIException
*/
List getJourneys() throws APIException;
/**
* Returns specified journey.
* @param name name of the journey.
* @return
* @throws APIException
*/
JourneyAO getJourney(String name) throws APIException;
TracedCallAO getTracedCall(String journeyName, int callPosition, TimeUnit unit) throws APIException;
TracedCallAO getTracedCallByName(String journeyName, String traceName, TimeUnit unit) throws APIException;
List analyzeJourney(String journeyName) throws APIException;
void deleteJourney(String journeyName) throws APIException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy