本文整理汇总了Java中com.autonomy.aci.client.services.AciService.executeAction方法的典型用法代码示例。如果您正苦于以下问题:Java AciService.executeAction方法的具体用法?Java AciService.executeAction怎么用?Java AciService.executeAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.autonomy.aci.client.services.AciService
的用法示例。
在下文中一共展示了AciService.executeAction方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import com.autonomy.aci.client.services.AciService; //导入方法依赖的package包/类
ValidationResult<?> validate(final AciService aciService, final Collection<Statistic> requiredStatistics, final ProcessorFactory processorFactory, final IdolAnnotationsProcessorFactory annotationsProcessorFactory) {
final ValidationResult<?> serverResult = server.validate(aciService, null, processorFactory);
if (!serverResult.isValid()) {
return serverResult;
}
final Set<Statistic> statistics;
try {
statistics = aciService.executeAction(server.toAciServerDetails(), new AciParameters("GetStatus"), new StatisticProcessor(annotationsProcessorFactory));
} catch (final ProcessorException | AciServiceException ignored) {
return new ValidationResult<>(false, ValidationKey.CONNECTION_ERROR);
}
if (!statistics.containsAll(requiredStatistics)) {
statistics.stream().filter(statistic -> !requiredStatistics.contains(statistic)).forEach(statistic -> log.debug("Additional statistic present in StatsServer: {}", statistic));
requiredStatistics.stream().filter(requiredStatistic -> !statistics.contains(requiredStatistic)).forEach(requiredStatistic -> log.debug("Required statistic missing from StatsServer: {}", requiredStatistic));
return new ValidationResult<>(false, ValidationKey.INVALID_CONFIGURATION);
}
return new ValidationResult<>(true);
}
示例2: executeQuery
import com.autonomy.aci.client.services.AciService; //导入方法依赖的package包/类
@Override
public QueryResponseData executeQuery(final AciParameters aciParameters, final QueryRequest.QueryType queryType) {
final AciService aciService = aciServiceRetriever.getAciService(queryType);
return aciService.executeAction(aciParameters, queryResponseProcessor);
}
示例3: executeSuggest
import com.autonomy.aci.client.services.AciService; //导入方法依赖的package包/类
@Override
public SuggestResponseData executeSuggest(final AciParameters aciParameters, final QueryRequest.QueryType queryType) {
final AciService aciService = aciServiceRetriever.getAciService(queryType);
return aciService.executeAction(aciParameters, suggestResponseProcessor);
}
示例4: executeGetQueryTagValues
import com.autonomy.aci.client.services.AciService; //导入方法依赖的package包/类
@Override
public GetQueryTagValuesResponseData executeGetQueryTagValues(final AciParameters aciParameters, final QueryRequest.QueryType queryType) throws AciErrorException {
final AciService aciService = aciServiceRetriever.getAciService(queryType);
return aciService.executeAction(aciParameters, queryTagValuesResponseProcessor);
}