Ticket #709 (closed New Feature: Fixed)

Opened 2 years ago

Last modified 22 months ago

expose queueThreshold var in FileConsumer.java in a external config file

Reported by: octavnaicu Owned by: mondain
Priority: Major Component: App Server
Version: Keywords: queue, recording
Cc:

Description

in In FileConsumer.java thee is this variable:

private int queueThreshold = 37;

and this function:

public void setQueueThreshold(int queueThreshold) {

this.queueThreshold = queueThreshold;

}

The value of queueThreshold needs to be controlled by an external config file so that it can be edited/tweaked by red5 server admins without the need to recompile the Red5 server.

Ticket 509 covers the origin of this variable and why its needed:
http://trac.red5.org/ticket/509

Change History

Changed 22 months ago by mondain

  • status changed from new to accepted

Changed 22 months ago by mondain

  • status changed from accepted to closed
  • resolution set to Fixed

Set and get are available now in r4088. They must be set via the "clientBroadcastStream" bean in red5-common.xml

Changed 22 months ago by octavnaicu

Is this the correct way to set the value of queueThreshold in ClientBroadcastStream ?

<bean id="clientBroadcastStream" scope="prototype" lazy-init="true" class="org.red5.server.stream.ClientBroadcastStream"/>

<property name="queueThreshold" value="100"/>

</bean>

Note: See TracTickets for help on using tickets.