本文整理汇总了Java中com.autonomy.aci.client.services.AciService类的典型用法代码示例。如果您正苦于以下问题:Java AciService类的具体用法?Java AciService怎么用?Java AciService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AciService类属于com.autonomy.aci.client.services包,在下文中一共展示了AciService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: answerServerAciService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = ANSWER_SERVER_ACI_SERVICE_BEAN_NAME)
public AciService answerServerAciService(@Qualifier(ACI_SERVICE_BEAN_NAME)
final AciService aciService,
final ConfigService<C> configService) {
return new AbstractConfigurableAciService(aciService) {
@Override
public AciServerDetails getServerDetails() {
final AnswerServerConfig answerServerConfig = configService.getConfig().getAnswerServer();
if (answerServerConfig == null || BooleanUtils.isFalse(answerServerConfig.getEnabled())) {
throw new IllegalStateException("Attempted to contact AnswerServer but AnswerServer is not configured");
}
return answerServerConfig.toAciServerDetails();
}
};
}
示例2: 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);
}
示例3: IdolLanguagesServiceImpl
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
IdolLanguagesServiceImpl(final AciService contentAciService, final ProcessorFactory processorFactory) {
this.contentAciService = contentAciService;
getStatusProcessor = processorFactory.getResponseDataProcessor(GetStatusResponseData.class);
languageSettingsProcessor = processorFactory.getResponseDataProcessor(LanguageSettingsResponseData.class);
}
示例4: TermExpandTypeAheadService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
TermExpandTypeAheadService(
final AciService contentAciService,
final ProcessorFactory processorFactory
) {
this.contentAciService = contentAciService;
processor = processorFactory.getResponseDataProcessor(TermExpandResponseData.class);
}
示例5: QmsTypeAheadService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
QmsTypeAheadService(
final ConfigService<? extends IdolSearchCapable> configService,
final AciService qmsAciService,
final ProcessorFactory processorFactory,
final HavenSearchAciParameterHandler havenSearchAciParameterHandler) {
this.configService = configService;
this.qmsAciService = qmsAciService;
this.havenSearchAciParameterHandler = havenSearchAciParameterHandler;
processor = processorFactory.getResponseDataProcessor(TypeAheadResponseData.class);
}
示例6: contentAciService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = CONTENT_ACI_SERVICE_BEAN_NAME)
public AciService contentAciService(@Qualifier(ACI_SERVICE_BEAN_NAME)
final AciService aciService,
final ConfigService<C> configService) {
return new AbstractConfigurableAciService(aciService) {
@Override
public AciServerDetails getServerDetails() {
return configService.getConfig().getContentAciServerDetails();
}
};
}
示例7: qmsAciService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = QMS_ACI_SERVICE_BEAN_NAME)
public AciService qmsAciService(@Qualifier(ACI_SERVICE_BEAN_NAME)
final AciService aciService,
final ConfigService<C> configService) {
return new AbstractConfigurableAciService(aciService) {
@Override
public AciServerDetails getServerDetails() {
final QueryManipulation queryManipulation = configService.getConfig().getQueryManipulation();
return queryManipulation != null ? queryManipulation.getServer().toAciServerDetails() : null;
}
};
}
示例8: viewAciService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = VIEW_ACI_SERVICE_BEAN_NAME)
public AciService viewAciService(@Qualifier(ACI_SERVICE_BEAN_NAME)
final AciService aciService,
final ConfigService<C> configService) {
return new AbstractConfigurableAciService(aciService) {
@Override
public AciServerDetails getServerDetails() {
return configService.getConfig().getViewConfig().toAciServerDetails();
}
};
}
示例9: AnswerServerSystemServiceImpl
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
AnswerServerSystemServiceImpl(final AciService aciService,
final AciService answerServerAciService,
final ProcessorFactory processorFactory) {
this.aciService = aciService;
this.answerServerAciService = answerServerAciService;
processor = processorFactory.getResponseDataProcessor(GetStatusResponsedata.class);
}
示例10: IdolFieldsServiceImpl
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
IdolFieldsServiceImpl(final AciService contentAciService,
final TagNameFactory tagNameFactory,
final ProcessorFactory aciResponseProcessorFactory) {
this.contentAciService = contentAciService;
this.tagNameFactory = tagNameFactory;
tagNamesResponseProcessor = aciResponseProcessorFactory.getResponseDataProcessor(GetTagNamesResponseData.class);
}
示例11: IdolStatsService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
public IdolStatsService(
final AciService statsServerAciService,
final ProcessorFactory processorFactory,
final XmlMapper xmlMapper,
final ConfigService<IdolFindConfig> configService
) {
this.statsServerAciService = statsServerAciService;
this.processorFactory = processorFactory;
this.xmlMapper = xmlMapper;
this.configService = configService;
}
示例12: statsServerAciService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Bean
public AciService statsServerAciService(@Qualifier("postingAciService") final AciService aciService, final ConfigService<IdolFindConfig> configService) {
return new AbstractConfigurableAciService(aciService) {
@Override
public AciServerDetails getServerDetails() {
return configService.getConfig().getStatsServer().getServer().toAciServerDetails();
}
};
}
示例13: postingAciService
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Bean
public AciService postingAciService(final HttpClient httpClient) {
final AciHttpClientImpl aciHttpClient = new AciHttpClientImpl(httpClient);
aciHttpClient.setUsePostMethod(true);
return new AciServiceImpl(aciHttpClient);
}
示例14: IdolDatabasesServiceImpl
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
@Autowired
public IdolDatabasesServiceImpl(final AciService contentAciService, final ProcessorFactory processorFactory) {
this.contentAciService = contentAciService;
responseProcessor = processorFactory.getResponseDataProcessor(GetStatusResponseData.class);
}
示例15: ViewConfigValidator
import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
public ViewConfigValidator(final AciService validatorAciService, final ProcessorFactory processorFactory) {
this.validatorAciService = validatorAciService;
this.processorFactory = processorFactory;
}