openvidu-server: KmsManager sendMediaNodeAddedEvent

pull/370/head
pabloFuente 2019-10-09 11:26:31 +02:00
parent 27c67952cc
commit b315a7071f
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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");