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


Java AciService类代码示例

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

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

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

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

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

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

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

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

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

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

示例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;
}
 
开发者ID:hpe-idol,项目名称:find,代码行数:13,代码来源:IdolStatsService.java

示例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();
        }
    };
}
 
开发者ID:hpe-idol,项目名称:find,代码行数:10,代码来源:IdolConfiguration.java

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

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

示例15: ViewConfigValidator

import com.autonomy.aci.client.services.AciService; //导入依赖的package包/类
public ViewConfigValidator(final AciService validatorAciService, final ProcessorFactory processorFactory) {
    this.validatorAciService = validatorAciService;
    this.processorFactory = processorFactory;
}
 
开发者ID:hpe-idol,项目名称:haven-search-components,代码行数:5,代码来源:ViewConfigValidator.java


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