Package org.red5.server.jmx.mxbeans

Examples of org.red5.server.jmx.mxbeans.LoaderMXBean


        String scopeName = "hibernate";
        if (rcl.getRoom_id() != null) {
          scopeName = rcl.getRoom_id().toString();
        }
        IScope currentScope = ScopeApplicationAdapter.getInstance()
            .getRoomScope(scopeName);
        ScopeApplicationAdapter.getInstance().roomLeaveByScope(rcl,
            currentScope);

        HashMap<Integer, String> messageObj = new HashMap<Integer, String>();
View Full Code Here


         }
         String scopeName = "hibernate";
         if (rcl.getRoom_id() != null) {
           scopeName = rcl.getRoom_id().toString();
         }
         IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         this.scopeApplicationAdapter.roomLeaveByScope(rcl, currentScope);
        
        
         HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
         messageObj.put(0, "kick");
View Full Code Here

          }
          String scopeName = "hibernate";
          if (rcl.getRoom_id() != null) {
            scopeName = rcl.getRoom_id().toString();
          }
          IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         
          HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
          messageObj.put(0, "kick");
         
          this.scopeApplicationAdapter.sendMessageById(messageObj, rcl.getStreamid(), currentScope);
View Full Code Here

    // ------------------------------------------------------------------------

    private void createPlayStream( IPendingServiceCallback callback ) {

        logger.debug( "create play stream" );
        IPendingServiceCallback wrapper = new CreatePlayStreamCallBack( callback );
        invoke( "createStream", null, wrapper );
    }
View Full Code Here

      if (stream.getStreamListeners() != null) {
       
        for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
         
          IStreamListener iStreamListener = iter.next();
         
          ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
         
          log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
         
View Full Code Here

   */
  @SuppressWarnings("cast")
  public LoaderMXBean getLoader() {
    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    // proxy class
    LoaderMXBean proxy = null;
    ObjectName oName;
    try {
      oName = new ObjectName("org.red5.server:type=TomcatLoader");
      if (mbs.isRegistered(oName)) {
        proxy = JMX.newMXBeanProxy(mbs, oName, LoaderMXBean.class, true);
View Full Code Here

        }
      }
      //if we've found or downloaded the war
      if (result) {
        //get the webapp loader
        LoaderMXBean loader = getLoader();
        if (loader != null) {
          //un-archive it to app dir
          FileUtil.unzip(srcDir + '/' + applicationWarName, contextDir);
          //load and start the context
          loader.startWebApplication(application);
        } else {
          //just copy the war to the webapps dir
          try {
            FileUtil.moveFile(srcDir + '/' + applicationWarName, webappsDir + '/' + application + ".war");
            ServiceUtils.invokeOnConnection(conn, "onAlert",
View Full Code Here

   */
  @SuppressWarnings("cast")
  public LoaderMXBean getLoader() {
    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    // proxy class
    LoaderMXBean proxy = null;
    ObjectName oName;
    try {
      // TODO support all loaders
      oName = new ObjectName("org.red5.server:type=TomcatLoader");
      if (mbs.isRegistered(oName)) {
View Full Code Here

        } else {
          log.debug("Unwaring and starting...");
          //un-archive it to app dir
          FileUtil.unzip(deploymentDirectory + '/' + applicationWarName, contextDir);
          //get the webapp loader
          LoaderMXBean loader = getLoader();
          if (loader != null) {
            //load and start the context
            loader.startWebApplication(application);
            //remove the war file
            File warFile = new File(deploymentDirectory, applicationWarName);
            if (warFile.delete()) {
              log.debug("{} was deleted", warFile.getName());
            } else {
View Full Code Here

            if ( !( event instanceof IRTMPEvent ) ) {
                logger.debug( "skipping non rtmp event: " + event );
                return;
            }

            IRTMPEvent rtmpEvent = (IRTMPEvent) event;

            if ( logger.isDebugEnabled() ) {
                // logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
                // rtmpEvent.getClass().getSimpleName());
            }

            if ( !( rtmpEvent instanceof IStreamData ) ) {
                logger.debug( "skipping non stream data" );
                return;
            }

            if ( rtmpEvent.getHeader().getSize() == 0 ) {
                logger.debug( "skipping event where size == 0" );
                return;
            }

            if ( rtmpEvent instanceof VideoData ) {
View Full Code Here

TOP

Related Classes of org.red5.server.jmx.mxbeans.LoaderMXBean

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.