mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: KmsManager sendMediaNodeAddedEvent
parent
27c67952cc
commit
b315a7071f
|
@ -26,8 +26,8 @@ import org.kurento.commons.exception.KurentoException;
|
||||||
public class FixedOneKmsManager extends KmsManager {
|
public class FixedOneKmsManager extends KmsManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Kms> initializeKurentoClients(List<KmsProperties> kmsProperties, boolean disconnectUponFailure)
|
public List<Kms> initializeKurentoClients(List<KmsProperties> kmsProperties, boolean disconnectUponFailure,
|
||||||
throws Exception {
|
boolean sendMediaNodeAddedEvent) throws Exception {
|
||||||
KmsProperties firstProps = kmsProperties.get(0);
|
KmsProperties firstProps = kmsProperties.get(0);
|
||||||
KurentoClient kClient = null;
|
KurentoClient kClient = null;
|
||||||
Kms kms = new Kms(firstProps, loadManager);
|
Kms kms = new Kms(firstProps, loadManager);
|
||||||
|
|
|
@ -181,8 +181,8 @@ public abstract class KmsManager {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract List<Kms> initializeKurentoClients(List<KmsProperties> kmsProperties, boolean disconnectUponFailure)
|
public abstract List<Kms> initializeKurentoClients(List<KmsProperties> kmsProperties, boolean disconnectUponFailure,
|
||||||
throws Exception;
|
boolean sendMediaNodeAddedEvent) throws Exception;
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
protected void postConstruct() {
|
protected void postConstruct() {
|
||||||
|
@ -193,7 +193,7 @@ public abstract class KmsManager {
|
||||||
kmsId = "KMS-" + RandomStringUtils.randomAlphanumeric(6).toUpperCase();
|
kmsId = "KMS-" + RandomStringUtils.randomAlphanumeric(6).toUpperCase();
|
||||||
kmsProps.add(new KmsProperties(kmsId, kmsUri));
|
kmsProps.add(new KmsProperties(kmsId, kmsUri));
|
||||||
}
|
}
|
||||||
this.initializeKurentoClients(kmsProps, true);
|
this.initializeKurentoClients(kmsProps, true, false);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Some KMS wasn't reachable
|
// Some KMS wasn't reachable
|
||||||
log.error("Shutting down OpenVidu Server");
|
log.error("Shutting down OpenVidu Server");
|
||||||
|
|
Loading…
Reference in New Issue