incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daw...@apache.org
Subject svn commit: r820080 - /incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java
Date Tue, 29 Sep 2009 20:11:30 GMT
Author: dawood
Date: Tue Sep 29 20:11:30 2009
New Revision: 820080

URL: http://svn.apache.org/viewvc?rev=820080&view=rev
Log:
Removed a lot of System.out printing, which is duplicated in the audit logger.

Modified:
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java

Modified: incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java?rev=820080&r1=820079&r2=820080&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java
(original)
+++ incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java
Tue Sep 29 20:11:30 2009
@@ -149,7 +149,7 @@
 			int instanceCount=1;
 			while(instancesForClassIt.hasNext())
 			{	
-				System.out.println("+++++++++++"+"Evaluating policy against instance "+instanceCount+"+++++++++++");
+//				System.out.println("+++++++++++"+"Evaluating policy against instance "+instanceCount+"+++++++++++");
 				auditloggerString+="+++++++++++"+"Evaluating policy against instance "+instanceCount+"+++++++++++"+"\n";
 				
 				
@@ -171,7 +171,7 @@
 		for(int j=0; j<_policyList.size();j++)
 		{
 
-			System.out.println("***********"+"evaluating sub policy number "+(j+1)+"***********");
+//			System.out.println("***********"+"evaluating sub policy number "+(j+1)+"***********");
 			auditloggerString+="***********"+"evaluating sub policy number "+(j+1)+"***********"+"\n";
 			PolicyStatement pStatement = (PolicyStatement)_policyList.get(j);
 			// evaluate each policy	
@@ -183,7 +183,7 @@
 			if(result1 == POLICY_EVALUATION_FAILED) // report failure even if a single policy fails
 			{
 //				result = result1;
-				System.out.println("     "+"SPLPolicy evaluation failed ");
+//				System.out.println("     "+"SPLPolicy evaluation failed ");
 				auditloggerString+="     "+"SPLPolicy evaluation failed "+"\n";
 							
 				logger.severe(Thread.currentThread().getName()+"SPLPolicy evaluation failed return value="+result1);
@@ -192,7 +192,7 @@
 			}
 			else
 			{
-				System.out.println("     "+"SPLPolicy evaluation successful ");
+//				System.out.println("     "+"SPLPolicy evaluation successful ");
 				auditloggerString+="     "+"SPLPolicy evaluation successful "+"\n";
 			}
 			// if strategy is to execute first applicable and if the policy has been evaluated
@@ -202,14 +202,14 @@
 			{
 				if(result1 == POLICY_EVALUATED_SUCCESSFULLY || result1 == POLICY_EVALUATION_FAILED)
 				{
-					System.out.println("***********"+"completed evaluation of sub policy number "+(j+1)+"***********");
+//					System.out.println("***********"+"completed evaluation of sub policy number "+(j+1)+"***********");
 					auditloggerString+="***********"+"completed evaluation of sub policy number "+(j+1)+"***********"+"\n";
 					
 					break;
 				}
 			}
 
-			System.out.println("***********"+"completed evaluation of sub policy number "+(j+1)+"***********");
+//			System.out.println("***********"+"completed evaluation of sub policy number "+(j+1)+"***********");
 			auditloggerString+="***********"+"completed evaluation of sub policy number "+(j+1)+"***********"+"\n";
 			
 		}
@@ -334,7 +334,7 @@
 		this.auditloggerString="";
 		
 		EvaluationResults result = new EvaluationResults();
-		System.out.println("cimObjectName "+anchorClassName+" "+anchornamespace+" "+anchorInstance.toString());
+//		System.out.println("cimObjectName "+anchorClassName+" "+anchornamespace+" "+anchorInstance.toString());
 		//Map keys=this.symTab.getInstance().getMapOfKeys();
 		ImportStatement imp=(ImportStatement)this._importStmtList.get(0);
 		InstanceInfo ii=(InstanceInfo)imp.getImportInstanceInfoList().get(0);
@@ -342,7 +342,7 @@
 		List targetClassInstances = dc.getAssociatedInstanceReferences(anchorInstance, anchornamespace,
targetclassnm, assocName, role1, role2);
 		
 		Iterator it=targetClassInstances.iterator();
-		System.out.println(">>>>>>>>>>>"+"Policy Group Evaluation
- number of associated instances :"+targetClassInstances.size()+"<<<<<<<<<<<");
+//		System.out.println(">>>>>>>>>>>"+"Policy Group Evaluation
- number of associated instances :"+targetClassInstances.size()+"<<<<<<<<<<<");
 		
 		auditloggerString+=">>>>>>>>>>>"+"Policy Group Evaluation
- number of associated instances :"+targetClassInstances.size()+"<<<<<<<<<<<"+"\n";
 		
@@ -389,14 +389,14 @@
                 logger.fine(Thread.currentThread().getName()+
                         "number of instances passed in for evaluation is "+instanceMap.size());
             }    
-            System.out.println(">>>>>>>>>>>"+"number of
instances passed in for evaluation is :"+instanceMap.size()+"<<<<<<<<<<<");
+//            System.out.println(">>>>>>>>>>>"+"number of
instances passed in for evaluation is :"+instanceMap.size()+"<<<<<<<<<<<");
             
             auditloggerString+=">>>>>>>>>>>"+"number of
instances passed in for evaluation is :"+instanceMap.size()+"<<<<<<<<<<<"+"\n";
                 
             
             result = _evaluatePolicies(instanceMap,dc,ac);
             
-            System.out.println(">>>>>>>>>>>"+"policy evaluation
complete, result :"+result+"<<<<<<<<<<<");
+//            System.out.println(">>>>>>>>>>>"+"policy evaluation
complete, result :"+result+"<<<<<<<<<<<");
             auditloggerString+=">>>>>>>>>>>"+"policy evaluation
complete, result :"+result+"<<<<<<<<<<<"+"\n";
             
             



Mime
View raw message