Package mx4j.log

Examples of mx4j.log.Logger.debug()


   }

   protected void configureListener(JMXServiceURL url, Map environment) throws IOException
   {
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Configuring Jetty with a default listener on port " + url.getPort());
      getServer().addListener(":" + url.getPort());
   }

   public void stop() throws IOException
   {
View Full Code Here


      {
         ConnectionManager manager = (ConnectionManager)instances.get(address);
         if (manager != null) return manager;

         Logger logger = Log.getLogger(HTTPConnectorServer.class.getName());
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Known HTTPConnectorServers bound at " + instances.keySet());
         return null;
      }
   }

   protected void doStop() throws IOException
View Full Code Here

      {
         if (connections.containsKey(connectionId)) throw new IOException("Connection '" + connection + "' already connected");
         connections.put(connectionId, connection);

         Logger logger = getLogger();
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Added connection '" + connectionId + "', known connections are " + connections.keySet());
      }
   }

   protected void removeConnection(Connection connection) throws IOException
   {
View Full Code Here

      {
         if (!connections.containsKey(connectionId)) throw new IOException("Connection '" + connection + "' unknown");
         connections.remove(connectionId);

         Logger logger = getLogger();
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Removed connection '" + connectionId + "', known connections are " + connections.keySet());
      }
   }

   protected Connection findConnection() throws IOException
   {
View Full Code Here

      {
         Connection connection = (Connection)connections.get(connectionId);
         if (connection != null) return connection;

         Logger logger = getLogger();
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Unknown connection '" + connectionId + "', known connections are " + connections.keySet());
         throw new IOException("Connection ID '" + connectionId + "' unknown");
      }
   }

   protected abstract String findConnectionId();
View Full Code Here

               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");
         }
      }
      catch (SecurityException x)
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Security Exception caught while releasing MBeanServer " + server, x);
View Full Code Here

   {
      if (relationTypeName == null) throw new IllegalArgumentException("Illegal Null Relation Type Name value");
      if (roleInfos == null) throw new IllegalArgumentException("Illegal Null RoleInfo");

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Creating Relation Type with relationTypeName: " + relationTypeName);

      RelationTypeSupport relationType = new RelationTypeSupport(relationTypeName, roleInfos);
      // created a new RelationType add it to our map
      addRelationTypeToMap(relationTypeName, relationType);
   }
View Full Code Here

      // check type name
      String relationTypeName = relationType.getRelationTypeName();
      if (relationTypeName == null) throw new IllegalArgumentException("RelationTypeName must not be null");

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Adding a RelationType");

      List roleInfoList = relationType.getRoleInfos();
      if (roleInfoList == null)
      {
         logger.warn("Cannot add RelationType: " + relationType.getClass().getName() + " RoleInfo information was not provided with the RelationType.");
View Full Code Here

                                                                  RelationServiceNotRegisteredException, RelationTypeNotFoundException
   {
      Logger logger = getLogger();
      isActive();
      if (relationTypeName == null) throw new IllegalArgumentException("Illegal: relationType name cannot be null.");
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Removing RelationType with relationTypeName: " + relationTypeName);

      // will throw RelationTypeNotFoundException if not found
      getRelationType(relationTypeName);

      // no need to clone as relationIdList is internal and get its values from a private method.
View Full Code Here

      if (relationId == null) throw new IllegalArgumentException("Null Relation Id");
      if (relationTypeName == null) throw new IllegalArgumentException("Null Relation Type Name");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG))
      {
         logger.debug("Creating an InternalRelation with ID: " + relationId + " and relationType name: " + relationTypeName);
      }
      // creating InternalRelation to represent the internal relations
      InternalRelation internalRelation = new InternalRelation(relationId, m_relationServiceObjectName,
                                                               relationTypeName, roleList);
      try
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.