mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: media-server to media-node
parent
1d240d994c
commit
67de82ba20
|
@ -118,7 +118,7 @@ public class Session implements SessionInterface {
|
||||||
return closed;
|
return closed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMediaServerId() {
|
public String getMediaNodeId() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ public interface SessionInterface {
|
||||||
|
|
||||||
int getActivePublishers();
|
int getActivePublishers();
|
||||||
|
|
||||||
String getMediaServerId();
|
String getMediaNodeId();
|
||||||
|
|
||||||
JsonObject toJson();
|
JsonObject toJson();
|
||||||
|
|
||||||
|
|
|
@ -483,7 +483,7 @@ public abstract class SessionManager {
|
||||||
recordingManager.stopRecording(session, null, RecordingManager.finalReason(reason));
|
recordingManager.stopRecording(session, null, RecordingManager.finalReason(reason));
|
||||||
}
|
}
|
||||||
|
|
||||||
final String mediaServerId = session.getMediaServerId();
|
final String mediaNodeId = session.getMediaNodeId();
|
||||||
|
|
||||||
if (session.close(reason)) {
|
if (session.close(reason)) {
|
||||||
sessionEventsHandler.onSessionClosed(session.getSessionId(), reason);
|
sessionEventsHandler.onSessionClosed(session.getSessionId(), reason);
|
||||||
|
@ -493,8 +493,8 @@ public abstract class SessionManager {
|
||||||
|
|
||||||
log.info("Session '{}' removed and closed", session.getSessionId());
|
log.info("Session '{}' removed and closed", session.getSessionId());
|
||||||
|
|
||||||
if (mediaServerId != null) {
|
if (mediaNodeId != null) {
|
||||||
this.quarantineKiller.dropMediaServer(mediaServerId);
|
this.quarantineKiller.dropMediaNode(mediaNodeId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ public class KurentoSession extends Session {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getMediaServerId() {
|
public String getMediaNodeId() {
|
||||||
return this.kms.getId();
|
return this.kms.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@ package io.openvidu.server.utils;
|
||||||
|
|
||||||
public interface QuarantineKiller {
|
public interface QuarantineKiller {
|
||||||
|
|
||||||
public void dropMediaServer(String mediaServerId);
|
public void dropMediaNode(String mediaNodeId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ package io.openvidu.server.utils;
|
||||||
public class QuarantineKillerDummy implements QuarantineKiller {
|
public class QuarantineKillerDummy implements QuarantineKiller {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void dropMediaServer(String mediaServerId) {
|
public void dropMediaNode(String mediaNodeId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue