- fix bean wirings
This commit is contained in:
parent
0dccadbbd6
commit
2d4d1a1b66
@ -266,7 +266,7 @@ public class WhiteboardApplication extends ApplicationAdapter implements IApplic
|
||||
recordingService = recService;
|
||||
}
|
||||
|
||||
public void setConnInvokerService(ClientMessageSender connInvokerService) {
|
||||
this.clientSender = connInvokerService;
|
||||
public void setClientMessageSender(ClientMessageSender clientSender) {
|
||||
this.clientSender = clientSender;
|
||||
}
|
||||
}
|
||||
|
@ -20,15 +20,10 @@ package org.bigbluebutton.conference.service.whiteboard;
|
||||
|
||||
|
||||
import org.bigbluebutton.conference.service.recorder.RecorderApplication;
|
||||
import org.red5.logging.Red5LoggerFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.bigbluebutton.conference.service.whiteboard.IWhiteboardRoomListener;
|
||||
import org.bigbluebutton.conference.service.whiteboard.Presentation;
|
||||
import org.bigbluebutton.conference.service.whiteboard.redis.*;
|
||||
import org.bigbluebutton.conference.service.whiteboard.shapes.Annotation;
|
||||
|
||||
public class WhiteboardRecordingService {
|
||||
private static Logger log = Red5LoggerFactory.getLogger( WhiteboardRecordingService.class, "bigbluebutton" );
|
||||
private RecorderApplication recorder;;
|
||||
|
||||
public void setRecorderApplication(RecorderApplication recorder) {
|
||||
|
@ -29,7 +29,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<bean id="chatHandler" class="org.bigbluebutton.conference.service.chat.ChatHandler">
|
||||
<property name="chatApplication"> <ref local="chatApplication"/></property>
|
||||
<property name="recorderApplication"> <ref local="recorderApplication"/></property>
|
||||
<property name="recorderApplication"> <ref bean="recorderApplication"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="chatApplication" class="org.bigbluebutton.conference.service.chat.ChatApplication">
|
||||
|
@ -33,7 +33,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
<ref local="pollApplication"/>
|
||||
</property>
|
||||
<property name="recorderApplication">
|
||||
<ref local="recorderApplication"/>
|
||||
<ref bean="recorderApplication"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
@ -56,7 +56,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
<bean id="pollRecorder"
|
||||
class="org.bigbluebutton.conference.service.recorder.polling.PollRecorder">
|
||||
<property name="redisPool">
|
||||
<ref local="redisPool" />
|
||||
<ref bean="redisPool" />
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
||||
|
@ -35,7 +35,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
<ref local="presentationApplication"/>
|
||||
</property>
|
||||
<property name="recorderApplication">
|
||||
<ref local="recorderApplication"/>
|
||||
<ref bean="recorderApplication"/>
|
||||
</property>
|
||||
<property name="conversionUpdatesMessageListener">
|
||||
<ref local="conversionUpdatesMessageListener" />
|
||||
@ -48,7 +48,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
</bean>
|
||||
|
||||
<bean id="presentation.service" class="org.bigbluebutton.conference.service.presentation.PresentationService">
|
||||
<property name="participantsApplication"> <ref local="participantsApplication"/></property>
|
||||
<property name="participantsApplication"> <ref bean="participantsApplication"/></property>
|
||||
<property name="presentationApplication"> <ref local="presentationApplication"/></property>
|
||||
</bean>
|
||||
|
||||
|
@ -28,7 +28,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
">
|
||||
|
||||
<bean id="roomsManager" class="org.bigbluebutton.conference.RoomsManager">
|
||||
<property name="messagingService" ref="messagingService"></property>
|
||||
<property name="messagingService"> <ref bean="messagingService"/></property>
|
||||
<property name="conversionUpdatesMessageListener" ref="conversionUpdatesMessageListener"></property>
|
||||
</bean>
|
||||
|
||||
@ -38,7 +38,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<bean id="participantsHandler" class="org.bigbluebutton.conference.service.participants.ParticipantsHandler">
|
||||
<property name="participantsApplication"> <ref local="participantsApplication"/></property>
|
||||
<property name="recorderApplication"> <ref local="recorderApplication"/></property>
|
||||
<property name="recorderApplication"> <ref bean="recorderApplication"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="participantsApplication" class="org.bigbluebutton.conference.service.participants.ParticipantsApplication">
|
||||
|
@ -27,11 +27,13 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
http://www.springframework.org/schema/util/spring-util-2.0.xsd
|
||||
">
|
||||
|
||||
<bean id="whiteboardApplication"
|
||||
class="org.bigbluebutton.conference.service.whiteboard.WhiteboardApplication">
|
||||
<property name="roomManager"> <ref local="whiteboardRoomManager"/></property>
|
||||
<bean id="whiteboardApplication" class="org.bigbluebutton.conference.service.whiteboard.WhiteboardApplication">
|
||||
<property name="recorderApplication"> <ref local="recorderApplication"/></property>
|
||||
<property name="connInvokerService"> <ref bean="connInvokerService"/></property>
|
||||
<property name="clientSender"> <ref bean="connInvokerService"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="whiteboardClientSender" class="org.bigbluebutton.conference.service.whiteboard.ClientMessageSender">
|
||||
<property name="vonnectionInvokerService"> <ref local="connInvokerService"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="whiteboard.service" class="org.bigbluebutton.conference.service.whiteboard.WhiteboardService">
|
||||
@ -40,4 +42,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<bean id="whiteboardRoomManager" class="org.bigbluebutton.conference.service.whiteboard.WhiteboardRoomManager"/>
|
||||
|
||||
<bean id="whiteboardRecordingService" class="org.bigbluebutton.conference.service.whiteboard.WhiteboardRecordingService">
|
||||
<property name="recorderApplication"> <ref bean="recorderApplication"/></property>
|
||||
</bean>
|
||||
</beans>
|
||||
|
@ -28,65 +28,16 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
">
|
||||
|
||||
|
||||
<!-- RECORDER AND MESSAGING -->
|
||||
|
||||
<bean id="recorderApplication" class="org.bigbluebutton.conference.service.recorder.RecorderApplication">
|
||||
<property name="recorder"><ref local="redisRecorder" /> </property>
|
||||
</bean>
|
||||
|
||||
<bean id="redisRecorder" class="org.bigbluebutton.conference.service.recorder.RedisDispatcher">
|
||||
<property name="redisPool"><ref local="redisPool" /> </property>
|
||||
</bean>
|
||||
|
||||
<bean id="messageSender" class="org.bigbluebutton.conference.service.messaging.RedisMessagingService">
|
||||
<property name="redisPool" ref="redisPool"/>
|
||||
<bean id="redisMessageSender" class="org.bigbluebutton.conference.service.messaging.RedisMessagingService">
|
||||
<property name="redisPool"> <ref bean="redisPool"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="messageReceiver" class="org.bigbluebutton.conference.service.messaging.redis.MessageReceiver">
|
||||
<property name="redisPool" ref="redisPool"/>
|
||||
<property name="messageHandler" ref="messageHandler"/>
|
||||
<bean id="redisMessageReceiver" class="org.bigbluebutton.conference.service.messaging.redis.MessageReceiver">
|
||||
<property name="redisPool"> <ref bean="redisPool"/></property>
|
||||
<property name="redisMessageHandler"> <ref local="messageHandler"/> </property>
|
||||
</bean>
|
||||
|
||||
<bean id="messageHandler" class="org.bigbluebutton.conference.service.messaging.ReceivedMessageHandler"/>
|
||||
<bean id="redisMessageHandler" class="org.bigbluebutton.conference.service.messaging.ReceivedMessageHandler"/>
|
||||
|
||||
<bean id="redisPool" class="redis.clients.jedis.JedisPool">
|
||||
<constructor-arg index="0">
|
||||
<bean factory-bean="config" factory-method="getConfig" />
|
||||
</constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.host}"/>
|
||||
<constructor-arg index="2" value="${redis.port}"/>
|
||||
</bean>
|
||||
|
||||
<bean id="config" class="org.bigbluebutton.conference.service.recorder.GenericObjectPoolConfigWrapper">
|
||||
<!-- Action to take when trying to acquire a connection and all connections are taken -->
|
||||
<property name="whenExhaustedAction">
|
||||
<!-- Fail-fast behaviour, we don't like to keep the kids waiting -->
|
||||
<util:constant static-field="org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_FAIL" />
|
||||
<!-- Default behaviour, block the caller until a resource becomes available -->
|
||||
<!--<util:constant static-field="org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_BLOCK" />-->
|
||||
</property>
|
||||
<!-- Maximum active connections to Redis instance -->
|
||||
<property name="maxActive" value="12" />
|
||||
<!-- Number of connections to Redis that just sit there and do nothing -->
|
||||
<property name="maxIdle" value="6" />
|
||||
<!-- Minimum number of idle connections to Redis - these can be seen as always open and ready to serve -->
|
||||
<property name="minIdle" value="1" />
|
||||
<!-- Tests whether connection is dead when connection retrieval method is called -->
|
||||
<property name="testOnBorrow" value="true" />
|
||||
<!-- Tests whether connection is dead when returning a connection to the pool -->
|
||||
<property name="testOnReturn" value="true" />
|
||||
<!-- Tests whether connections are dead during idle periods -->
|
||||
<property name="testWhileIdle" value="true" />
|
||||
<!-- Maximum number of connections to test in each idle check -->
|
||||
<property name="numTestsPerEvictionRun" value="12" />
|
||||
<!-- Idle connection checking period -->
|
||||
<property name="timeBetweenEvictionRunsMillis" value="60000" />
|
||||
<!-- Maximum time, in milliseconds, to wait for a resource when exausted action is set to WHEN_EXAUSTED_BLOCK -->
|
||||
<property name="maxWait" value="5000" />
|
||||
</bean>
|
||||
|
||||
|
||||
|
||||
<!-- END RECORDER AND MESSAGING -->
|
||||
|
||||
</beans>
|
||||
|
@ -29,10 +29,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
<bean id="recorderApplication" class="org.bigbluebutton.conference.service.recorder.RecorderApplication">
|
||||
<property name="recorder"><ref local="redisRecorder" /> </property>
|
||||
<property name="recorder"><ref bean="redisRecorder" /> </property>
|
||||
</bean>
|
||||
|
||||
<bean id="redisRecorder" class="org.bigbluebutton.conference.service.recorder.RedisDispatcher">
|
||||
<property name="redisPool"><ref local="redisPool" /> </property>
|
||||
<property name="redisPool"><ref bean="redisPool" /> </property>
|
||||
</bean>
|
||||
</beans>
|
||||
|
@ -63,6 +63,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<bean id="connInvokerService" class="org.bigbluebutton.conference.ConnectionInvokerService" init-method="start" destroy-method="stop"/>
|
||||
|
||||
<import resource="bbb-redis-pool.xml"/>
|
||||
<import resource="bbb-redis-recorder.xml"/>
|
||||
<import resource="bbb-app-chat.xml" />
|
||||
<import resource="bbb-app-layout.xml" />
|
||||
<import resource="bbb-app-poll.xml" />
|
||||
@ -71,7 +73,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
<import resource="bbb-app-users.xml" />
|
||||
<import resource="bbb-voice-app.xml" />
|
||||
<import resource="bbb-voice-freeswitch.xml" />
|
||||
<import resource="bbb-redis-recorder.xml"/>
|
||||
|
||||
<import resource="bbb-redis-messaging.xml"/>
|
||||
<import resource="bbb-redis-pool.xml"/>
|
||||
|
||||
</beans>
|
||||
|
Loading…
Reference in New Issue
Block a user