All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.taskurotta.recipes.parallel.SpreaderBeans-jersey.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

    <context:property-placeholder/>
    <context:annotation-config />

    <bean id = "taskServer" class="ru.taskurotta.client.jersey.JerseyHttpTaskServerProxy" >
        <property name="endpoint" value = "${endpoint}" />
        <property name="connectTimeout" value="${connectTimeout}" />
        <property name="readTimeout" value = "${readTimeout}" />
        <property name="threadPoolSize" value = "${threadPoolSize}" />
        <!-- All connections are for the same host, so value matches threadpool size -->
        <property name="maxConnectionsPerHost" value="${threadPoolSize}" />
    </bean>

    <bean id="clientServiceManager" class="ru.taskurotta.client.internal.CommonClientServiceManager">
        <constructor-arg name="taskServer" ref="taskServer" />
    </bean>

    <bean id="taskCreator" class="ru.taskurotta.recipes.parallel.TaskCreator" init-method="createStartTask">
        <property name="clientServiceManager" ref="clientServiceManager"/>
        <property name="cycles" value="${cycles}"/>
        <property name="accuracy" value="${accuracy}"/>
    </bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy