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