本文整理匯總了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);
}