當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。