Package mx4j.log

Examples of mx4j.log.Logger.debug()


                                                        RelationNotFoundException
   {
      isActive();
      if (relationId == null) throw new IllegalArgumentException("Null Relation Id");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Removing a Relation from the RelationService.");
      Object result = getRelationObject(relationId);
      if (result instanceof ObjectName)
      {
         // add the objectName to List
         List obsoleteReferences = new ArrayList();
View Full Code Here


    */
   public void purgeRelations() throws RelationServiceNotRegisteredException
   {
      isActive();
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("purging relations");

      ArrayList localDeregisteredNotificationList;
      synchronized (m_deregisteredNotificationList)
      {
         // cone the list of notifications to be able to recieve notification while processing current ones
View Full Code Here

                                                                                                             IllegalArgumentException
   {
      if (mbeanObjectName == null) throw new IllegalArgumentException("Cannot find references for a null ObjectName");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG))
         logger.debug("finding referencing relations for MBean with ObjectName: "
                      + mbeanObjectName.getCanonicalName() + " and relationTypeName: " + relationTypeName + " and roleName: " + roleName);
      HashMap result = new HashMap();
      HashMap relationIdMap = (HashMap)getReferencedMBeansFromMap(mbeanObjectName);
      if (relationIdMap != null)
      {
View Full Code Here

                                                                                                         IllegalArgumentException
   {
      if (mbeanObjectName == null) throw new IllegalArgumentException("mbean ObjectName cannot be null.");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG))
         logger.debug("finding associated relations for MBean with ObjectName: "
                      + mbeanObjectName.getCanonicalName() + " and relationTypeName: " + relationTypeName + " and roleName: " + roleName);
      Map relationIdsToRoleNames = findReferencingRelations(mbeanObjectName, relationTypeName, roleName);
      Map result = new HashMap();
      for (Iterator i = (relationIdsToRoleNames.keySet()).iterator(); i.hasNext();)
      {
View Full Code Here

    */
   public List findRelationsOfType(String relationTypeName) throws IllegalArgumentException, RelationTypeNotFoundException
   {
      if (relationTypeName == null) throw new IllegalArgumentException("relation type name cannot be null.");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("finding relations matching relationTypeName: " + relationTypeName);

      // throws RelationTypeNotFoundException if not found
      getRelationType(relationTypeName);

      List relationIdList = getRelationIds(relationTypeName);
View Full Code Here

    */
   public Map getReferencedMBeans(String relationId) throws IllegalArgumentException, RelationNotFoundException
   {
      if (relationId == null) throw new IllegalArgumentException("Null Relation Id");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("getting MBeans referenced for ID: " + relationId);
      Relation relation = getRelation(relationId);
      return relation.getReferencedMBeans();
   }

   /**
 
View Full Code Here

    */
   public String getRelationTypeName(String relationId) throws IllegalArgumentException, RelationNotFoundException
   {
      if (relationId == null) throw new IllegalArgumentException("Null Relation Id");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("getting the relationType for ID: " + relationId);
      Relation relation = getRelation(relationId);
      return relation.getRelationTypeName();
   }

   /**
 
View Full Code Here

      }
      else
      {
         if (logger.isEnabledFor(Logger.DEBUG))
         {
            logger.debug("Relation service postRegistered");
         }
      }
   }

   /**
 
View Full Code Here

   public void preDeregister() throws Exception
   {
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG))
      {
         logger.debug("Relation service preDeregistered");
      }
   }

   /**
    * <p> logs nothing but log postRegisration</p>
View Full Code Here

   public void postDeregister()
   {
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG))
      {
         logger.debug("Relation service postDeregistered");
      }
   }

   static void throwRoleProblemException(int problemType, String roleName) throws IllegalArgumentException,
                                                                                  RoleNotFoundException, InvalidRoleValueException
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.