Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into network-indicator
- Loading branch information
Showing
179 changed files
with
3,179 additions
and
1,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf src/main/resources | ||
cp -R src/universal/conf src/main/resources | ||
sbt run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 31 additions & 18 deletions
49
...b-apps/src/main/scala/org/bigbluebutton/endpoint/redis/AkkaAppsRedisSubscriberActor.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,47 @@ | ||
package org.bigbluebutton.endpoint.redis | ||
|
||
import org.bigbluebutton.SystemConfiguration | ||
import org.bigbluebutton.common2.bus.IncomingJsonMessageBus | ||
import org.bigbluebutton.common2.redis.{ RedisSubscriber, RedisSubscriberProvider } | ||
|
||
import org.bigbluebutton.common2.redis.{ RedisConfig, RedisSubscriber, RedisSubscriberProvider } | ||
import akka.actor.ActorSystem | ||
import akka.actor.Props | ||
|
||
object AppsRedisSubscriberActor extends RedisSubscriber { | ||
|
||
val channels = Seq(toAkkaAppsRedisChannel, fromVoiceConfRedisChannel) | ||
val patterns = Seq("bigbluebutton:to-bbb-apps:*", "bigbluebutton:from-voice-conf:*", "bigbluebutton:from-bbb-transcode:*") | ||
|
||
def props(system: ActorSystem, jsonMsgBus: IncomingJsonMessageBus): Props = | ||
object AppsRedisSubscriberActor { | ||
def props( | ||
system: ActorSystem, | ||
jsonMsgBus: IncomingJsonMessageBus, | ||
redisConfig: RedisConfig, | ||
channelsToSubscribe: Seq[String], | ||
patternsToSubscribe: Seq[String], | ||
forwardMsgToChannel: String | ||
): Props = | ||
Props( | ||
classOf[AppsRedisSubscriberActor], | ||
system, jsonMsgBus, | ||
redisHost, redisPort, | ||
channels, patterns | ||
system, | ||
jsonMsgBus, | ||
redisConfig, | ||
channelsToSubscribe, | ||
patternsToSubscribe, | ||
forwardMsgToChannel | ||
).withDispatcher("akka.redis-subscriber-worker-dispatcher") | ||
} | ||
|
||
class AppsRedisSubscriberActor( | ||
system: ActorSystem, | ||
jsonMsgBus: IncomingJsonMessageBus, | ||
redisHost: String, redisPort: Int, | ||
channels: Seq[String] = Nil, patterns: Seq[String] = Nil | ||
system: ActorSystem, | ||
jsonMsgBus: IncomingJsonMessageBus, | ||
redisConfig: RedisConfig, | ||
channelsToSubscribe: Seq[String], | ||
patternsToSubscribe: Seq[String], | ||
forwardMsgToChannel: String | ||
) | ||
extends RedisSubscriberProvider(system, "BbbAppsAkkaSub", channels, patterns, jsonMsgBus) with SystemConfiguration { | ||
extends RedisSubscriberProvider( | ||
system, | ||
"BbbAppsAkkaSub", | ||
channelsToSubscribe, | ||
patternsToSubscribe, | ||
jsonMsgBus, | ||
redisConfig | ||
) { | ||
|
||
addListener(toAkkaAppsJsonChannel) | ||
addListener(forwardMsgToChannel) | ||
subscribe() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.