当前位置: 首页>>代码示例>>Java>>正文


Java AciService.executeAction方法代码示例

本文整理汇总了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);
}
 
开发者ID:hpe-idol,项目名称:find,代码行数:26,代码来源:StatsServerConfig.java

示例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);
}
 
开发者ID:hpe-idol,项目名称:haven-search-components,代码行数:6,代码来源:QueryExecutorImpl.java

示例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);
}
 
开发者ID:hpe-idol,项目名称:haven-search-components,代码行数:6,代码来源:QueryExecutorImpl.java

示例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);
}
 
开发者ID:hpe-idol,项目名称:haven-search-components,代码行数:6,代码来源:QueryExecutorImpl.java


注:本文中的com.autonomy.aci.client.services.AciService.executeAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。