Package mx4j.log

Examples of mx4j.log.Logger.info()


            try
            {
               int read = -1;
               while ((read = m_stream.read(m_buffer)) >= 0)
               {
                  if (logger.isEnabledFor(Logger.INFO)) logger.info(new String(m_buffer, 0, read));
               }
            }
            catch (InterruptedIOException x)
            {
               Thread.currentThread().interrupt();
View Full Code Here


               Thread.currentThread().interrupt();
               break;
            }
            catch (IOException x)
            {
               if (logger.isEnabledFor(Logger.INFO)) logger.info("Error while consuming process stream", x);
               break;
            }
         }
      }
   }
View Full Code Here

            {
               if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MBeanServer " + server + " released successfully");
            }
            else
            {
               if (logger.isEnabledFor(Logger.INFO)) logger.info("MBeanServer " + server + " not released, cannot find it");
            }
         }
         else
         {
            if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Cannot release a null MBeanServer");
View Full Code Here

         if (trace) logger.trace("MBeanServer " + mbs + " created successfully");
         if (logger.isEnabledFor(Logger.INFO))
         {
            String mbeanServerId = getMBeanServerId(mbs);
            if (mbeanServerId != null)
               logger.info("Created MBeanServer with ID: " + mbeanServerId);
            else
               logger.info("Created MBeanServer");
         }
         return mbs;
      }
View Full Code Here

         {
            String mbeanServerId = getMBeanServerId(mbs);
            if (mbeanServerId != null)
               logger.info("Created MBeanServer with ID: " + mbeanServerId);
            else
               logger.info("Created MBeanServer");
         }
         return mbs;
      }
      catch (SecurityException x)
      {
View Full Code Here

   {
      Logger logger = getLogger();
      if (!registrationDone.booleanValue())
      {
         server = null;
         if (logger.isEnabledFor(Logger.INFO)) logger.info("MLet service " + objectName + " was not registered");
      }
      else
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MLet service " + objectName + " postRegistered successfully");
      }
View Full Code Here

      // Replace the JMXServiceURL, as it can now contain the encoded stub/ior
      url = resolver.bindServer(rmiServer, address, environment);

      active = true;

      if (logger.isEnabledFor(Logger.INFO)) logger.info("RMIConnectorServer started at: " + url);
   }

   public synchronized void stop() throws IOException
   {
      if (isStopped()) return;
View Full Code Here

      if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
      resolver.unbindServer(rmiServer, address, environment);
      resolver.destroyServer(rmiServer, address, environment);

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.INFO)) logger.info("RMIConnectorServer stopped at: " + address);
   }

   public JMXConnector toJMXConnector(Map env) throws IOException
   {
      if (!isActive()) throw new IllegalStateException("This JMXConnectorServer has not been started");
View Full Code Here

            {
               enabled = filter == null || filter.isNotificationEnabled(notification);
            }
            catch (Throwable x)
            {
               if (info) logger.info("Throwable caught from isNotificationEnabled", x);
               // And go on
            }

            if (trace) logger.trace("\t\tFilter is: " + filter + ", enabled: " + enabled);
View Full Code Here

               {
                  handleNotification(listener, notification, handback);
               }
               catch (Throwable x)
               {
                  if (info) logger.info("Throwable caught from handleNotification", x);
                  // And go on with next listener
               }
            }
         }
      }
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.