Package org.bigbluebutton.api.domain

Examples of org.bigbluebutton.api.domain.Meeting$Builder


   *
   */
  private class MeetingMessageListener implements MessageListener {
    @Override
    public void meetingStarted(String meetingId) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        if(m.getStartTime() == 0){
          log.debug("Setting meeting " + meetingId + " started time");
          m.setStartTime(System.currentTimeMillis());
        }else{
          log.debug("The meeting " + meetingId + " has been started again...");
        }
        m.setEndTime(0);
        return;
      }
      log.warn("The meeting " + meetingId + " doesn't exist");
    }
View Full Code Here


      log.warn("The meeting " + meetingId + " doesn't exist");
    }

    @Override
    public void meetingEnded(String meetingId) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        log.debug("Setting meeting " + meetingId + " end time");
        m.setEndTime(System.currentTimeMillis());
        return;
      }
      log.warn("The meeting " + meetingId + " doesn't exist");
    }
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }

    @Override
    public void userJoined(String meetingId, String internalUserId, String externalUserId, String name, String role) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        User user = new User(internalUserId, externalUserId, name, role);
        m.userJoined(user);
        log.debug("New user in meeting " + meetingId + ":" + user.getFullname());
        return;
      }
      log.warn("The meeting " + meetingId + " doesn't exist");
    }
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }

    @Override
    public void userLeft(String meetingId, String internalUserId) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        User user = m.userLeft(internalUserId);
        if(user != null){
          log.debug("User removed from meeting " + meetingId + ":" + user.getFullname());
          return;
        }
        log.warn("The participant " + internalUserId + " doesn't exist in the meeting " + meetingId);
View Full Code Here

      log.warn("The meeting " + meetingId + " doesn't exist");
    }
   
    @Override
    public void updatedStatus(String meetingId, String internalUserId, String status, String value) {
      Meeting m = getMeeting(meetingId);
      if (m != null) {
        User user = m.getUserById(internalUserId);
        if(user != null){
          user.setStatus(status, value);
          log.debug("Setting new status value in meeting " + meetingId + " for participant:"+user.getFullname());
          return;
        }
View Full Code Here

  public Meeting getNotEndedMeetingWithId(String meetingId) {
    if (meetingId == null)
      return null;
    for (String key : meetings.keySet()) {
      if (key.startsWith(meetingId)) {
        Meeting m = (Meeting) meetings.get(key);
        if (! m.isForciblyEnded()) return m;
      }
    }
   
    return null;
  }
View Full Code Here

 
  private void processEndMeeting(EndMeeting message) {
    log.info("Received EndMeeting request from the API for meeting=[{}]", message.meetingId);
    messagingService.endMeeting(message.meetingId);
   
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      m.setForciblyEnded(true);
      if (removeMeetingWhenEnded) {
              processRecording(m.getInternalId());
        destroyMeeting(m.getInternalId());         
              meetings.remove(m.getInternalId());   
              removeUserSessions(m.getInternalId());
      }
    } else {
      log.debug("endMeeting - meeting doesn't exist: " + message.meetingId);
    }   
  }
View Full Code Here

      log.debug("endMeeting - meeting doesn't exist: " + message.meetingId);
    }   
  }
 
  public void addUserCustomData(String meetingId, String userID, Map<String,String> userCustomData){
    Meeting m = getMeeting(meetingId);
    if (m != null){
      m.addUserCustomData(userID, userCustomData);
    }
  }
View Full Code Here

    }
  }

  private void meetingStarted(MeetingStarted message) {
    log.debug("Meeting [{}] has started.", message.meetingId);
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      if (m.getStartTime() == 0) {
        long now = System.currentTimeMillis();
        log.info("Meeting [{}] has started on [{}]", message.meetingId, now);
        m.setStartTime(now);
       
        Map<String, Object> logData = new HashMap<String, Object>();
        logData.put("meetingId", m.getInternalId());
        logData.put("externalMeetingId", m.getExternalId());
        logData.put("name", m.getName());
        logData.put("duration", m.getDuration());
        logData.put("record", m.isRecord());
        logData.put("event", "meeting_started");
        logData.put("description", "Meeting has started.");
       
        Gson gson = new Gson();
        String logStr =  gson.toJson(logData);
       
        log.info("Meeting started: data={}", logStr);
       
      } else {
        log.debug("The meeting [{}] has been started again...", message.meetingId);
       
        Map<String, Object> logData = new HashMap<String, Object>();
        logData.put("meetingId", m.getInternalId());
        logData.put("externalMeetingId", m.getExternalId());
        logData.put("name", m.getName());
        logData.put("duration", m.getDuration());
        logData.put("record", m.isRecord());
        logData.put("event", "meeting_restarted");
        logData.put("description", "Meeting has restarted.");
       
        Gson gson = new Gson();
        String logStr =  gson.toJson(logData);
View Full Code Here

    log.warn("The meeting [{}] doesn't exist", message.meetingId);
  }

  private void meetingEnded(MeetingEnded message) {
    log.debug("Meeting [{}] has ended.", message.meetingId);
    Meeting m = getMeeting(message.meetingId);
    if (m != null) {
      long now = System.currentTimeMillis();
      log.debug("Meeting [{}] end time [{}].", message.meetingId, now);
      m.setEndTime(now);
     
      Map<String, Object> logData = new HashMap<String, Object>();
      logData.put("meetingId", m.getInternalId());
      logData.put("externalMeetingId", m.getExternalId());
      logData.put("name", m.getName());
      logData.put("duration", m.getDuration());
      logData.put("record", m.isRecord());
      logData.put("event", "meeting_ended");
      logData.put("description", "Meeting has ended.");
     
      Gson gson = new Gson();
      String logStr =  gson.toJson(logData);
View Full Code Here

TOP

Related Classes of org.bigbluebutton.api.domain.Meeting$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.