Examples of SharedObjectEvent


Examples of org.red5.server.so.SharedObjectEvent

  private void sendSOCreationFailed(RTMPConnection conn, SharedObjectMessage message) {
    log.debug("sendSOCreationFailed - message: {} conn: {}", message, conn);
    // reset the object so we can re-use it
    message.reset();
    // add the error event
    message.addEvent(new SharedObjectEvent(ISharedObjectEvent.Type.CLIENT_STATUS, "error", SO_CREATION_FAILED));
    if (conn.isChannelUsed(3)) {
      // XXX Paul: I dont like this direct write stuff, need to move to event-based
      conn.getChannel(3).write(message);
    } else {
      log.warn("Channel is not in-use and cannot handle SO event: {}", message, new Exception("SO event handling failure"));
View Full Code Here

Examples of org.red5.server.so.SharedObjectEvent

        } else {
          log.warn("Shared object persistence mismatch - current: {} incoming: {}", so.isPersistent(), persistent);
          // reset the object so we can re-use it
          message.reset();
          // add the error event
          message.addEvent(new SharedObjectEvent(ISharedObjectEvent.Type.CLIENT_STATUS, "error", SO_PERSISTENCE_MISMATCH));
          conn.getChannel(3).write(message);
        }
      } else {
        log.warn("Shared object lookup returned null for {} in {}", name, scope.getName());
        // reset the object so we can re-use it
        message.reset();
        // add the error event
        message.addEvent(new SharedObjectEvent(ISharedObjectEvent.Type.CLIENT_STATUS, "error", NC_CALL_FAILED));
        conn.getChannel(3).write(message);
      }
    } else {
      // The scope already has been deleted
      log.debug("Shared object scope was not found");
View Full Code Here

Examples of org.red5.server.so.SharedObjectEvent

   * @param persistent
   */
  private void sendSOCreationFailed(RTMPConnection conn, String name,
      boolean persistent) {
    SharedObjectMessage msg = new SharedObjectMessage(name, 0, persistent);
    msg.addEvent(new SharedObjectEvent(
        ISharedObjectEvent.Type.CLIENT_STATUS, "error",
        SO_CREATION_FAILED));
    conn.getChannel((byte) 3).write(msg);
  }
View Full Code Here

Examples of org.red5.server.so.SharedObjectEvent

    }
    so = sharedObjectService.getSharedObject(scope, name);
    if (so.isPersistentObject() != persistent) {
      SharedObjectMessage msg = new SharedObjectMessage(name, 0,
          persistent);
      msg.addEvent(new SharedObjectEvent(
          ISharedObjectEvent.Type.CLIENT_STATUS, "error",
          SO_PERSISTENCE_MISMATCH));
      conn.getChannel((byte) 3).write(msg);
    }
    so.dispatchEvent(object);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.